Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Syntax error

Posted on 2013-12-18
4
Medium Priority
?
409 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 54

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

A while back, I ran into a situation where I was trying to use the calculated columns feature in SharePoint 2013 to do some simple math using values in two lists. Between certain data types not being accessible, and also with trying to make a one to…
Without even knowing it, most of us are using web applications on a daily basis.  In fact, Gmail and Yahoo email, Twitter, Facebook, and eBay are used by most of us daily—and they are web applications. We generally confuse these web applications to…
The viewer will learn how to create and use a small PHP class to apply a watermark to an image. This video shows the viewer the setup for the PHP watermark as well as important coding language. Continue to Part 2 to learn the core code used in creat…
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).
Suggested Courses

885 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