• I’m looking for the definitive or most complete guide to understanding Ajax events in WordPress. I am having a lot of trouble nailing down where this is documented, such as capturing events on the widgets.php page within ajaxComplete and ajaxSuccess, etc i.e. ‘widget-save’, ‘widget-create’, ‘widget-instance’ or ‘widget-id’…heck are any of these even real handlers within these events?

    On a clean install I notice when I log ajaxComplete and ajaxSuccess events, they both fire twice doing simple tasks such as dragging a widget to a sidebar, deleting a widget and saving a widget. I am sure within these there is some unique handler like “this” happened, and now “this” also happened explaining the “why” I see 2 events each. Where do i find this information.

    Searching the codex just produces a ton of results related to event calendar plugins which is not what I’m looking for.

    Any direction is greatly appreciated.

Viewing 1 replies (of 1 total)
  • Thread Starter pingram

    (@pingram3541)

    ok, duh I can inspect the output then the objects etc but still, for sake of less work is this all detailed anywhere for simplicity and being efficient?

    I really don’t enjoy having to dissect the tools I use for a project, I just want to use the tools from the start.

    $(document).ajaxSuccess(function(event, XMLHttpRequest, ajaxOptions){
    console.log("ajaxsuccess fired!");
    console.log(event);
    console.log(XMLHttpRequest);
    console.log(ajaxOptions);
    });
Viewing 1 replies (of 1 total)
  • The topic ‘Guide to widgets.php ajax events?’ is closed to new replies.