[jQuery] Re: How refresh a div with a link?
Any idea How I can work it out? Dom -- View this message in context: http://www.nabble.com/How-refresh-a-div-with-a-link--tp21070429s27240p21124698.html Sent from the jQuery General Discussion mailing list archive at Nabble.com.
[jQuery] Re: How refresh a div with a link?
Humm I try this with replaceAll(): $('#refreshflickr').click(function(){ $('#flickrcarousel').replaceAll('#flickrcarousel'); }); it's working, but it reload twince the page... Any idea how to fix it? Regards, Dom -- View this message in context: http://www.nabble.com/How-refresh-a-div-with-a-link--tp21070429s27240p21090936.html Sent from the jQuery General Discussion mailing list archive at Nabble.com.
[jQuery] Re: How refresh a div with a link?
kidhermes wrote: Humm I try this with replaceAll(): $('#refreshflickr').click(function(){ $('#flickrcarousel').replaceAll('#flickrcarousel'); }); it's working, but it reload twince the page... Any idea how to fix it? Regards, Dom You have to use return false; in order for the link not to use its default action which is to reload the page.
[jQuery] Re: How refresh a div with a link?
w84me wrote: You have to use return false; in order for the link not to use its default action which is to reload the page. Thx I try, but it's stuck the script... $('#refreshflickr').click(function(){ $('#flickrcarousel').replaceAll('#flickrcarousel'); return false; }); And I notice it's reload all the page not only the feed div... See attach: http://www.nabble.com/file/p21093068/draft.html draft.html Strange... and thx a lot for your help. Dom -- View this message in context: http://www.nabble.com/How-refresh-a-div-with-a-link--tp21070429s27240p21093068.html Sent from the jQuery General Discussion mailing list archive at Nabble.com.