Akopia Akopia Services

[Date Prev][Date Next][Thread Prev][Thread Next][Minivend by date ][Minivend by thread ]

Re: [mv] results page </tr>



******    message to minivend-users from Ramsey French <rammjet@mac.com>     ******

Test to see if what you are going to print has a value.  If it does, print
it.  If it doesn't, print &nbsp;

A table with an empty cell looks bad.

> From: Charles Kirby <kirbych@monmouth.com>
> Reply-To: minivend-users@minivend.com
> Date: Mon, 12 Jun 2000 15:44:47 -0400 (EDT)
> To: minivend-users@minivend.com
> Subject: Re: [mv] results page </tr>
> 
> ******    message to minivend-users from Charles Kirby <kirbych@monmouth.com>
> ******
> 
> This works perfectly for searches with even-numbered success (2 items, 4,
> 6, found), but exits a little early if only 1, 3, or 5 items are found.
> I use my alternating scratch variable to test for exit value, so I know
> whether to close the last row or not ( </tr>).
> <table>
> <tr>
> <td><table><tr><tr>stuff</tr></td>
> <td><table><tr><tr>stuff</tr></td>
> </tr>
> <td><table><tr><tr>stuff</tr></td>
> <---- !?
> </table>
> 
> Does this matter any more with modern browsers?  And is there a way with
> your "loop-alternate" to complete this neatly?
> 
> ck
> 
> On Mon, 12 Jun 2000, Mike Heins wrote:
> 
>> ******    message to minivend-users from Mike Heins <mikeh@minivend.com>
>> ******
>> 
>> Quoting Charles Kirby (kirbych@monmouth.com):
>>> 
>> 
>> Here is the most efficient way:
>> 
>> <!-- start my big table -->
>> <table>
>> [set leftright]1[/set]
>> [loop random=4
>> search= |
>> sf=special
>> se=yes
>> ml=4
>> |
>> ]
>> [loop-alternate 2]
>> [else]
>> <tr>
>> [/else]
>> [/loop-alternate]
>> 
>> <make pretty (small) table; display item>
>> 
>> [loop-alternate 2]
>> </tr>
>> [/loop-alternate]
>> 
>> [/loop]
>> 
>> </table>
>> <!-- end of my big table -->
>> 
>> Anything will work with a smaller table, but if you are doing
>> large ones you should use this. It will take about 1% of the CPU
>> time of the other methods. 8-)
>> 
>> -- 
>> Internet Robotics, 131 Willow Lane, Floor 2, Oxford, OH  45056
>> phone +1.513.523.7621 fax 7501 <mikeh@minivend.com>
>> 
>> Function in chaos, finish in style. -- Unknown
>> -
>> To unsubscribe from the list, DO NOT REPLY to this message.  Instead, send
>> email with 'UNSUBSCRIBE minivend-users' in the body to
>> Majordomo@minivend.com.
>> Archive of past messages: http://www.minivend.com/minivend/minivend-list
>> 
> 
> -
> To unsubscribe from the list, DO NOT REPLY to this message.  Instead, send
> email with 'UNSUBSCRIBE minivend-users' in the body to Majordomo@minivend.com.
> Archive of past messages: http://www.minivend.com/minivend/minivend-list

-
To unsubscribe from the list, DO NOT REPLY to this message.  Instead, send
email with 'UNSUBSCRIBE minivend-users' in the body to Majordomo@minivend.com.
Archive of past messages: http://www.minivend.com/minivend/minivend-list


Search for: Match: Format: Sort by: