Bookmark Topic Watch Topic
  • New Topic

Calling a JavaScript function from within another JavaScript function

 
R Naijat
Ranch Hand
Posts: 40
  • Mark post as helpful
  • send pies
  • Report post to moderator
Hi everybody,
I have a Title field, which I control the filed from within a JavaScript function with the following line. It works properly. The length of the filed is controlled by maxlength html property.



I’m trying to modify the filed, to be able to let user know how many chars he entered and how many chars are remaining, so I need to call the charCounter() function from within the first function.
This is my code, it does not give me any error message but does not do anything either! Does anybody know what I’m doing wrong?

 
R Naijat
Ranch Hand
Posts: 40
  • Mark post as helpful
  • send pies
  • Report post to moderator
I modified the part that I call the charCounter() function as follows but now receive this error:

The function charCounter must be used with a prefix when a default namespace is not specified

 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 65124
91
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Report post to moderator
The code contains JSP -- that makes this a JSP question. Please continue any questions about JSP in your other topic on this issue.

If you have JavaScript questions, you need to post the rendered HTML and JavaScript that is sent to the browser without any JSP markup.
 
    Bookmark Topic Watch Topic
  • New Topic