I cannot figure out how to execute the Javascript
embedded in this html (simplified for the purpose
of example):
<html>
<head>
<script type="text/javascript">
function Execute()
{
document.write("hello from alex");
}
</script>
</head>
<body onload="Execute();">
<form>
</form>
</body>
</html>
This is what I do with Httpunit
wc = new WebConversation();
req = new GetMethodWebRequest( "http://intranet.brightmail.com/~alex/foo.html" );
resp = wc.getResponse( req );
In real life, my Javascript executes a script, but
I cannot get to execute at all.
Do I need to do something to resp?
Please help,
Thanks a lot!
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I cannot figure out how to execute the Javascript
embedded in this html (simplified for the purpose
of example):
<html>
<head>
<script type="text/javascript">
function Execute()
{
document.write("hello from alex");
}
</script>
</head>
<body onload="Execute();">
<form>
</form>
</body>
</html>
This is what I do with Httpunit
wc = new WebConversation();
req = new GetMethodWebRequest( "http://intranet.brightmail.com/~alex/foo.html" );
resp = wc.getResponse( req );
In real life, my Javascript executes a script, but
I cannot get to execute at all.
Do I need to do something to resp?
Please help,
Thanks a lot!