From: Welsh, P. <pat...@ab...> - 2005-03-22 19:34:46
|
Here is the HTML source in question: <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> Sounds like perhaps I should roll my own solution with HtmlUnit, instead of trying to work through HtmlFixture.=20 -----Original Message----- From: htm...@li... [mailto:htm...@li...] On Behalf Of Brad Clarke Sent: Tuesday, March 22, 2005 3:04 PM To: htm...@li... Subject: Re: [Htmlunit-user] Javascript url content loading problem I'm not really sure what a javascript url does when loaded into a frame. Could you provide the relevant part of the html source? That fixture looks like it's using a very old version of HtmlUnit but has added to the HtmlUnit jar instead of creating it's own so I'm not sure how you'd update it. --- "Welsh, Patrick" <pat...@ab...> wrote: > 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=20 > I have may be an HtmlUnit problem, so I'm posting it here. > =20 > When I execute javascript in an anchor tag that submits the current=20 > form, I get back this from HtmlUnit: > =20 > "java.lang.IllegalArgumentException: javascript urls can only be used=20 > to load content into frames and iframes at=20 > com.gargoylesoftware.htmlunit.WebClient.makeWebResponseForJavaScriptUr > l( > WebClient.java:1496)" > =20 > What does this mean? Why does makeWebResponseForJavaScriptUrl care=20 > where the content is loaded? Is there a workaround for me? > =20 > Thanks much, > =20 > --Patrick > =20 > Patrick Wilson-Welsh > Software Development > Abridean Corp >=20 ------------------------------------------------------- This SF.net email is sponsored by: 2005 Windows Mobile Application Contest Submit applications for Windows Mobile(tm)-based Pocket PCs or Smartphones for the chance to win $25,000 and application distribution. Enter today at = http://ads.osdn.com/?ad_id=3D6882&alloc_id=3D15148&op=3Dclick _______________________________________________ Htmlunit-user mailing list Htm...@li... https://lists.sourceforge.net/lists/listinfo/htmlunit-user |