I have a code that replaces href's using Jquery, .attr({ href : newpath }); and I am using Shadowbox. After changing the href and loading shadowbox, the shadowbox loads the old href instead of the new one.
For example :
<a id ="shadowboxlink" href="images/firstimage.jpg" rel="shadowbox">shadowbox link</a>
then the jquery would be something like this :
$("#shadowboxlink").attr({href : newpath});
//whereas var newpath is a string like "images/secondimage.jpg"
so then after jquery is executed, the shadowbowlink has the correct href of images/secondimage.jpg, but when you load it, the shadowbox loads the firstimage.jpg
Anyone have any insight? Thanks! =) Ken