document.write and form inputs

"Gabriel Page" <[email protected]>
Newsgroups gmane.comp.web.httpunit.devel
Message-ID <72558D9A7573814BB4082A28843E03D403547310@intyodc01.uk.ioko365.com>
Hello

 

I'm fairly new to HTTPUnit and am trying to retrieve information about
html pages to do a web crawl.

 

I've encountered a site that uses JavaScript to write out for input
fields, ie:

 

document.write("<select id='dropdownList'>");

document.write("<option value='val1'>Label 1</option>");

document.write("<option value='val2'>Label 2</option>");

document.write("<option value='val3'>Label 3</option>");

document.write("</select>");

 

I'm presuming the javascript is being interpreted as when I get a
WebForm and do getText() on it I see the labels. However, it seems these
options have not been added the HTTPUnit WebForm. 

 

Calls to form.getParameterNames() return an empty array.

 

Could someone let me know if this is supported or not to save me
spending too much time trying to work it out.

 

Any suggestion appreciated (other than change the source HTML, It's not
mine!)

 

Gabriel



Communications on or through ioko's computer systems may be monitored or recorded to secure effective system operation and for other lawful purposes.

Unless otherwise agreed expressly in writing, this communication is to be treated as confidential and the information in it may not be used or disclosed except for the purpose for which it has been sent. If you have reason to believe that you are not the intended recipient of this communication, please contact the sender immediately. No employee is authorised to conclude any binding agreement on behalf of ioko with another party by e-mail without prior express written confirmation.

ioko365 Ltd.  VAT reg 656 2443 31. Reg no 3048367. All rights reserved.

-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642

_______________________________________________
Httpunit-develop mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/httpunit-develop
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.