SitePoint Sponsor

User Tag List

Results 1 to 4 of 4
  1. #1
    SitePoint Guru
    Join Date
    Sep 2004
    Location
    Provo, UT
    Posts
    858
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)

    Going to parent.location from inside a lightbox

    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?

    Thanks!




    Code:
    <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>
    Convert your dollars into silver coins. www.convert2silver.com

  2. #2
    Avid Logophile silver trophy
    ParkinT's Avatar
    Join Date
    May 2006
    Location
    Central Florida
    Posts
    2,332
    Mentioned
    192 Post(s)
    Tagged
    4 Thread(s)
    You seem to have over-quoted

    Try this
    Code:
    <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.
    Don't be yourself. Be someone a little nicer. -Mignon McLaughlin, journalist and author (1913-1983)


    Git is for EVERYONE
    Literally, the best app for readers.
    Make Your P@ssw0rd Secure
    Leveraging SubDomains

  3. #3
    SitePoint Guru
    Join Date
    Sep 2004
    Location
    Provo, UT
    Posts
    858
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    Thank you, it's working now!
    Convert your dollars into silver coins. www.convert2silver.com

  4. #4
    Avid Logophile silver trophy
    ParkinT's Avatar
    Join Date
    May 2006
    Location
    Central Florida
    Posts
    2,332
    Mentioned
    192 Post(s)
    Tagged
    4 Thread(s)
    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.
    Don't be yourself. Be someone a little nicer. -Mignon McLaughlin, journalist and author (1913-1983)


    Git is for EVERYONE
    Literally, the best app for readers.
    Make Your P@ssw0rd Secure
    Leveraging SubDomains


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •