Forums

get Widget ID when is dropped in to the W. panel (1 post)

  1. 2046
    Member
    Posted 3 months ago #

    I'm sorry but I cannot figure it how to get an JS(jQuery) event when the Widget is dropped into the widget panel.
    What I need is the Widget unique ID right after it is dropped in the panel. Before the widget is saved.
    Because for now, the ID is present only when the widget is saved (or more precisely, the WP PHP API gives me the right ID only after that event).

    this fires event wehen the Widget is saved

    jQuery('body').ajaxSuccess(function(evt, request, settings) {
    alert('ajax request completed');
    });

    and here they come up with some solution, which I' not able to grasp.
    http://wordpress.stackexchange.com/questions/5515/update-widget-form-after-drag-and-drop-wp-save-bug

    I need it for my widget plugin (http://wordpress.org/extend/plugins/2046s-widget-loops/), where I show&hide some parts of the widget (something like tabs).

    thanks 2046

Reply

You must log in to post.

About this Topic