[Webtest] dynamic select
Marek Dębczyński
Marek Dębczyński
Thu, 30 Aug 2007 09:17:16 +0200
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