From: Welsh, P. <pat...@ab...> - 2005-03-22 19:04:23
|
BTW: The chunk of page I am trying to test looks like this: <div class=3DFORM-BUTTON><a href=3D"javascript:document.Login.submit()"> <img src=3D"/Thomson/Images/Submit.gif" border=3D0 alt=3D'Submit'=20 onkeydown=3D"javascript: if(event.keyCode =3D=3D 13){document.Login.submit()};"></a> </div> ________________________________ From: Welsh, Patrick=20 Sent: Tuesday, March 22, 2005 12:29 PM To: 'htm...@li...' Subject: Javascript url content loading problem Hello all: =20 Thanks, first of all, for the excellent tool! =20 I'm using it via Joe Bergin's HtmlFixture for FitNesse, but the issue I have may be an HtmlUnit problem, so I'm posting it here.=20 =20 When I execute javascript in an anchor tag that submits the current form, I get back this from HtmlUnit: =20 "java.lang.IllegalArgumentException: javascript urls can only be used to load content into frames and iframes at com.gargoylesoftware.htmlunit.WebClient.makeWebResponseForJavaScriptUrl( WebClient.java:1496)" =20 What does this mean? Why does makeWebResponseForJavaScriptUrl care where the content is loaded? Is there a workaround for me? =20 Thanks much,=20 =20 --Patrick =20 Patrick Wilson-Welsh Software Development Abridean Corp |