hi chris, thanks so much for your continued help EVERY time im stuck.
ive spent all day so far trying to isolate this problem, but theres so much interrelated activity going on that i keep getting muddled up, breaking it and starting again. I am still trying though and will post something up asap.
Firstly, to show you the problem you can see the page at
www.webdesignamite.co.uk/slidingwizard.php
MAKE SURE YOU ARE USING IE AS IT WORKS OK OTHERWISE
once youve loaded the page, fill in an aperture width, aperture height and select a number of doors, click submit and you will be confronted with a picture of some wardrobe doors. Look to the lower left of screen and you will see a select menu called 1st panel finish, this is the where the problem occurs.
If you select a finish from this menu, a function is called which validates and saves the info into an object, then using this object as a reference, reloads all of the select options and autoselects the one you just chose, and finally fills one of the doors on screen with the finish you selected.
THE PROBLEM....
When the select menu repopulates, it always autoselects the option BEFORE the option that you selected. However, if i alert the variable holding the selected colour before the select menu is populated, it loads the correct value, this makes absolutely no sense to me. If you are interested to see this problem first hand, i have made up a zip file which can run on localhost at -
www.webdesignamite.co.uk/sel.zip. Once unzipped in you root directory navigate to
http://localhost/sel/slidingwizard.php. The alert box i speak of can be found by searching in slidingwizard.php for alert(info[active]['panel'+d]); Simply commenting and uncommenting this changes the outcome of the experiment.
Any thoughts would be fab.
mark