I'm using both load and $.ajax (via $.post and $.get). It wasn't working at all for me with .load. Will test your new code this week when I'm back on js development.
Thanks for your response! On Aug 1, 7:38 pm, "Brandon Aaron" <[EMAIL PROTECTED]> wrote: > Hey Phillip, > > Do you have an example of where it isn't working for you? The behavior will > work once the information is added to the DOM. I've updated my > example/demo/test with an example of using > .load.http://brandonaaron.net/jquery/plugins/behavior/test/test.html > > -- > Brandon Aaron > > On 8/1/07, Phillip B Oldham <[EMAIL PROTECTED]> wrote: > > > > > Hi all > > > Just a quick note - the behavior plugin doesn't work with any method > > which fires the $.ajax method - $.load, $.post, $.get, etc. - when > > using the latest jQuery (1.3.1.1). > > > Thought I'd mention it as the FAQ is a little miss-leading: <http:// > > docs.jquery.com/ > > > Frequently_Asked_Questions#Why_do_my_events_stop_working_after_an_Ajax_request. > > 3F> > > > $('a').behavior('click',fn); > > $('#mydiv').load('my.html'); > > > The above doesn't work. > > > I modified the test.html file that comes with the plugin to test > > the .load method by loading a second html doc with a div to see > > whether the links were attached, but had no joy. > > > Reviewing both the plugin and jquery source it seems as though no > > triggers are bound to the .ajax method. I'm not sure whether this is > > because jquery has been refactored, or something else. I tried using > > previous versions (1.1.2, 1.1.1, 1.1) with no luck. > > > Thought I'd let you guys know, so you can amend the FAQ. Or, if you > > *have* got it working, you might be able to tell me how and make the > > FAQ a little clearer. > > > Thanks!