Re: populating a list box problem [message #171118 is a reply to message #171117] |
Sat, 25 December 2010 11:42 |
Denis McMahon
Messages: 634 Registered: September 2010
Karma:
|
Senior Member |
|
|
On 25/12/10 11:27, Peter wrote:
> Just quickly, I noticed both you and Jerry included \n (newline
> character) in your output. Is there a specific reason for adding that?
> Would have thought it was completely unnecessary.
Makes it a lot easier to read when viewing the source of the generated
webpage to see why it doesn't do what you want.
In this case, the OP is talking about 100 options in each list ....
If you were trying to debug that webpage, would you prefer:
<select name="somename" id="someid">
<option value="somevalue">sometext</option>
<option value="somevalue">sometext</option>
... repeat 98 more times 1 per line
</select>
or:
<select name="somename" id="someid"><option
value="somevalue">sometext</option><option
value="somevalue">sometext</option> .. repeat 98 more times on the same
line </select>
Rgds
Denis McMahon
|
|
|