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>");
   }
}
-- 
View this message in context: 
http://www.nabble.com/dynamic-select-tf4350572.html#a12396260
Sent from the WebTest mailing list archive at Nabble.com.

_______________________________________________
WebTest mailing list
[email protected]
http://lists.canoo.com/mailman/listinfo/webtest

Reply via email to