Hi,
option2:
Try and use <EnumValue value="i = 0; i equalsLessThen 5; i++"
display_value="Ascending"/>

use Regular Expressions to to change that to "i = 0; i < =5; i++"
before using it ...

Options 3:  avoid values in the UserPref and keep it in your code ...
var selected ;
if (__UP_order__ == "option1")
selected = "i = 0; i <= 5; i++";
if (__UP_order__ == "option2")

<UserPref name="order"
          display_name="Results Order"
          default_value="option1" datatype="enum">
<EnumValue value="option2" display_value="Ascending"/>
<EnumValue value="option2" display_value="Descending"/>
</UserPref>




On Jan 29, 5:17 am, Behad <[email protected]> wrote:
> Thanks for the answer, but neither of your workarounds helps.
> What exactly do you mean by "Do some manipulation on __UP_order__
> before using it"?

-- 
You received this message because you are subscribed to the Google Groups 
"iGoogle Developer Forum" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/Google-Gadgets-API?hl=en.

Reply via email to