• 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

buttons cannot work properly by using Firefox 1.5

 
Ranch Hand
Posts: 65
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi, I find some of my buttons cannot work properly by using Firefox 1.5 which I just upgraded to. Sometimes need to click many times then it works, else if click only once nothing happens.Last time in Firfox 1.0.7 can work without any problem.
The buttons is outside the ActionForm in JSP.

the code for the pbm button is like this :
<input name="back" type="submit" class="buttons" value="Back" on Click="window.location='../action/ClientProfileEntryAction.do'">

Any one have same pbm as me?
[ February 06, 2006: Message edited by: michelle Wang ]
 
Ranch Hand
Posts: 4864
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I don't know why this code works with one version of Firefox and not another.

I have found, though, that it's best to decide:

1-Do I want to submit the form and have it's inputs passed on through the request? If so, use <input type="submit" >, define the action in the <form> tag, and don't use the onclick event. If you need to invoke javaScript validation before the form is submitted, use the onsubmit event of the <form> tag.

2-Do I want the clicking of a button to be handled by javaScript? If so, use the <input type="button" > and use the onclick event.

I have not had good results by mixing a submit button and the onclick event.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic