Page 1 of 2 12 LastLast
Results 1 to 10 of 20

Thread: Simple Controls Gallery and Safari

  1. #1
    Join Date
    Jul 2008
    Posts
    31
    Thanks
    8
    Thanked 0 Times in 0 Posts

    Default Simple Controls Gallery and Safari

    1) Script Title: Simple Controls Gallery

    2) Script URL (on DD): http://www.dynamicdrive.com/dynamici...plegallery.htm

    3) Describe problem: This script is fantastic, I love it, but for some reason it makes Safari quit unexpectedly whenever I try to open the page where I am using it:
    http://www.corinnesilva.com/new/slide.php

    Is there a fix for this. The person I'm doing the website for is a Safari user (obviously!)

    Any help greatly appreciated.

    Jude x

  2. #2
    Join Date
    Aug 2004
    Posts
    10,143
    Thanks
    3
    Thanked 1,008 Times in 993 Posts
    Blog Entries
    16

    Default

    Does this happen on the DD demo page for you as well? Using Safari 3.x Win to test your page btw, I don't see any issues.
    DD Admin

  3. #3
    Join Date
    Jul 2008
    Posts
    31
    Thanks
    8
    Thanked 0 Times in 0 Posts

    Default

    Oh my goodness, yes it does!
    I'm using Safari Version 2.0.4 (419.3) on a Mac.
    I'll get some other Safari users to test the link and see if it's the same for them.

    Thanks.

    Jude x

  4. #4
    Join Date
    Aug 2004
    Posts
    10,143
    Thanks
    3
    Thanked 1,008 Times in 993 Posts
    Blog Entries
    16

    Default

    Hmm I don't have access to a Mac unfortunately, so it's hard for me to debug for it. Aren't most Mac users on Safari 3.x as well?
    DD Admin

  5. #5
    Join Date
    Mar 2005
    Location
    SE PA USA
    Posts
    30,495
    Thanks
    82
    Thanked 3,449 Times in 3,410 Posts
    Blog Entries
    12

    Default

    I can't test Safari 2.x either, for the same reason. But are you getting anything in the error log or whatever Safari 2 has that might give us a clue as to the problem?

    This might tell us something - turn off javascript in Safari 2 and view the pages (yours and the one on Dynamic Drive), do they both still crash?

    If so, it would probably be the css of the Gallery, not the script itself.

    One thing that Safari 2 might be choking on is jQuery itself, or perhaps just the pack(ed) version of it. Try it with the uncompressed version:

    http://code.google.com/p/jqueryjs/do....6.js&can=2&q=
    Last edited by jscheuer1; 01-13-2009 at 03:34 PM. Reason: add bit about jQuery
    - John
    ________________________

    Show Additional Thanks: International Rescue Committee - Donate or: The Ocean Conservancy - Donate or: PayPal - Donate

  6. #6
    Join Date
    Aug 2004
    Posts
    10,143
    Thanks
    3
    Thanked 1,008 Times in 993 Posts
    Blog Entries
    16

    Default

    I suspect it might be jQuery itself Safari 2 is choking on as well. This since in another thread someone had mentioned another jQuery based script on DD unexpectedly closing in Safari for him/her. Anyhow, without access to a Mac, one can only speculate based on info provided by someone who does.
    DD Admin

  7. #7
    Join Date
    Jul 2008
    Posts
    31
    Thanks
    8
    Thanked 0 Times in 0 Posts

    Default

    Thanks for that useful information. I can report that with javascript turned off in Safari the pages load and Safari doesn't crash.
    I replaced the packed version of jQuery with the uncompressd one but am still getting the same problem.

  8. #8
    Join Date
    Mar 2005
    Location
    SE PA USA
    Posts
    30,495
    Thanks
    82
    Thanked 3,449 Times in 3,410 Posts
    Blog Entries
    12

    Default

    To test if it is just JQuery, the next step would be to try a page with javascript on, but no Gallery script. Just put the the jQuery script tag in the head of the page.

    If it still crashes, it is incompatible with jQuery itself. Even if it doesn't, it may still be incompatible with jQuery, but if it does crash - then there is no question about it.
    - John
    ________________________

    Show Additional Thanks: International Rescue Committee - Donate or: The Ocean Conservancy - Donate or: PayPal - Donate

  9. #9
    Join Date
    Jul 2008
    Posts
    31
    Thanks
    8
    Thanked 0 Times in 0 Posts

    Default

    I did that and it doesn't crash with the jQuery script in and with the Simplegallery script removed.
    What can we deduce from this - that it's the Simplegallery script?

    I appreciate all your detective work!

  10. #10
    Join Date
    Mar 2005
    Location
    SE PA USA
    Posts
    30,495
    Thanks
    82
    Thanked 3,449 Times in 3,410 Posts
    Blog Entries
    12

    Default

    No. All this tells us is that it is either the gallery script alone, or the gallery script and jQuery in combination. Without the gallery or some other script, jQuery itself doesn't do a lot of stuff. It just more or less sits there waiting for commands.
    - John
    ________________________

    Show Additional Thanks: International Rescue Committee - Donate or: The Ocean Conservancy - Donate or: PayPal - Donate

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
  •