Wrox Programmer Forums
|
BOOK: Beginning JavaScript
This is the forum to discuss the Wrox book Beginning JavaScript by Paul Wilton; ISBN: 9780764544057
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Beginning JavaScript section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old August 22nd, 2004, 01:20 AM
Authorized User
 
Join Date: Mar 2004
Posts: 84
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via AIM to gmoney060 Send a message via MSN to gmoney060
Default help with my code

<script language="JavaScript">
    function validate(returnvalue)
    {
         //Validation Control Center
         //Use validateNotEmpty(fieldname,errormessage) to check if the field is empty
         //Use validateEMailCheck(fieldname,errormessage) to check if the email address is valid
         //These must go inside if statement
         var anError
         if(validateNotEmpty(document.MailingList.Email.val ue,"You must enter your e-mail address")==false){anError=true}else{
         if(validateEMailCheck(document.MailingList.Email.v alue,"You must enter a valid e-mail address for yourself")==false){anError=true}else{
         if(document.MailingList.SportsMailing.checked==fal se && document.MailingList.GamingMailing.checked==false) {alert("You must choose at least one topic");anError=true;}}}
         if(anError==true)
         {return false;}else{NewWindow('','Mailing',452,325,'no');r eturn true}

    }
            </script>

i keep getting this error:
line 32 (highlighted in red), char 2
'object expected'

 
Old August 22nd, 2004, 07:43 PM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 1,998
Thanks: 0
Thanked 3 Times in 3 Posts
Default

Hey,

scripting is case sensitive, so make sure everything is spelled exactly to the T.

Brian





Similar Threads
Thread Thread Starter Forum Replies Last Post
Urgent:hard disk serial code and vb code ivanlaw Pro VB 6 0 July 25th, 2007 04:05 AM
VB: .Exe file, serial code and activation code ivanlaw Pro VB 6 8 July 6th, 2007 05:44 AM
code clinic - Why wont example asp code work? jardbf Classic ASP Basics 3 April 27th, 2006 06:22 PM
Writing Client Side Script from Code-Behind code sajid_pk Classic ASP Databases 1 January 18th, 2005 12:53 AM
disable forum code within [code] blocks? nikolai Forum and Wrox.com Feedback 0 October 23rd, 2003 07:52 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.