Ok got the pages to work with the livequery plugin but now I am having a problem with the get data function... I know that the "data: " should when using 'type: "GET"' should give me a similar effect to ? id=1...
var replacement = $(this).attr("title"); var content_show = $(this).attr("id"); $.ajax({ type: "GET", url: replacement, data: content_show, async: true, beforeSend: function(){$("#loading").show("fast");}, complete: function(){$("#loading").hide("fast");}, success: function(html){ //so, if data is retrieved, store it in html $("#main_content").slideDown("slow"); //animation $("#main_content").html(html); //show the html inside .content div } }); any extra suggestions? Thanks! On Apr 17, 12:56 pm, Karl Swedberg <k...@englishrules.com> wrote: > You have run into a fairly common issue: how to get events to work > with elements that are added to the DOM, through either ajax or simple > DOM mainpulation, after the "document ready" code has already fired. > > This FAQ topic should answer your question: > > http://docs.jquery.com/Frequently_Asked_Questions#Why_do_my_events_st... > > If you still have problems after reading through it and trying one of > the many solutions, let us know. > > --Karl > > ____________ > Karl Swedbergwww.englishrules.comwww.learningjquery.com > > On Apr 17, 2009, at 2:28 PM, Rogue Lord wrote: > > > > > Hey folks, I noticed that when I was using $.ajax() on a $('a').click > > () to pull up an external page (eg "stats.php" within the same > > folkder) within a div called #main_content that any link that was > > pulled up in that would not have the same effects as outside of it. Is > > there a way to pass the inheritance over to the links in the in div > > that is holding the new page? I appreciate any advice before hand!