nfinity
04-17-2008, 07:55 PM
Hi, I am building a website for a small business and they want to be able to add pictures to galleries and delete/change. The person that will be doing this has zero programming knowledge so I wanted to make this harmless. I didnt want him going into my html code... Anyways, here is my problem.
I have created an xml file so that to change a picture, you just open it with an editor and change the name of the pictures to the ones that you want to view on that page. My javascript reads this file, loops through it, and creates a dynamic table with the pictures.
This works probably 85% of the time and the other 15%, i get a javascript error and the pictures do not load. But, if i refresh the page, they load just fine... I have 4 pages that uses this script and it usually occurs when I am navigating through my site...
Can someone please help?
I have created an xml file so that to change a picture, you just open it with an editor and change the name of the pictures to the ones that you want to view on that page. My javascript reads this file, loops through it, and creates a dynamic table with the pictures.
This works probably 85% of the time and the other 15%, i get a javascript error and the pictures do not load. But, if i refresh the page, they load just fine... I have 4 pages that uses this script and it usually occurs when I am navigating through my site...
Can someone please help?