Hi, I've got a simple slideshow that reads the contents of a server folder through an Ajax call and returns any new files it finds. It's called at page load and subsequently at 5 second intervals. I use a session variable to keep track of the currently used files. It works nicely except that after initialization any new slides added are not centered... only when I refresh the page and all files are again loaded on initialization. Is there a way to call the centerHoriz and centerVert at the same time as adding the new slides? Here is my code:
`
Hi, I've got a simple slideshow that reads the contents of a server folder through an Ajax call and returns any new files it finds. It's called at page load and subsequently at 5 second intervals. I use a session variable to keep track of the currently used files. It works nicely except that after initialization any new slides added are not centered... only when I refresh the page and all files are again loaded on initialization. Is there a way to call the centerHoriz and centerVert at the same time as adding the new slides? Here is my code: `