Replies Back to Article
User Defined ListBox Control
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 ?
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 ;)
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.