The javascript function probably has references to form objects other than the text box, which either cannot be found on the page, are misspelt or are in the wrong case.
You may also need to specify the full path of the form objects whenever they are referred to in your function. Ie. Document.formname.objectname Maxwell -----Original Message----- From: [email protected] [mailto:[EMAIL PROTECTED] On Behalf Of Adrian Forbes - ITD Sent: Tuesday, May 17, 2005 3:46 PM To: [email protected] Subject: RE: [ASP] Object Expected - JavaScript in ASP Page Try taking the code out of the HEAD area and inside the BODY -----Original Message----- From: [email protected] [mailto:[EMAIL PROTECTED] On Behalf Of Mills, Andy R. (Regency) Sent: 17 May 2005 1:37 To: '[email protected]' Subject: [ASP] Object Expected - JavaScript in ASP Page Hello Guys: I am about at wits end. This should be very basic, but for some reason: I cannot figure out my mistake. I have a the following code: input name="Kits" type="text" id="Kits" size="5" OnChange="updateTotals()" And my JavaScript is defined in the HEAD as: script language="JavaScript"> function updateTotals() { ..... } When I change the value of the textbox, I Get a JavaScript error of "Object Expected." I have tried a variety of things, but to no avail. Any help would be appreciated. Thanks Andy Mills Programmer Regency Thermographers 717-765-3572 <mailto:[EMAIL PROTECTED]> [EMAIL PROTECTED] http://www.regencythermo.com <http://www.regencythermo.com/> [Non-text portions of this message have been removed] --------------------------------------------------------------------- Home : http://groups.yahoo.com/group/active-server-pages --------------------------------------------------------------------- Post : [email protected] Subscribe : [EMAIL PROTECTED] Unsubscribe: [EMAIL PROTECTED] --------------------------------------------------------------------- Yahoo! Groups Links The contents of this email and any attachments are sent for the personal attention of the addressee(s) only and may be confidential. If you are not the intended addressee, any use, disclosure or copying of this email and any attachments is unauthorised - please notify the sender by return and delete the message. Any representations or commitments expressed in this email are subject to contract. ntl Group Limited --------------------------------------------------------------------- Home : http://groups.yahoo.com/group/active-server-pages --------------------------------------------------------------------- Post : [email protected] Subscribe : [EMAIL PROTECTED] Unsubscribe: [EMAIL PROTECTED] --------------------------------------------------------------------- Yahoo! Groups Links --------------------------------------------------------------------------- CRBAfrica - providing professional debt management and credit reference bureau services in Kenya, Uganda, Botswana, Tanzania, Ghana and Zambia. --------------------------------------------------------------------------- AccessKenya - Your Corporate ISP - CRB's solution provider for fast efficient Email and Internet Services --------------------------------------------------------------------------- ATTENTION --------------------------------------------------------------------------- The information in this electronic mail message is private and confidential and only for the addressee. Should you receive this message by mistake, you are hereby notified that any disclosure, reproduction, distribution or use of this message is strictly prohibited. Please inform the sender by reply transmission and delete the message without copying or opening it. Any unauthorised use or interception of this e.mail is illegal. If this e.mail is not intended for you, you may not copy, distribute or disclose the contents to anyone. Save for the bona fide company matters, the CRB Group of companies does not accept responsibility for the opinions expressed in this e.mail. --------------------------------------------------------------------------- --------------------------------------------------------------------- Home : http://groups.yahoo.com/group/active-server-pages --------------------------------------------------------------------- Post : [email protected] Subscribe : [EMAIL PROTECTED] Unsubscribe: [EMAIL PROTECTED] --------------------------------------------------------------------- Yahoo! Groups Links <*> To visit your group on the web, go to: http://groups.yahoo.com/group/active-server-pages/ <*> To unsubscribe from this group, send an email to: [EMAIL PROTECTED] <*> Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
