This week's book giveaway is in the OCMJEA forum.
We're giving away four copies of OCM Java EE 6 Enterprise Architect Exam Guide and have Paul Allen & Joseph Bambara on-line!
See this thread for details.
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 OCM Java EE 6 Enterprise Architect Exam Guide this week in the OCMJEA 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.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: javascript function with argument not getting called in display tag