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
Solved

Syntax error

Posted on 2013-12-18
4
390 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
  • 2
4 Comments
 
LVL 52

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 500 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

Master Your Team's Linux and Cloud Stack

Come see why top tech companies like Mailchimp and Media Temple use Linux Academy to build their employee training programs.

Question has a verified solution.

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

An enjoyable and seamless user experience can go a long way on an eCommerce site. While a cohesive layout and engaging copy play roles in creating a positive user experience, some sites neglect aspects that seem marginal but in actuality prove very …
There’s a good reason for why it’s called a homepage – it closely resembles that of a physical house and the only real difference is that it’s online. Your website’s homepage is where people come to visit you. It’s the family room of your website wh…
Learn how to create flexible layouts using relative units in CSS.  New relative units added in CSS3 include vw(viewports width), vh(viewports height), vmin(minimum of viewports height and width), and vmax (maximum of viewports height and width).
The is a quite short video tutorial. In this video, I'm going to show you how to create self-host WordPress blog with free hosting service.

856 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