/    Sign up×
Community /Pin to ProfileBookmark

[RESOLVED] Yes, another ‘unterminated string literal’ problem

Hey folks,

As I am sure you guessed, I am a newbie. Pretty sure this is a quotes issue but not sure where. Can’t seem to find anything that demonstrates this particular issue. So, here we go

[CODE]<a href=”javascript:lbdialog({
content: ‘To complete the pre-determination, please Purchase the service’,
cancelButton: {
text: ‘Not Yet’ },
OKButton: {
text: ‘Purchase’,
callback: function() {
location.href = ‘”http://ptr.foxycart.com/cart?code=1000FREE&category=default” class=”foxycart”‘; }
}
})”
id=”myLink”>CONTINUE</a>[/CODE]

This is a plug-in that has little to no documentation much less help. Works fine when the location is just

[CODE]callback: function() { location.href = ‘index,html’;}[/CODE]

The ‘unterminated string literal’ says line 1. This is where I got it from:
[url]http://www.mitya.co.uk/scripts/Lightbox-and-lightbox-dialog-99[/url]

Thanks for any help you can give me! Hate to be a pain but have a client waiting. Would appreciate help the sooner the better. Thanks again!

Lisa Rose l;o)

to post a comment
JavaScript

2 Comments(s)

Copy linkTweet thisAlerts:
@WolfShadeMay 12.2011 — Change the href to "javascript:void(0);" and place what you currently have as href content into an onclick event.

Also, I'm not sure exactly where, but it seems as though there is an improper nesting of commas and brackets.

Nevermind.. here it is..

'"http://ptr.foxycart.com/cart?code=1000FREE&category=default"[COLOR="Red"] class="foxycart"[/COLOR]'

you've got a class entry as part of the href.
Copy linkTweet thisAlerts:
@lisaroseauthorMay 12.2011 — Thanks for the quick reply!! took it out and got it going. thank you!!!! l;o)
×

Success!

Help @lisarose spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 5.18,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,

tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,
)...