Jump to content


negatron

Member Since 06 Jan 2012
Offline Last Active Feb 09 2012 08:51 PM
-----

Topics I've Started

Sliding Banner with AJAX

08 February 2012 - 08:47 PM

New to all this, and would appreicate any insight!

I am using the 'Images Extra Fieldtype' to hold some images for a jquery sliding banner. I had the banner working, but have decided I am not keen on loading all the images at once.

Instead I'm currenlty retrieving the array and using shuffle() to select a random one to display on page load. I'd like to then fetch the others after the page has loaded, and am trying to use AJAX to send a response back to my PHP script, to no avail - I'm getting 'access denied' to the script I'm trying to post to (it resides in the templates directory).

Before I spend more time trying to figure this out, I'm interested to know if my intentions seem logical, and if this is a sound approach?!

Cheers.