Forums » .NET » General »

onchange event in vbscript


Posted Date: 07 Dec 2006      Posted By:: Deepthy Raj     Member Level: Silver    Member Rank: 0     Points: 2   Responses: 1



I am trying to call an asp function when a user changes a textbox field. The
code looks something like this:


<% @LANGUAGE =VBSCRIPT %>


<% Option Explicit %>


<HTML>


<HEAD>


<TITLE>Sample Form</TITLE>


</HEAD>


<% Function CheckUsername(UName)


................. CODE
End Function %>


<TABLE>


HTML TEXT........


<INPUT TYPE=text NAME="UName" VALUE="" size="25"
ONCHANGE="CheckUsername(this.form.UName)">


</TABLE>


</HTML>


Now when I display the page, and change the UName value, I get an error
message that says: " Object Expected"


Any help is appreciated.






Responses

#98904    Author: Kavitha      Member Level: Gold      Member Rank: 216     Date: 07/Dec/2006   Rating: 2 out of 52 out of 5     Points: 2

Hi
Try this
<INPUT TYPE=text NAME="UName" VALUE="" size="25"
onChange="CheckUsername(this.form.UName)">

'onChange - case sensitive

Regards
NK
Pearltech



 
Post Reply

 This thread is locked for new responses. Please post your comments and questions as a separate thread.
If required, refer to the URL of this page in your new post.



Next : pls calrify the doubt?
Previous : Sharepoint Server 2003
Return to Discussion Forum
Post New Message
Category:

Related Messages
Active Members
TodayLast 7 Daysmore...

Awards & Gifts
Copyright © SpiderWorks Technologies Pvt Ltd., Kochi, India
2005 - 2012 All Rights Reserved.
.NET and other trademarks mentioned in this site belong to Microsoft and other respective trademark owners.
Articles, tutorials and all other content offered here is for educational purpose only.
We are not associated with Microsoft or its partners.