Replies Back to Article

User Defined ListBox Control

Starnge Problem
December 26, 2001 by greg reimche

I went into the newly created file in the extensions folder and added

<OPTION SELECTED>Right</OPTION>
    <OPTION>Left</OPTION>

to my userdefined listbox but when i try to use the server behaviour i get undefined written to the page when itinserts my code for that behaviour...

 

any ideas why ?

RE: Starnge Problem
December 26, 2001 by Joel Martinez

aha... its probably because you did not include the value parameter... it will probaly work then... so they should look like this:

<OPTION value="Right">SELECTED>Right</OPTION>
    <OPTION value="left">Left</OPTION>

I guess I can make it take the value of the text if the value is undefined... maybe for version 2 ;)

RE: RE: Starnge Problem
December 26, 2001 by greg reimche

Doh !!!!

now

Any examples of this
February 7, 2002 by kenny darcy
Any examples of this to be seen.
RE: Any examples of this
February 7, 2002 by Joel Martinez

well, theres really nothing to be seen, all it does is insert an empty listbox in the UI of you server behavior.

You can then manually edit the server behavior html file to insert your own custom values... the control takes care of getting the selected value to the page and back again.