Win a copy of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js this week in the JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

How to Acheive Auto Submit.?  RSS feed

 
Dhaval Patel
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi there,
I am wondering if i am able to call a servlet just by selecting the drop down list. Usual practice is that u select yr choice from drop down list & then click the button next to it to submit yr choice, after that yr request would be processed...
Is there any way that just by selecting the choice my request is forwarded...

Thanx
Dhaval.
SCJP2
 
David O'Meara
Rancher
Posts: 13459
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
It's a Javascript answer, but yes you can and it's something like this: (it's been a while since I did it)

Dave
 
Mike Curwen
Ranch Hand
Posts: 3695
IntelliJ IDE Java Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
< select name="whatever" onchange="document.forms[0].submit()" >
In some browsers, the forms[0] seems to be a requirement.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!