It's probably because an AND in javascript is && and not a single &.
Hope that helps, Cedric -----Original Message----- From: Lionel Crine [mailto:[EMAIL PROTECTED] Sent: 18 August 2003 15:04 To: [EMAIL PROTECTED] Subject: javascript error I wrote a little script : <script language="javascript"> function controle() { ... if (subgif != 'gif' & subgif != 'GIF') ... } </script> This xcript tests some illustration but the "&" entity create an error. I tried to write & instead but it doesn't work. Javascript in xhtml page should be handle in a particular way ? Lionel Lionel CRINE Soci�t� : 4DConcept 22 rue Etienne de Jouy 78353 JOUY EN JOSAS Tel : 01.34.58.70.70 Fax : 01.39.58.70.70 --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- This e-mail is confidential and is intended for the named recipient only. If you receive it in error please destroy the message and all copies. Kainos Software Ltd. does not accept liability for damage sustained as a result of malicious software (e.g. viruses). Kainos does not accept liability for, or permit, the creation of contracts on its behalf by e-mail, the publication of any defamatory statement by its employees by e-mail, or changes subsequently made to the original message. The Company's registered office is located at 4-6 Upper Crescent, Belfast, BT7 1NT, Northern Ireland, Tel +44 28 9057 1100. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
