jQuery plugin Breaks after ajax call
Posted
by
Jason
on Stack Overflow
See other posts from Stack Overflow
or by Jason
Published on 2011-01-09T09:48:57Z
Indexed on
2011/01/09
9:53 UTC
Read the original article
Hit count: 345
Hello,
I am quite a newbie to jQuery/ajax but am having a problem with my site that im making.
Basically at first the page loads fine. On the boxes is a fade caption, when the title of the caption is clicked you are brought to an ajax page.
Once you use the 'Back' button on browser, or the 'Back to list' button i've made the caption fade plugin no longer works and the box i had previously clicked is no longer clickable.
can anyone help?
heres my website: http://www.jcianfrone.com/testing
jquery: h**p://www.jcianfrone.com/testing/script.js
HTML:
<div id="pageContent">
<div class="item"><a href="#page6"><img src="images/wrk-kd.jpg" width="286" height="200" alt="Koodikkki"></a><span id="caption"><a href="#">Title</a><p>Description</p></span></div>
<div class="item"><a href="#page7"><img src="images/wrk-kd.jpg" width="286" height="200" alt="Koodikkki"></a><span id="caption"><a href="#">Title</a><p>Description</p></span></div>
<div class="item"><a href="#page8"><img src="images/wrk-kd.jpg" width="286" height="200" alt="Koodikkki"></a><span id="caption"><a href="#">Title</a><p>Description</p></span></div>
<div class="item"><a href="#page9"><img src="images/wrk-kd.jpg" width="286" height="200" alt="Koodikkki"></a><span id="caption"><a href="#">Title</a><p>Description</p></span></div>
</div>
Many thanks in advance
© Stack Overflow or respective owner