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 multiple javascripts on a button not working Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "multiple javascripts on a button not working" Watch "multiple javascripts on a button not working" New topic
Author

multiple javascripts on a button not working

Rakesh Keerthi
Ranch Hand

Joined: Jul 16, 2012
Posts: 136
Hi,
below is the code that i used for multiple java scripts on a single button. but only any one is working when i disable the second one. please let me know how do i change me code to make it to work fine.



and the html is as below




Thanks
Eric Pascarello
author
Rancher

Joined: Nov 08, 2001
Posts: 15376
    
    6
So you are submitting the form and than expecting some other action to occur. Not going to happen.

Also use a switch case.

Eric

Rakesh Keerthi
Ranch Hand

Joined: Jul 16, 2012
Posts: 136
@Eric: thank you Eric switch worked.
@Bear: sorry for the way i posted.
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 60046
    
  65

Rakesh Keerthi wrote:@Bear: sorry for the way i posted.

No need to be sorry. Posting code that's hard to read only hurts your own efforts to get help.


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: multiple javascripts on a button not working
 
Similar Threads
Not able to retrive the Value sent through JavaScript function
using multiple submit buttons
Display div's based upon selection of radio Buttons.
Compare textbox data with sql table data
Oracle table takes Null