5 messages in com.canoo.lists.webtestRe: [Webtest] dynamic select| From | Sent On | Attachments |
|---|---|---|
| valemic | 29 Aug 2007 14:38 | |
| Marek Dębczyński | 30 Aug 2007 00:16 | |
| valemic | 30 Aug 2007 05:24 | |
| Marek Dębczyński | 03 Sep 2007 01:53 | |
| valemic | 03 Sep 2007 07:48 |
| Subject: | Re: [Webtest] dynamic select![]() |
|---|---|
| From: | valemic (vale...@yahoo.com) |
| Date: | 08/30/2007 05:24:51 AM |
| List: | com.canoo.lists.webtest |
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 WebT...@lists.canoo.com 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.




