[ htmlunit-Bugs-1345136 ] Unable to set javascript href from javascript

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

[ htmlunit-Bugs-1345136 ] Unable to set javascript href from javascript

SourceForge.net
Bugs item #1345136, was opened at 2005-11-01 19:26
Message generated for change (Comment added) made by mguillem
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=448266&aid=1345136&group_id=47038

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: None
Group: 1.7
>Status: Closed
>Resolution: Fixed
Priority: 5
Submitted By: tonylaq (ntonylaq)
>Assigned to: Marc Guillemot (mguillem)
Summary: Unable to set javascript href from javascript

Initial Comment:
I get an error when I try to do a action.
The action look like :

document.location.href = act;


// Here what I have :
act = javascript:do_action("/CC/compose")
do_action definition :
function do_action(url)
{
   var f = window.document.forms["myform"];
   f.action = url;
   f.submit();
   return;
}

The stack I got from this :
WrappedException:
org.mozilla.javascript.WrappedException: Wrapped
java.lang.IllegalArgumentException: javascript urls
canonly be used to load content into frames and iframes
(/js/iconsMenu.js#38)

----------------------------------------------------------------------

>Comment By: Marc Guillemot (mguillem)
Date: 2006-09-17 17:17

Message:
Logged In: YES
user_id=402164

I wasn't able to build a test running in FF with your
information. Nevertheless I could build a simple test
identifying a problem setting location to "javascript:...".
This is now fixed in SVN.

----------------------------------------------------------------------

You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=448266&aid=1345136&group_id=47038

-------------------------------------------------------------------------
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
_______________________________________________
HtmlUnit-develop mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/htmlunit-develop