Ah! In that case you can pull your Javascript form submit code into a
function and then call that function in the callback of the ajax
load. Whenever new content is added to the DOM, we need to re-bind
events so they recognize the new DOM elements. Actually, there are
other ways to do this, involving event bubbling, etc., but re-binding
is probably the most intuitive.
Hope that makes sense.
--Karl
_________________
Karl Swedberg
www.englishrules.com
www.learningjquery.com
On Apr 28, 2007, at 1:27 AM, Dave wrote:
I think I now realize what my problem is. I have a structure where
php loads a header and footer. The central content div is updated via
ajax. This is where the javascript resides so a $(document).ready may
not actually be triggered since the http headers etc aren't being sent
on ajax update. This'll require some more digging.