[Webtest] dynamic select
Marek Dębczyński
Marek Dębczyński
Mon, 03 Sep 2007 10:53:43 +0200
Hi Mike
is your problem with dynamic select resolved?
Regards
Marek
valemic pisze:
> 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 ru=
n
>>> 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-</opti=
on>');
>>> 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, Tem=
ple
>> Road, Blackrock, Co. Dublin. Registered in Ireland No. 319959
>>
>> _______________________________________________
>> WebTest mailing list
>> WebTest@lists.canoo.com
>> http://lists.canoo.com/mailman/listinfo/webtest
>>
>>
>>
>
>
This message has been processed by CAPE Technologies, Maple House, Temple Road, Blackrock, Co. Dublin. Registered in Ireland No. 319959