By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
459,379 Members | 1,748 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 459,379 IT Pros & Developers. It's quick & easy.

running javascript function on load

P: n/a
Hi,
I have a input field like this
<input name="To" type="text" class="input" value="<%=toList%>" size="106"
onBlur="validateUser(document.NewCollab.To)">
this calls validateUser() as soon as I update the input field and lose focus
from it.

What I want is that this validateUser() should also be called on the intial
<%=toList%> that I am filling. I tried adding
onLoad="validateUser(document.NewCollab.To)"
but that didn't work.
What should I use ?
TIA
Sanjay

P.S. this toList is actually a variable in my jsp and is dynamic. Hence I
need to call that javascript function
Jul 20 '05 #1
Share this Question
Share on Google+
1 Reply


P: n/a
Sanjay Goel wrote on 09 jul 2003 in comp.lang.javascript:
I have a input field like this
<input name="To" type="text" class="input" value="<%=toList%>"
size="106" onBlur="validateUser(document.NewCollab.To)">
this calls validateUser() as soon as I update the input field and lose
focus from it.

What I want is that this validateUser() should also be called on the
intial <%=toList%> that I am filling. I tried adding
onLoad="validateUser(document.NewCollab.To)"
but that didn't work.
What should I use ?


<body onLoad="validateUser(document.NewCollab.To)">
<input name="To" type="text" class="input" value="<%=toList%>"
size="106" onBlur="validateUser(document.NewCollab.To)">
--
Evertjan.
The Netherlands.
(Please change the x'es to dots in my emailaddress)
Jul 20 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.