Meaningless Drivel is fun!*
The moose likes Struts and the fly likes javascript function with argument not getting called in display tag 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 » Frameworks » Struts
Bookmark "javascript function with argument not getting called in display tag" Watch "javascript function with argument not getting called in display tag" New topic
Author

javascript function with argument not getting called in display tag

Kousik Majumder
Ranch Hand

Joined: Sep 30, 2007
Posts: 229
Hi All,

I have used below code. The values are showing properly. But I can not receiving the argument value in javascript function.



Thanks in Advance,
Kousik
Sagar Rohankar
Ranch Hand

Joined: Feb 19, 2008
Posts: 2902
    
    1

Try putting semicolon:


[LEARNING bLOG] | [Freelance Web Designer] | [and "Rohan" is part of my surname]
Kousik Majumder
Ranch Hand

Joined: Sep 30, 2007
Posts: 229
No..still it is not working....
Sagar Rohankar
Ranch Hand

Joined: Feb 19, 2008
Posts: 2902
    
    1

A quick Google search and and it tell me that the "javascript:function();" should be only used to do some kind of navigationon page and not for calling the DOM operated JS function.
For your need, people suggest this best approach:


And to get better result, you should have asked this question in "HTML-JavaScript" section.
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: javascript function with argument not getting called in display tag
 
Similar Threads
display:column & action
display tag export problem
Posting a form to a hidden frame in the same page
not getting the value.
javascript function calling with parameter in display tag