wood burning stoves 2.0*
The moose likes HTML, CSS and JavaScript and the fly likes Calling a JavaScript function from within another JavaScript function Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Reply locked New topic
Author

Calling a JavaScript function from within another JavaScript function

R Naijat
Ranch Hand

Joined: Nov 01, 2011
Posts: 40
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

Joined: Nov 01, 2011
Posts: 40
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

Joined: Jan 10, 2002
Posts: 61092
    
  66

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.


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Calling a JavaScript function from within another JavaScript function