That got rid of the syntax error, not the alerts are just not working. I am sure I can figure it out though. Thanks Jacob.
----- Original Message -----
Sent: Saturday, January 24, 2004 4:06 PM
Subject: RE: _javascript_

Bad use of semi-colons is the first thing I see, I edited your code inline below, didn't test or anything though..
 
Jacob


From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Bruce Sorge
Sent: Saturday, January 24, 2004 3:59 PM
To: [EMAIL PROTECTED]
Subject: _javascript_

Ahh. My arch nemesis, _javascript_. I am having issues with this piece of code:
 
function checkCCAccount(Ticket) {
  Pmt = Ticket.PaymentType.selectedIndex
   if (Ticket.PaymentType.options[Pmt].value == 1)  
     alert(Ticket.PaymentType.options[Pmt].value + "You must enter the account information if you are paying by Corporate Check"); 
   else if (Ticket.PaymentType.options[Pmt].value == 3)
    alert(TIcket.PaymentType.options[Pmt].value + "Please note that your credit card will be process at the time of the service call");
   else if (Ticket.PaymentType.options[Pmt].value == 4)
    alert(TIcket.PaymentType.options[Pmt].value + "Please note that your credit card will be process at the time of the service call");
   else if (Ticket.PaymentType.options[Pmt].value == 5)
    alert(TIcket.PaymentType.options[Pmt].value + "Please note that your credit card will be process at the time of the service call");
   else (Ticket.PaymentType.options[Pmt].value == 6)
    alert(TIcket.PaymentType.options[Pmt].value + "Please note that your credit card will be process at the time of the service call");
  }
 
I keep getting a syntax error. Any takers?
 
Thanks,
 
Bruce


-------------------------------------------------------------------------------
This message was processed by Mail Filter Extension
http://sssolutions.net/mf/
-------------------------------------------------------------------------------



-------------------------------------------------------------------------------
This message was processed by Mail Filter Extension
http://sssolutions.net/mf/
-------------------------------------------------------------------------------



-------------------------------------------------------------------------------
This message was processed by Mail Filter Extension
http://sssolutions.net/mf/
-------------------------------------------------------------------------------

Reply via email to