• 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

submitOnChange in IE as expected in Firefox

 
Greenhorn
Posts: 16
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi

In webapplication there are quite a number of places where there is a dropdown select.The functionality is in such a way that when we select a particular element from the dropdown using mouse and clicking the same submits it to other jsp page.When the same is selected by the down arrow key the first element (after -none-) gets selected always thereby forcing the submit function to occur and the other elements cant be selected.

submitOnChange functionality is working on Firefox ,can i get some clue to implement the same in IE,


Thanks and regards
Praveen Ramachandran
 
author
Posts: 15385
6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I never heard of submitonchange...

you can do

onchange="document.formName.submit();"
onblur="document.formName.submit();"

And make sure that if you have a submit button on the page, that its name is not submit.

Eric
 
Ranch Hand
Posts: 893
Tomcat Server Java Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I have the same problem and was also thinking about using the onblur event.

The pitfall of this is that there will be a submit after the user leaves the field while there is no change.

This can be solved with a separate submit button, but is it not possible to change the behavior of IE by the onchange event.
 
Eric Pascarello
author
Posts: 15385
6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
you either have to use a timeout. This happens in IE6 and under, not in IE7

Only way to stop it is to use a timeout


or change it to use onblur
 
reply
    Bookmark Topic Watch Topic
  • New Topic