busboy — 2014-03-17T15:01:48-04:00 — #1
I use Lightbox Evolution, from ThemeForest.net and can't get the second link below to work. Can someone point out what I'm overlooking?
<a href='#' onclick='window.parent.jQuery.lightbox().close();' class='button medium green'>Works</a>
<a href='#' onclick='parent.location.href = '/upgradeOptions.php';' class='button medium green'>Fails</a>
parkint — 2014-03-17T15:38:11-04:00 — #2
You seem to have over-quoted
<a href='#' onclick="parent.location.href = '/upgradeOptions.php';" class='button medium green'>Fails</a>
When trying to nest quoted strings you need to switch between double-quotes and single-quotes. Otherwise the browser is confused.
busboy — 2014-03-17T16:07:55-04:00 — #3
Thank you, it's working now!
parkint — 2014-03-18T06:40:10-04:00 — #4
Excellent. I am very happy to have helped.
This is one of those common "gotchas" and now that you have been bitten, you will know to be on the lookout the NEXT TIME.