Register

If this is your first visit, please click the Sign Up now button to begin the process of creating your account so you can begin posting on our forums! The Sign Up process will only take up about a minute of two of your time.

Page 2 of 3 FirstFirst 1 2 3 LastLast
Results 11 to 20 of 22
  1. #11
    Unpaid WDF Intern TheGAME1264's Avatar
    Join Date
    Dec 2002
    Location
    Not from USA
    Posts
    14,483
    Member #
    425
    Liked
    2783 times
    Okay, I don't see the error you're talking about. I only see the old code.

    But I think I know why your function isn't working as you have it now (besides the error)...you're calling it before you have those sign_up, head_thumb1, etc. elements created in your DOM. You can do what you do want after they're created, but you can't do it before...jQuery looks for them once, and if it doesn't find the objects, it won't look again...even after they're created.

    So...to solve your problem, move your script anywhere after those elements are all created (likely after that table, which you shouldn't actually be using, but that's homework for another day).
    If I've helped you out in any way, please pay it forward. My wife and I are walking for Autism Speaks. Please donate, and thanks.

    If someone helped you out, be sure to "Like" their post and/or help them in kind. The "Like" link is on the bottom right of each post, beside the "Share" link.

    My stuff (well, some of it): My bowling alley site | Canadian Postal Code Info (beta)

  2.  

  3. #12
    Member
    Join Date
    Jul 2011
    Posts
    95
    Member #
    28555
    Liked
    1 times
    So if my hidden pop-ups are in my footer.php which is one of the very last things, then the script should be after this? ie. the very last thing in the file before </body></html>?

    I understand what you're saying but find this strange, especially as the source on the lightbox_me website has the script at the very top and then their elements in the body.

    Will give it a go now.

  4. #13
    Unpaid WDF Intern TheGAME1264's Avatar
    Join Date
    Dec 2002
    Location
    Not from USA
    Posts
    14,483
    Member #
    425
    Liked
    2783 times
    That's exactly what I'm saying, yes.
    If I've helped you out in any way, please pay it forward. My wife and I are walking for Autism Speaks. Please donate, and thanks.

    If someone helped you out, be sure to "Like" their post and/or help them in kind. The "Like" link is on the bottom right of each post, beside the "Share" link.

    My stuff (well, some of it): My bowling alley site | Canadian Postal Code Info (beta)

  5. #14
    Member
    Join Date
    Jul 2011
    Posts
    95
    Member #
    28555
    Liked
    1 times
    Quote Originally Posted by TheGAME1264, post: 250760, member: 428
    That's exactly what I'm saying, yes.
    Didn't work

    Looking at the firefox web console, was getting "TypeError: $.browser is undefined" which was in jquery.lightbox_me.js - this line: ie6 = ($.browser.msie && $.browser.version < 7);

    Removed this and tried again, clicked link and now I get:
    TypeError: $(...).lightbox_me is not a function

    Have put ie6 = ($.browser.msie && $.browser.version < 7); back so if you wouldn't mind taking another look, this really is starting to get annoying!

    EDIT: Have just removed ie6 = ($.browser.msie && $.browser.version < 7); again as I have just googled and read that browser detection was removed in jquery v1.9

    Following that, have refreshed firefox, clicked link, and each time the web console has told me about a reference to IE6 I have removed this from the .js file, there is now no reference to IE6.

    Now... if I refresh my browser, and click the link, nothing happens, If i then open my web console and click the link again to see the process, the pop up appears.

  6. #15
    Member
    Join Date
    Jul 2011
    Posts
    95
    Member #
    28555
    Liked
    1 times
    YESSSSSSSSSSSSSSSS

    TheGAME1264 - love you man haha

  7. #16
    Unpaid WDF Intern TheGAME1264's Avatar
    Join Date
    Dec 2002
    Location
    Not from USA
    Posts
    14,483
    Member #
    425
    Liked
    2783 times
    heh no worries, dude.
    If I've helped you out in any way, please pay it forward. My wife and I are walking for Autism Speaks. Please donate, and thanks.

    If someone helped you out, be sure to "Like" their post and/or help them in kind. The "Like" link is on the bottom right of each post, beside the "Share" link.

    My stuff (well, some of it): My bowling alley site | Canadian Postal Code Info (beta)

  8. #17
    WDF Staff AlphaMare's Avatar
    Join Date
    Oct 2009
    Location
    Montreal, Canada
    Posts
    4,570
    Member #
    20277
    Liked
    878 times
    Quote Originally Posted by adrianjones, post: 250752, member: 28570
    So if my hidden pop-ups are in my footer.php which is one of the very last things, then the script should be after this? ie. the very last thing in the file before </body></html>?

    I understand what you're saying but find this strange, especially as the source on the lightbox_me website has the script at the very top and then their elements in the body.
    Quote Originally Posted by TheGAME1264, post: 250760, member: 428
    That's exactly what I'm saying, yes.
    Is this solved?

    If not, maybe $( document ).ready() or $( window ).load(function(){ ...your function here... }) will help.

    Code included inside $( document ).ready() will only run once the page DOM (Document Object Model) is ready for JavaScript code to execute.

    Code included inside $( window ).load(function(){ ... }) will run once the entire page (images or iframes), not just the DOM, is ready.
    Good design should never say "Look at me!"
    It should say "Look at this." ~ David Craib


    http://digitalinsite.ca ~ my current site . . info@digitalinsite.ca ~ my email

    If you feel that someone's post helped you fix your problem, answered your question, or just made you feel better, feel free to "Like" their post. The "Like" link is at the bottom right of each post, along side the "reply" link. And if you are being helped here, try to help someone else - pass it on!

  9. #18
    Member
    Join Date
    Jul 2011
    Posts
    95
    Member #
    28555
    Liked
    1 times
    Hi alphamare
    Yes this is solved but I'm embarrassed to say what the resolution was haha
    Thanks for your reply though.
    Adey

  10. #19
    WDF Staff AlphaMare's Avatar
    Join Date
    Oct 2009
    Location
    Montreal, Canada
    Posts
    4,570
    Member #
    20277
    Liked
    878 times
    Quote Originally Posted by adrian jones, post: 250796, member: 28570
    Hi alphamare
    Yes this is solved but I'm embarrassed to say what the resolution was haha
    Thanks for your reply though.
    Adey
    OK - now you HAVE to tell me what the resolution was - you can't leave me hanging like that!
    Good design should never say "Look at me!"
    It should say "Look at this." ~ David Craib


    http://digitalinsite.ca ~ my current site . . info@digitalinsite.ca ~ my email

    If you feel that someone's post helped you fix your problem, answered your question, or just made you feel better, feel free to "Like" their post. The "Like" link is at the bottom right of each post, along side the "reply" link. And if you are being helped here, try to help someone else - pass it on!

  11. #20
    Member
    Join Date
    Jul 2011
    Posts
    95
    Member #
    28555
    Liked
    1 times
    Well you will see in a previous reply that I discovered browser detection was removed in jquery v1.9, so instead of taking out all references to ie6, I just changed jquery version to an older one, v1.4 I think, that was it haha
    AlphaMare likes this.


Page 2 of 3 FirstFirst 1 2 3 LastLast

Remove Ads

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
All times are GMT -6. The time now is 04:30 AM.
Powered by vBulletin® Version 4.2.3
Copyright © 2019 vBulletin Solutions, Inc. All rights reserved.
vBulletin Skin By: PurevB.com