• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Problem in calling javascript function

 
subhasish nag
Ranch Hand
Posts: 101
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64958
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
James Ward
Ranch Hand
Posts: 263
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 17
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 15385
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Seeing serverside markup does not help, we need to see examples on what gets rendered.

Eric
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64958
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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).
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic