aspose file tools*
The moose likes HTML, CSS and JavaScript and the fly likes Problem in calling javascript function Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "Problem in calling javascript function" Watch "Problem in calling javascript function" New topic
Author

Problem in calling javascript function

subhasish nag
Ranch Hand

Joined: Apr 25, 2008
Posts: 101
Hi Ranchers,
I have a problem.
want to call a function to set a jsp field dynamically
the function is
I am unable to call the function as I 'm unable to pass the right argumenty.


Can anybody pl guide how to call the function properly and set the value for the field


Thanks,<br />Subhasish
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 61198
    
  66

A couple of things.

Firstly, this is an HTML forum, not a Struts forum. Posting code with Struts tags in it isn't a great idea as most people won't know what they mean. Please show only the real HTML code.

Your code also has a lot of formatting problems that makes it hard to read.

Secondly, please use real words when posting to the forums. Abbreviations such as "pl" in place of "please" only serve to make your posts more difficult to read and less likely to generate useful responses.

Please read this for more information.

thanks,
bear
JavaRanch sheriff

[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
James Ward
Ranch Hand

Joined: Apr 27, 2003
Posts: 263
getCertificateNo - from your html code, we do not see any invocation of this function. You said you are not able to call this function with correct arguments; can you show how you are calling it.
Gavi jadz Grandea
Greenhorn

Joined: Sep 11, 2009
Posts: 17
I think onchange() should call a javascript function (probably the one you posted:
onchange="getCertificateNo(<%=var%>)" ).

And you might want to explain/show more for us to understand better.

-Jadz
Eric Pascarello
author
Rancher

Joined: Nov 08, 2001
Posts: 15376
    
    6
Seeing serverside markup does not help, we need to see examples on what gets rendered.

Eric
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 61198
    
  66

Gavi jadz Grandea,

Please be sure to use code tags to display code in your posts rather than green text (which is hard to see against the tab background on many monitors).
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Problem in calling javascript function