View Full Version : Dynamic Ajax Content & Image Thumbnail Viewer II Integration Help

08-19-2009, 05:38 PM
1) Script Title:
Dynamic Ajax Content and Image Thumbnail Viewer II

2) Script URL (on DD):

3) Describe problem:
Let me start with what works: FF, Safari and Opr load my main test page (http://www.pineapplefarmdesign.com/test) fine. It loads with an external Ajax page loaded into a DIV. The external page has the Thumbnail Viewer II toggling a couple of images. As you can see I have 3 image tabs each referencing 3 seperate external pages to load in the DIV on the test page.

Tab 1's external page loads up automatically via the below script in the head of the test page:

<script type="text/javascript">
ajaxpage('port-wed-1.html', 'portloadarea'); loadobjs('portstyles.css', 'thumbnailviewer2.js', 'popwindow.js')

I added "loadobjs('portstyles.css', 'thumbnailviewer2.js', 'popwindow.js')" to the script because the .css and .js files did not load for tab 1's external page.

Here's what does not work: As soon as you click on tab 2 or tab 3 and click back on tab 1, the Thumbnail Viewer II doesn't work anymore. It opens the larger image in a new window as if the javascript is ignored and it's a straight link.

I don't know if adding the loadobjs to the script in the head remidied one issue and caused another. But even if the loadobjs function is not added I still have the problem of the Thumbnail Viewer II not working properly.

I am super new to scripting and really do not know any code at all for that matter. I follow the directions from your site (which are nicely written) and apply the scripts with success. This is my first time that something is not working as it should.

Please advise how to fix and thanks in advance.

09-12-2009, 04:03 PM
I'm running up against the same problem and wondering if you found a solution yet?

Thanks for any help.

09-12-2009, 07:10 PM
Sorry ronchan, I haven't been able to get these two scripts to play together nicely.