PDA

View Full Version : Dynamic Content using AJAX within a DIV



reprobation
09-07-2006, 08:51 AM
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/djb/gallery/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-

jscheuer1
09-07-2006, 09:40 AM
See:

http://www.dynamicdrive.com/forums/showthread.php?p=51834#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/showthread.php?t=12927

reprobation
09-07-2006, 03:50 PM
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

reprobation
09-07-2006, 08:47 PM
*bump*

reprobation
09-08-2006, 05:54 AM
*bump*

jscheuer1
09-08-2006, 06:56 AM
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?

reprobation
09-08-2006, 02:41 PM
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

jscheuer1
09-10-2006, 04:15 AM
Have a look over this demo:

http://home.comcast.net/~jscheuer1/side/ajaxtabscontent/demo.htm

and this Principals and Practices post:

http://www.dynamicdrive.com/forums/showthread.php?p=52616#post52616