[jQuery] Injecting HTML

2009-06-03 Thread Waseem
Hi, I have some script running on a page, events.php, I use $.ajax to return the data from that page then on success inject the HTML into a div in my page. I have a close button that fades that injected content out. however the close button refuses to work from my index.php, but when i have it o

[jQuery] injecting HTML with load() how to bind events?

2007-09-27 Thread kamiseq
im loading some HTML with ajax, and as in jQ every events are bound, to HTML elements, just after page is loaded, how can I force jQ code to bind event handlers to new HTML. I could trigger some js function with jQ after loading has finished but maybe there is a better way to do so.

[jQuery] injecting HTML with load() how to bind events?

2007-09-27 Thread kamiseq
im loading some HTML with ajax, and as in jQ every events are bound, to HTML elements, just after page is loaded, how can I force jQ code to bind event handlers to new HTML. I could trigger some js function with jQ after loading has finished but maybe there is a better way to do so.