| || |
Getting selected value from a readonly listbox on a webpage
I want to fetch the value of currently selected item in a read-only list box on a web page. I tried "list_get_selected" function but it returns blank as the list box is disabled. So is there any way to get the value from a disabled listbox.
If anybody knows....do reply me immediately.
Re: Getting selected value from a readonly listbox on a webpage
Just a hunch, but try this:
</font><blockquote><font size="1" face="Verdana, Arial, Helvetica">code:</font><hr /><pre style="font-size:x-small; font-family: monospace;">list_get_info("list_obj", "value", itemNbr);
list_get_item("list_obj", substr(itemNbr,1), item); # substr strips leading "#"</pre><hr /></blockquote><font size="2" face="Verdana, Arial, Helvetica">PS: I assumed this was a WinRunner question, thus have moved it to that forum.
[i]...Sound trumpets! Every trumpet in the host! / Sixty thousand, on these words, sound, so high the mountains sound, and the valleys resound.</i] (The Song of Roland)