See you switched to $.ajax... Your original problem is that you asked for the RESULTS of the after_load function. You need to pass the function reference. So your code would need to look like this:
self.element.children('.cr_tab_content').load(id.substring(5), {}, self.options.after_load); - note there are no brackets after the after_load function.... Hope you got it all working well... Shawn Eridius wrote: > > I have this code: > > self.element.children('.cr_tab_content').load(id.substring(5), {}, > self.options.after_load()); > > however the after_load function is being called before the ajax request, not > after this(I tested in firebug and request is not sent until I close that > alert generated by that after_load() function. How can I create a callback > after the ajax request is finished? is there is different function like > $.post or $.ajax and not load? > > Thanks > Ryan