Quicksand Link Ajax Problem
HI,
I use this plug-in with ajax mode to display a tree of products.
Each product has a link to other sub products.
On the first return, however, the links are no longer handled by the function and the page is changed without going through the quicksand.
In other words, only the links in the page source quicksand works fine, with links instead imported the links become standard link.
I use this function. Every product have a "href" with class="icobutton"
-
- $('a.icobutton').click(function(e) {
- $.get( $(this).attr('href'), function(data) {
- $('.webbies').quicksand( $(data).find('li'), {adjustHeight: 'dynamic', useScaling: true
-
- } );
- });
- e.preventDefault();
- });
html
-
..........
<ul class="webbies">
<li>
<a class="icobutton" href="otherproduct.php?etc...">
<img src="icoproduct.png">
</a>
</li>
</ul>
THankyou for every help
after two hours
I have resolved but in not elegant mode:
I write this function that I invoke with a simple onclick in href links (bleah)
The parameter (a) is a url passed by onclick function
- function navTree(a){
- $.get( a, function(data) {
- $('.webbies').quicksand( $(data).find('li'), {adjustHeight: 'dynamic', useScaling: true} );
- });
-
- }
But this work fine