[jQuery] Re: jQuery not working with content that is loaded in.

2009-08-11 Thread Meroe
the link sorry. -Original Message- From: jquery-en@googlegroups.com [mailto:jquery...@googlegroups.com] On Behalf Of cz231 Sent: Tuesday, August 11, 2009 3:28 PM To: jQuery (English) Subject: [jQuery] Re: jQuery not working with content that is loaded in. Thanks I think that that is my is

[jQuery] Re: jQuery not working with content that is loaded in.

2009-08-11 Thread cz231
I think I solved it. Basically I wrapped everything in a function called js. Then on document load I ran the function. I also re ran the function whenever I reloaded content. It works, but due to my lack of knowledge on binding, will this affect performance alot? On Aug 11, 2:28 pm, cz231 wrote

[jQuery] Re: jQuery not working with content that is loaded in.

2009-08-11 Thread cz231
Thanks I think that that is my issue. Is there a way to rebind my whole javascript file? Or will that affect performance a lot? I ask because I want pretty much all of my js file pertains to the new content I'm loading in. On Aug 11, 1:17 pm, Shane Riley wrote: > If you're using the latest jQuer

[jQuery] Re: jQuery not working with content that is loaded in.

2009-08-11 Thread Shane Riley
If you're using the latest jQuery, you can bind most events with .live () to ensure that your events are attached when the new content is loaded in. Note that this doesn't work for all events, though. On Aug 11, 12:03 pm, cz231 wrote: > Hi, > > I'm building an online application, and I want one

[jQuery] Re: jQuery not working with content that is loaded in.

2009-08-11 Thread James
Does "reloading" perform some kind of action that modifies the DOM (e.g. introduce new content via AJAX). If so, then this FAQ may explain your problem: http://docs.jquery.com/Frequently_Asked_Questions#Why_do_my_events_stop_working_after_an_AJAX_request.3F On Aug 11, 6:03 am, cz231 wrote: > Hi,