Results 1 to 8 of 8

Thread: Dynamic Content using AJAX within a DIV

  1. #1
    Join Date
    Sep 2006
    Posts
    8
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Dynamic Content using AJAX within a DIV

    1) Script Title: Dynamic Ajax Content + Photo Album.

    2) Script URL (on DD): http://dynamicdrive.com/dynamicindex17/ajaxcontent.htm

    3) Describe problem:

    Okay, this will be a bit confusing, so let me tell you how this is set up.
    I'm doing a webpage for a Publishing Company with lot's of artists.

    What I have is the following:
    index.htm, runs the AJAX dynamic script, which loads different sections.
    One of these sections is gallery.htm (in a div), which lists all the current artists, Once an artist is clicked, the artist's gallery's (another index.htm) loaded into the same div. This works fine until I get to where I'm using the Photo Album.

    The Album never generates - I believe it's because it is not initiallizing as if it were running completely independantly. If I open the page up independantly, the gallery generates just fine.

    So how can I get the Dynamic Content to load, or reload so that it can be used?

    Here's a better view of what I'm working with:
    http://www.eminentmediadesigns.com/djb/index.htm
    ^--- standard startting page.

    http://www.eminentmediadesigns.com/djb/gallery.htm
    ^--- First Tier independent page to load into the <div>

    http://www.eminentmediadesigns.com/d...y/bw/index.htm
    ^--- Second Tier independent page which loads into the <div>

    I seriously need this to work, and it's probably something I'm over looking as I'm going on about 4 hours of sleep for the past 2 days.

    Please let me know if you guys think of something.

    You may notice, there is actually 3 scripts being used here:
    AJAX Dynamic Content
    -Photo Album (non-PHP)
    -LightBox v2

    Thanks for all the help in advance!

    -Chris-

  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

    See:

    http://www.dynamicdrive.com/forums/s...1834#post51834

    for information on how to get a script that has an onload event to work in AJAX added content.

    You've already solved the problem of initing lightbox from the album script as I see here:

    http://www.dynamicdrive.com/forums/s...ad.php?t=12927
    - John
    ________________________

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

  3. #3
    Join Date
    Sep 2006
    Posts
    8
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    I'm affraid I still don't understand..

    I'm a scripting newb - I'm trying to learn all this - but polling content just isn't making sense to me :/

    Could you break it down alittle further for me please?

    -Chris

  4. #4
    Join Date
    Sep 2006
    Posts
    8
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    *bump*

  5. #5
    Join Date
    Sep 2006
    Posts
    8
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    *bump*

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

    Quote Originally Posted by reprobation
    I'm affraid I still don't understand..

    I'm a scripting newb - I'm trying to learn all this - but polling content just isn't making sense to me :/

    Could you break it down alittle further for me please?

    -Chris
    What part don't you get?
    - John
    ________________________

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

  7. #7
    Join Date
    Sep 2006
    Posts
    8
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    I've read through that post 5 or 6 times, and I still can't understand it - like I said im a novice at scripting and it just isn't making any sense to me

    -Chris

  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

    Have a look over this demo:

    http://home.comcast.net/~jscheuer1/s...ntent/demo.htm

    and this Principals and Practices post:

    http://www.dynamicdrive.com/forums/s...2616#post52616
    Last edited by jscheuer1; 09-10-2006 at 06:37 AM.
    - 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
  •