Look at this: http://docs.jquery.com/Frequently_Asked_Questions#Why_do_my_events_stop_working_after_an_AJAX_request.3F
On 5 Sep., 13:40, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > Thank you for showing me the correct way to do that? > > My next question really is, why after the user clicks on my div, does > the content reload from creator.pl does jQuery stop watching the > pixels inside #results. It doesnt do my hover effect and you cannot > click on any of the divs to re-send creator. > > On Sep 5, 12:54 am, Ca-Phun Ung <[EMAIL PROTECTED]> wrote: > > > Hi, > > > [EMAIL PROTECTED] wrote: > > > How can I get jQuery to use the new divs that are populated as a > > > result of an .ajax request. > > > What you want is the Ajax load method, > > seehttp://docs.jquery.com/Ajax/load#urldatacallback > > > > \$.ajax({ > > > type: "POST", > > > url: "/creator.pl?colorselect=" + color + "idselect=" > > > + id_select + > > > "", > > > success: function(){ > > > \$("#result").load("/creator.pl?colorselect=" > > > + color + "&id_select=" + id_select + "") } > > > }); > > > }); > > > You're nearly there. But wrapping Ajax load with $.ajax is not > > necessary. Try replacing the above code this: > > > $("#result").load('/creator.pl', {colorselect: color, id_select: > > id_select}); > > > Ajax load will inject the results into the #results div. > > > Note: I'm giving you the benefit of the doubt regarding that backslash > > you have before each $ sign ;) > > > -- Ca-Phun Ung > > +http://yelotofu.com