Topic: Fetch image from an Array (JS) instead of XML

Hi to everyone,

First of all, I did a couple of search in the board already but I can't seem to find an answer relating to my concern.

Anyway, I'm interested in purchasing a license for AutoViewer. It's pretty much what I've been looking for except for the images stored in XML.

Currently, my images are being fetched dynamically base on the user's keyword... so the XML storage of the images wouldn't be practical for me as it's going to be served to different users so the best solution is to store the images in an Array instead.

One of my option is also HighSlide from a different company but their images are preloaded in DOM and I have a page with at least 3000 images and requesting each images in the DOM isn't beneficial for my site's speed.

I was hoping AutoViewer has a customization or configuration that lets me store images into an Array instead of the usual XML.

Any thoughts you'd like to share on how I could resolve this dilemma is greatly appreciated.

P.S. I'm technical so please don't hold-back with your suggestions and references.


Thanks!

Re: Fetch image from an Array (JS) instead of XML

You could take a look at my suggestion from this thread to dynamically generate an XML file on-the-fly using PHP.
It did not work for the original poster due to a strange stacking effect which may or may not be able to be overcome. However, you might be able to take the idea further and make it work for you and modify it to display only certain images in a folder.

Steven Speirs
SimpleViewer Support Team.

Re: Fetch image from an Array (JS) instead of XML

Hi Steven,

Good day!

Thanks for sending me that link, it sure does help. Infact, you can see my implementation here:
http://www.tommyschultz.com/component/p … h-239.html
http://www.tommyschultz.com/component/p … h-239.html
http://www.tommyschultz.com/component/p … h-239.html

It's that "View Slideshow" link on the sidebar. However, it does fail on a very lage subset of image. Say 2k+ images like:
http://www.tommyschultz.com/component/p … -1276.html

The created gallery is created on: http://www.tommyschultz.com/autoviewer/photo_topic/

It throws error and becomes unresponsive for such a lot of set.  Is there a setting on Autoviewer's config options that checks  the images progressively instead of calling everything in bulk? or do you know if a way to resolve this issue?


Hoping for your response.


Thanks!

Re: Fetch image from an Array (JS) instead of XML

Is there a setting on Autoviewer's config options that checks  the images progressively instead of calling everything in bulk?

You could try setting the AutoViewer-Pro Option preloadAllImages to 'false' (default value is 'true') in the Options.as file before re-publishing the SWF file with Adobe Flash for use in your gallery.
Please see here for all 'AutoViewer Configuration Options': http://simpleviewer.net/autoviewer/support/options.html
Please see here for instructions on 'Customizing ActionScript Options': http://simpleviewer.net/autoviewer/pro/ … #asoptions

Steven Speirs
SimpleViewer Support Team.

Re: Fetch image from an Array (JS) instead of XML

That sounds like exactly what I need. I'll purchase Pro and try it. I'll get back to you on how it goes. Thanks for the prompt response.

Re: Fetch image from an Array (JS) instead of XML

Hi Steven,

The dynamic XML works perfect, however, I'm a little bit stumped with it.

Please find these 3 links below useful:
http://www.tommyschultz.com/component/p … f-664.html
http://www.tommyschultz.com/component/p … -1671.html
http://www.tommyschultz.com/component/p … -1513.html

The problem is that since the albums can be dynamic the gallery.xml being generated will use the last one (which will eventually create a problem for multiple user who'd load that same page).

I'm out of idea as to how to fix this, at this point, my only solution is to rename gallery.xml with a timestamp but I will be troubled updating Autoviewer's index.html so that it would point to the correct gallery.xml file.

If you can share some input as to how to address this concern that would be great. I purchased the Pro version, so if there's a setting/config that helps me resolve this issue seamlessly, I'd appreciate that.


Hoping for some response.


Thanks!

Re: Fetch image from an Array (JS) instead of XML

I'm out of idea as to how to fix this, at this point, my only solution is to rename gallery.xml with a timestamp but I will be troubled updating Autoviewer's index.html so that it would point to the correct gallery.xml file.

Rather than renaming the gallery's XML file itself with a timestamp, try adding the timestamp to the file name as a query string.
Replace:

fo.addVariable("xmlURL", "gallery.xml");

... with:

fo.addVariable("xmlURL", "gallery.xml?nocache="+new Date().getTime());

This will not affect the file's name but should still prevent the browser from caching the file.

Steven Speirs
SimpleViewer Support Team.

Re: Fetch image from an Array (JS) instead of XML

Perfect! Thanks Steven. Much respect.