Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

Problems with Code Hinting - CS5

Community Beginner ,
Jun 29, 2010 Jun 29, 2010

Hello folks.

I have a stranger warning inside Dreamweaver CS5 about code hinting.

I believe my code is all right but Dreamweaver shows me a warning

"There is a syntax error on line N. Code hinting may not work until you fix this error."

No errors

no_error.jpg

Errors

error_jquery.jpg

The first line is: < script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js">< /script >

There are some extra spaces because I don't know if this forum blocks this kind of content.

Another stranger error situation

error_none.jpg

This last situation works just fine in my HTML. I have a header/footer system to include in all pages, so I don't need to use the second image.

Thanks for help

Rafael

TOPICS
Server side applications
661
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Jun 30, 2010 Jun 30, 2010

Hi Rafael,

I typed the same code into my document and no errors.

$(document).ready(function() {
    // put all your jQuery goodness in here.
});

Perhaps, if you copy and paste the code above, it may solve your problem.

Ben

Wappler is the DMXzone-made Dreamweaver replacement and includes the best of their powerful extensions, as well as much more!
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Jul 03, 2010 Jul 03, 2010
LATEST

The syntax checker in Dreamweaver CS5 runs as a lower priority operation, and sometimes fails to clear when you complete the code. Press Ctrl/Cmd+period (full stop) to refresh syntax checking if you think it's displaying an incorrect warning.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines