File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes HTML, CSS and JavaScript and the fly likes problem with submit and redirection {javascipt struts under google chrome} Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Reply locked New topic
Author

problem with submit and redirection {javascipt struts under google chrome}

abdel solarie
Greenhorn

Joined: Oct 29, 2010
Posts: 9

hi,
i developed one application using struts , i have tested it with Firefox ad IE i works verry well but i have got problem with google chrome,
the problem is that : whene i click on one button i excpect that the rattched javascipt function submit first oen form then redirect me to another link, but under google chrome , the form isn't submitted (for Firefox and IE no problem)

the function
function cll()

{this.document.forms["myform"].submit();
var p=document.getElementById('myLink').href;
location.href =p;
}

the form :

<form id="myform" action="urlt0.do" method="post">
<html:hidden name="urlt0" property="url_page_t0" value=""/>
</form>
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 61413
    
  67

Please do not cross-post the same question in multiple forums. It wastes people's time when multiple redundant conversations take place. Please click this link ⇒ CarefullyChooseOneForum ⇐ for more information.


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: problem with submit and redirection {javascipt struts under google chrome}