Forums

WP 2.8: Widget Admin Backend (2 posts)

  1. crille
    Member
    Posted 4 months ago #

    I have two odd programming-problems with the new widget backend:
    1. WP_Widget->form($instance): I want to use JQuery-Event Listener in my widget form. But it only works, after I saved the widget on sidebar. When I drag & drop the widget on sidebar (without saving), the jQuery-Listener seems not to be bind. maxchirkov have the same problem
    2. WP_Widget->update($new_instance, $old_instance): This is really odd. When I use this code ($template_save is a parsed xml file):
    $instance['above_html'] = $template_save->AboveHtml;
    $instance['above_html'] is empty. But when I use this code
    $instance['above_html'] = "".$template_save->AboveHtml;
    it works...

    Thanks for your reply!
    crille

  2. crille
    Member
    Posted 2 months ago #

    #1 is resolved:
    Use JQuery live.

    Für Deutschsprechende: In meinem Blog habe ich eine ausführlichere Beschreibung zu dem Thema.

Reply

You must log in to post.

About this Topic