Hi Marek,
arrWorlds[i][0] contains the "Technology US".
Thanks,
-Mike
Marek Dębczyński wrote:
>
> Hi Mike.
>
> One question:
>
> arrWorlds[i][1]
>
> or
>
> arrWorlds[i][0]
>
>
> contains "Technology US"?
>
> Regards,
> Marek
>
>
>
>> Hi,
>>
>> I have a function that creates a select dynamically. When I try to run
>> this
>> <setSelectField description="Set prompt selection"
>> name="prompt"
>> value="Technology US" />
>> I get the following error:
>> No option found matching criteria in select HtmlSelect[<select
>> name="prompt"
>> onchange="worldRedirect(arrWorlds[selectedIndex - 1][2]);" size="0">].
>>
>> I am using R_1601. Is this possible?
>>
>> Thanks,
>> -Mike
>>
>> function printWorldSelect()
>> {
>> if (arrWorlds.length > 0)
>> {
>> document.writeln("<select name='prompt'
>> onChange='worldRedirect(arrWorlds[selectedIndex - 1][2]);'>");
>> document.writeln('<option value="-1" SELECTED>-Select-</option>');
>> for (i=0; i<arrWorlds.length; i++)
>> {
>> if ( arrWorlds[i][0] > 0 )
>> {
>> var sTemp = "<option value='" + arrWorlds[i][0] + "'";
>> sTemp = sTemp + ">" + arrWorlds[i][1] + "</option>";
>> document.writeln(sTemp);
>> }
>> }
>> document.writeln("</select>");
>> }
>> }
>>
>
>
>
> This message has been processed by CAPE Technologies, Maple House, Temple
> Road, Blackrock, Co. Dublin. Registered in Ireland No. 319959
>
> _______________________________________________
> WebTest mailing list
> [email protected]
> http://lists.canoo.com/mailman/listinfo/webtest
>
>
--
View this message in context:
http://www.nabble.com/dynamic-select-tf4350572.html#a12406150
Sent from the WebTest mailing list archive at Nabble.com.
_______________________________________________
WebTest mailing list
[email protected]
http://lists.canoo.com/mailman/listinfo/webtest