jQuery in Action, 2nd edition*
The moose likes HTML, CSS and JavaScript and the fly likes Javascript function call not working Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "Javascript function call not working" Watch "Javascript function call not working" New topic
Author

Javascript function call not working

Gobenath Msr
Greenhorn

Joined: Mar 15, 2013
Posts: 4
The javascript function is not getting triggered. Need help. very urgent. Is it any single quote or double quote missing?







Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 60806
    
  65

Please show us the final format of the anchor tag. The server-side markup is not helpful.


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
Gobenath Msr
Greenhorn

Joined: Mar 15, 2013
Posts: 4
Here is the format. The commented line is working fine. If I add 'this' as parameter, javascript function is not getting triggered.

Jeanne Boyarsky
internet detective
Marshal

Joined: May 26, 2003
Posts: 30136
    
150

I think Bear meant to "View source" on the generated HTML page and show what the anchor looks like there. That will tell if there is a quoting type issue.

Also, have you looked at the JavaScript error console in your browser yet? This will tell if there is a runtime error when trying to call the function.


[Blog] [JavaRanch FAQ] [How To Ask Questions The Smart Way] [Book Promos]
Blogging on Certs: SCEA Part 1, Part 2 & 3, Core Spring 3, OCAJP, OCPJP beta, TOGAF part 1 and part 2
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 60806
    
  65

Jeanne is correct. Posting server-side JSP code to try and diagnose a client-side problem doesn't help us help you. When asking questions about client-side issues, we need to see the client-side markup.

The JavaScript debugger available in all moderne browsers is your best friend. Use it.
 
wood burning stoves
 
subject: Javascript function call not working
 
Similar Threads
Breaking a string down and tokenizers - help!
Call Java Script Function in JSP from JAVA Class
JDBC Help figuring it out
call java code from javascript
Applet freezes after displaying pages using showDocument