?
Solved

Syntax error

Posted on 2013-12-18
4
Medium Priority
?
404 Views
Last Modified: 2013-12-18
Hi- BBB gave us this code to use, but dreamweaver says there is a syntax error, It says the error is on the line that reads:unescape('%2Flogo%2Fmagickitchencom-1000001150.js') +

code below, any idea where the problem lies?

<a id="bbblink" class="ruhzbum" 
href="http://www.bbb.org/sanjose/business-reviews/food-
products/magickitchencom-in-los-altos-ca-1000001150#bbbseal" 
title="MagicKitchen.com, Food Products, Los Altos, CA" style="display: 
block;position: relative;overflow: hidden; width: 150px; height: 68px; 
margin: 0px; padding: 0px;"><img style="padding: 0px; border: none;" 
id="bbblinkimg" src="http://seal-
sanjose.bbb.org/logo/ruhzbum/magickitchencom-1000001150.png" 
width="300" height="68" alt="MagicKitchen.com, Food Products, Los Altos, 
CA" /></a><script type="text/javascript">var bbbprotocol = ( ("https:" == 
document.location.protocol) ? "https://" : "http://" ); document.write
(unescape("%3Cscript src='" + bbbprotocol + 'seal-sanjose.bbb.org' + 
unescape('%2Flogo%2Fmagickitchencom-1000001150.js') + "' 
type='text/javascript'%3E%3C/script%3E"));</script>

Open in new window

0
Comment
Question by:mel200
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
4 Comments
 
LVL 53

Expert Comment

by:Scott Fell, EE MVE
ID: 39727416
Just place it on your site. It will work regardless of what dreamweaver shows.  http://jsbin.com/AXaSEdo/1/edit?html,output
0
 

Author Comment

by:mel200
ID: 39727899
I did, and it works, but I don't want it interfering with anything else, or slowing down my site or anything. Can we discover why it is showing a syntax error? Thanks.
0
 
LVL 35

Accepted Solution

by:
Robert Schutt earned 2000 total points
ID: 39728113
Put a backslash at the end of line 13, it makes the string literal valid (in Firebug).
<a id="bbblink" class="ruhzbum" 
href="http://www.bbb.org/sanjose/business-reviews/food-
products/magickitchencom-in-los-altos-ca-1000001150#bbbseal" 
title="MagicKitchen.com, Food Products, Los Altos, CA" style="display: 
block;position: relative;overflow: hidden; width: 150px; height: 68px; 
margin: 0px; padding: 0px;"><img style="padding: 0px; border: none;" 
id="bbblinkimg" src="http://seal-
sanjose.bbb.org/logo/ruhzbum/magickitchencom-1000001150.png" 
width="300" height="68" alt="MagicKitchen.com, Food Products, Los Altos, 
CA" /></a><script type="text/javascript">var bbbprotocol = ( ("https:" == 
document.location.protocol) ? "https://" : "http://" ); document.write
(unescape("%3Cscript src='" + bbbprotocol + 'seal-sanjose.bbb.org' + 
unescape('%2Flogo%2Fmagickitchencom-1000001150.js') + "' \
type='text/javascript'%3E%3C/script%3E"));</script>

Open in new window

0
 

Author Closing Comment

by:mel200
ID: 39728146
Perfect, thanks!
0

Featured Post

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

When crafting your “Why Us” page, there are a plethora of pitfalls to avoid. Follow these five tips, and you’ll be well on your way to creating an effective page.
Dramatic changes are revolutionizing how we build and use technology. Every company is automating, digitizing, and modernizing operations. We need a better, more connected way to work together as teams so we can harness the insights from our system…
HTML5 has deprecated a few of the older ways of showing media as well as offering up a new way to create games and animations. Audio, video, and canvas are just a few of the adjustments made between XHTML and HTML5. As we learned in our last micr…
Video by: Mark
This lesson goes over how to construct ordered and unordered lists and how to create hyperlinks.

719 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question