Results 1 to 4 of 4

Thread: Dynamic Ajax Content & external JavaScript

  1. #1
    Join Date
    Jul 2006
    Posts
    10
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Dynamic Ajax Content & external JavaScript

    1) Script Title:
    Dynamic Ajax Content
    2) Script URL (on DD):
    http://www.dynamicdrive.com/dynamici...jaxcontent.htm
    3) Describe problem:
    I want to load an Slideshow Javascript in an div. Therefore I do load the image-slideshow.js with the loadobjs-function.

    In the image-slideshow.js, there is a function called "initSlideShow". This has to be loaded to initialize the slideshow.

    The problem is, that this function "initSlideShow()" is only loaded once. I have to refresh the browser.

    Any idea, how to force to load the image-slideshow.js-Script?

    Regards,

    Philipp

  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

    This may, depending upon just what initSlideShow() does, be basically impossible. Say initSlideShow() writes to the page using document.write() - if it does that, it can only be run while the page is loading, not afterward when the AJAX import occurs, because by that time it will overwrite all existing content on the page.

    Post a link to your page with the Dynamic Ajax Content script on it, and a link to the external page with the slideshow script on it.

    There are other slideshow scripts though, one I know of may be used with AJAX, or it is possible that initSlideShow() may be modified or used in some way with your existing slide show.
    - John
    ________________________

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

  3. #3
    Join Date
    Jul 2006
    Posts
    10
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    John, thanks a lot for your answer.
    Acutally it is not possible to access the website I devepot from outside.

    I've disabled the check-routine, if the object is already loaded.
    I know, a really "quick-and-dirty"-solution, but for me it works...

    do you know any slideshow-scripts, which work together with ajax?

    regards,
    philipp

  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

    Demo (View Fade and/or Slide):

    http://home.comcast.net/~jscheuer1/s...vac_import.htm

    If you're interested, I'll work with you to adapt it to your needs, it's very flexible. I've already got a few folks using it. Sooner or later there will be an official release.
    - 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
  •