w1nk5 — 2011-12-07T13:10:28-05:00 — #1
If you goto the link above and click "SEARCH LISTINGS" at the top and leave all the fields blank and then click Search it will display the search results.
If you hover over the results, you will see a translucent div slide down with a magnifying glass. This is the desired effect.
However, if you change the sorting or goto page 2... the sliding effect no longer works.
Any ideas as to what is going on here?
davemaxwell — 2011-12-07T13:51:20-05:00 — #2
That's because jQuery will only "hook" the first time through, so when you reload the div through ajax, the hooks get lost. What you'll need to do is add an additional call to your jQuery code which will reapply the overlays (the property grid code in grosman-wagman/js/script.js) when you change the content of the div.
paul_wilkins — 2011-12-07T18:13:40-05:00 — #3
Instead of that, you can use .live() so that whenever jQuery is used to adjust the content of the page, it will apply that event to any new or updated elements that are on the page.
w1nk5 — 2011-12-07T21:33:25-05:00 — #4
That worked! Thanks a ton.