window.location.href javascript issue

"JP Genty - LibertySurf" <[email protected]>
Newsgroups gmane.comp.web.httpunit.devel
Message-ID <[email protected]>
  Hi

  I'am new to httpunit.

  I use last stable version.

  I have to test this code:

 function go_value(value)
{
......
window.location.href='othervalue.asp?idNameDB='+value
}

<form name ="myform" .... >
....

       <select name="nameDB"
onchange="go_value(this.options[selectedIndex].value)"
....  >

            <option value=""></option>

             <option value="01">Value 01</option>
             <option value="02">Value 02</option>
             <option value="03">Value 03</option>
             <option value="04">Value 04</option>
        </select>

......

</form>


My program looks like:

            ....
            WebForm wform = wbResponse.getFirstMatchingForm(
WebForm.MATCH_NAME, "myform");

            wform .setParameter("nameDB", "01");

          // At this point 'onchange' should be called, so the go_value
function should be called, and the value
          // of window.location.href should change (as I understand
http://httpunit.sourceforge.net/doc/javascript-support.html )

 My question is how do I read the new page generated ?

  Thanks for your reply !!

   Jean-Paul

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/

_______________________________________________
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.