• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

problem with submit and redirection

 
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
hi,
i developpet 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;
}
problem with submit and redirection {javascipt struts under google chrome}
the form :

<form id="myform" action="urlt0.do" method="post">
<html:hidden name="urlt0" property="url_page_t0" value=""/>
</form>

the button
<td class="divleft"><div align="center" ><a id="myLink" href="/projet_web/search.do?ml=38&fpc=1000" >
<input type="hidden"/></a>
<input name="button" type="button" class="inputbutton" value="Recherche" onclick="cll()" />
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic