Home > syntax error > dreamweaver script tag syntax error

Dreamweaver Script Tag Syntax Error

Contents

here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of this site About Us Learn more about

Dreamweaver Syntax Error Code Hinting

Stack Overflow the company Business Learn more about hiring developers or posting ads with how to fix syntax error in dreamweaver us Stack Overflow Questions Jobs Documentation Tags Users Badges Ask Question x Dismiss Join the Stack Overflow Community Stack Overflow is a community of 4.7 million programmers, just like you, helping each other. Join them; it only takes a minute: Sign up Why does Dreamweaver show syntax error for this script line? up vote 1 down vote favorite Why does Dreamweaver page using .dwt show syntax error for this script line? script window.jQuery || document.write(' It shows syntax error only on a page using the template .dwt file. Does not show error in the template - only when applied to a page. javascript jquery templates dreamweaver share|improve this question edited May 7 '15 at 18:53 Rory McCrossan 154k22130179 asked May 7 '15 at 18:52 Will Noel 247 It's probably because the script tags in the JS code are confusing the parser. –Rory McCrossan May 7 '15 at 18:54 add a comment| 1 Answer 1 active oldest votes up vote 1 down vote accepted You are not escaping the first / character script window.jQuery || document.write(' Should be script window.jQuery || document.write(' Although you can use document.createElement('script') which is less confusing for the parser if(!window.jQuery) { var script = document.createElement("script"); script.src = "js/jquery.min.js"; document.body.appendChild(script); } share|improve this answer edited May 7 '15 at 18:59 answered May 7 '15 at 18:54 Tiny Giant 10.4k62046 Yes - RORY, your second answer option resolved the problem. THANK YOU. the if statement fixed it. –Will Noel May 9 '15 at 15:46 this answer is accepted –Will Noel May 11 '15 at 13:15 add a comment| Your Answer draft saved draft discarded Sign up or log in Sign up using Google Sign up using Facebook Sign up using Email and Password Post as a guest Name Email Post as a guest Name Email discard By posting your answer, you agree to the privacy policy and terms of service. Not the answer you're looking for? Browse other questions tag

here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of this site About Us Learn more about Stack Overflow the company Business Learn more about hiring developers or posting ads with us Stack Overflow Questions Jobs Documentation Tags Users Badges Ask Question x Dismiss Join the Stack Overflow Community Stack Overflow is a community of 4.7 million programmers, just like you, helping each other. Join them; it only takes a minute: Sign up Javascript syntax error… How can I find out more information? up vote 0 down vote favorite Apologies if this is a stupid question as Im completly new to JAvascript and web programming! I'm currently using Dreamweaver to do http://stackoverflow.com/questions/30109407/why-does-dreamweaver-show-syntax-error-for-this-script-line some test scripts and the internal JS editor is highlighting a syntax error with my script. The only problem is that there is no indication as to what the error is or what I might need to do to fix it! When I paste this code directly into the web page, the script seems to work without issue! My script is as follows (saved in an external .js file): 1 // JavaScript Document 2 but the .js file its self should have no HTML in it (like the script tag) share|improve this answer answered Dec 11 '09 at 9:21 Jamie Dixon 31.3k1084130 Detting rid of the script Tag solved the issue! Also thanks for the snippit of information on how to call the script from the web page as well ... really useful! –TK. Dec 11 '09 at 9:31 add a comment| up vote 1 down vote You need to pass an argument to the getElementsByTagName function: if(document.getElementsByTagName('div')) share|improve this answer answered Dec 11 '09 at 9:19 Darin Dimitrov 689k15925012377 Still, if(document.getElementsByTagName) is not a syntax

3.0 Ning 3.0 Help Center Ning 3.0 FAQs Upgrading to Ning 3.0: F http://creators.ning.com/forum/topics/there-is-a-syntax-error-on-line-190-code-hinting-may-not-work?commentId=4244211%3AComment%3A1046463&xg_source=activity Known Issues (Historical Requests Blogs Current status of the Ning Platform is always available on the Ning Status Blog. Forum All DiscussionsFeatured DiscussionsProduct Ideas & http://www.w3schools.com/js/js_strict.asp SuggestionsCritique My SiteNing 3 Tips and TricksNing 3 Feedback and IssuesNing 3 Community SupportCommunity Management Best PracticesImprovements to Creators CommunityBugs & Issues (Ning 2)Add a syntax error Tip for Other Network Creators (Ning 2)Community Support (Ning 2)Design Details (Ning 2)Announcements from Ning (Archived) Favorite 0 Tweet There is a Syntax error on line 190, code hinting may not work until you fix this error. HELP! Posted by Pastor Donald C. Garner Jr. on April 14, 2012 at 12:20pm dreamweaver script tag in Community Support (Ning 2) I just open my Splash page into Dreamweaver CS5, editing another line of code, then BAM! I got this error message saying "There is a Syntax error on line 190, code hinting may not work until you fix this error" ....How do I fix, and What happened to cause this? The problem is the top photo changer on my page..."It stopped moving & (Changing Photos)" when this error occurred. I uploaded the index.html re-edited file to my network through the file manager, and then I got this error when i went to look at another line of code that I needed to add advertisements to at the right bottom area of the Splash page. It just stopped working and is STILL. What happened to cause this. Please help me fix this code.Here's the problem line of code:line 190-199 of code.

 

© Copyright 2019|winbytes.org.