I have some code that runs on the "full" event of a text field. When I'm typing in that field and it gets full, the code fires properly. The problem I'm having is that if I set the rawValue of the text box using some javascript and the rawValue text is tool long for the text box, the "full" event doesn't fire.
Any suggestions?
- Nathan
Views
Replies
Total Likes
Hi Nathan,
What if you added a script to the existing Javascript that measures the length of the Javascript generated string and if it exceeds the length have it fire the "full" event for the field.
var txt = "hello world";
var fullTxt = 6;
if(txt.length >= fullTxt )
{
textField1.execEvent("full");
}
Hope this helps!
Stephen
Views
Replies
Total Likes
Thanks for the response. I had considered that, but the problem with that solution is that the field is rather long and doesn't use a fixed-length font, so it's very difficult to predict what I should use as the value of the "fullTxt" variable in your example.
- Nathan
Views
Replies
Total Likes