OnAfterChange

M

MattO

I have a text field in my form. I want to display the number of characters
in the field directly above it -- this number obviously changes each time the
user types in the field. The character count will be stored as an attribute
of the current node. I've found that when the OnAfterChange event fires for
the text field, and I calculate the number of characters and call
eventObj.Site.setAttribute( "my:length", eventObj.Site.text.length );, the
OnAfterChange event fires again. This repeats until an error message appears
indicating that the maximum number of recursive calls has been made. I
assume I'm just going about this the wrong way. Any suggestions?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top