[jQuery] Re: Javascript errors on site using jQuery

2007-05-22 Thread Andy Matthews
Great. Thanks Dan. I'll check that out.

  _  

From: jquery-en@googlegroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Dan G. Switzer, II
Sent: Tuesday, May 22, 2007 8:59 AM
To: jquery-en@googlegroups.com
Subject: [jQuery] Re: Javascript errors on site using jQuery



Andy,

 

You've got multiple  tags in your output. You can only have 1
 tag an it must be the first element.

 

I see this problem again and again. Apps are build that generated invalid
HTML structures (multiple opening , , etc tags) and when they go
to specify the doctype, the app breaks. Browsers are very forgiving when
running in Quirks mode, but as soon as you specify a doctype, you must make
sure your HTML is valid (or at least that the core rules, one  and one
 block are used.)

 

-Dan

 

  _  

From: jquery-en@googlegroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Andy Matthews
Sent: Tuesday, May 22, 2007 9:50 AM
To: jquery-en@googlegroups.com
Subject: [jQuery] Javascript errors on site using jQuery

 

My company uses this page to do some research work.

 

http://vehix.dealerskins.com/

 

We just uploaded some new files that include the jQuery library. Now, all of
a sudden we're getting JS errors. It says "syntax error on line 2" and
references our doctype line:



 

Does anyone know why this is happening?

 



 

Andy Matthews
Senior Coldfusion Developer

Office:  877.707.5467 x747
Direct:  615.627.9747
Fax:  615.467.6249

[EMAIL PROTECTED]
www.dealerskins.com <http://www.dealerskins.com/> 

 

<>

[jQuery] Re: Javascript errors on site using jQuery

2007-05-22 Thread Dan G. Switzer, II
Andy,

 

You've got multiple  tags in your output. You can only have 1
 tag an it must be the first element.

 

I see this problem again and again. Apps are build that generated invalid
HTML structures (multiple opening , , etc tags) and when they go
to specify the doctype, the app breaks. Browsers are very forgiving when
running in Quirks mode, but as soon as you specify a doctype, you must make
sure your HTML is valid (or at least that the core rules, one  and one
 block are used.)

 

-Dan

 

  _  

From: jquery-en@googlegroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Andy Matthews
Sent: Tuesday, May 22, 2007 9:50 AM
To: jquery-en@googlegroups.com
Subject: [jQuery] Javascript errors on site using jQuery

 

My company uses this page to do some research work.

 

http://vehix.dealerskins.com/

 

We just uploaded some new files that include the jQuery library. Now, all of
a sudden we're getting JS errors. It says "syntax error on line 2" and
references our doctype line:



 

Does anyone know why this is happening?

 



 

Andy Matthews
Senior Coldfusion Developer

Office:  877.707.5467 x747
Direct:  615.627.9747
Fax:  615.467.6249

[EMAIL PROTECTED]
www.dealerskins.com  

 

<>