Results 1 to 5 of 5

Thread: Probably something simple - Dynamic AJAX Content in Safari

  1. #1
    Join Date
    Dec 2008
    Posts
    3
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Default Probably something simple - Dynamic AJAX Content in Safari

    I'm using two scripts from Dynamic Drive - Dynamic AJAX Content and Image Thumbnail Viewer - on my site http://www.rileyspiller.com/coasttocoast/. It's kind of a photo-blog site. Each blog entry will have a little table of thumbnails which you click for larger view using the Image Thumbnail Viewer script.



    It works great as is in FF but I'm having an issue with Safari (the latest version - 3.1.2). When I first load the page the Image Thumbnail Viewer script doesn't work properly in the Dynamic AJAX Content box. Now, oddly, if I refresh the page once it's loaded the first time it works. This is boggling me because I know it's capable of functioning correctly (even without a refresh) in Safari because I copied the table of thumbnails to the bottom of the page (you'll see it if your scroll down), outside of the Dynamic Content window, and it works. It's just when it's used with the Dynamic Content box that it doesn't work.

    It's something to do with the interaction between the two scripts. They pretty simple scripts and a smart coder could probably figure it out right away.

    Thanks for your help.

    URL: http://www.rileyspiller.com/coasttocoast/

  2. #2
    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

    Worked first time in Safari 3.1.2 here, perhaps you just need to clear your cache.
    - John
    ________________________

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

  3. #3
    Join Date
    Dec 2008
    Posts
    3
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Default

    Hmm... I just cleared cache, no change. Are you sure?

    Remember, it works fine when you refresh the page, so it has to just be the first time... and also, to test, click the "Riley" link at the top and test them on that page.

    Thanks.

  4. #4
    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 didn't realize I had to click on the "Riley" link. It doesn't work in Opera or FF here either, and here no amount of refreshing will make it work in Safari. Generally AJAX imported content must be initialized before it will work in any browser. Scripts can be rewritten to listen to the page, and this will overcome that issue in many cases. However, that can be quite complicated, as can be finding a way to reinit (or often it must be a limited reinit) after import, which is another strategy for dealing with the issue. Lightbox 2.04a already listens to the page:

    http://www.dynamicdrive.com/forums/s...470#post163470

    so will work fine with AJAX imported content that bears its syntax, and it can be configured to look a lot like Image Thumbnail Viewer. But it's so similar to begin with (in appearance) that you might be happy with it 'as is'.
    - John
    ________________________

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

  5. The Following User Says Thank You to jscheuer1 For This Useful Post:

    Riley S (12-20-2008)

  6. #5
    Join Date
    Dec 2008
    Posts
    3
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Default

    You're a wonderful person.

    Thanks a million.

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
  •