Skip to content Skip to sidebar Skip to footer

Widget Method Not Getting Called

I am creating a widget names as 'discussionwidget'. Its create function is getting called by default. But the next load function I am trying to call is not getting called. Please h

Solution 1:

It should be like

$('.ui-content-gutter').discussionwidget('load', data)

ie

jQuery(function ($) {
    // Load discussion history fist time
    $('.ui-content-gutter').discussionwidget({
        containerClass: ".ui-content-gutter"
    });

    $.ajax({
        type: "POST",
        url: baseURL + "/services/peoplewebservice.asmx/GetDiscussionHistory",
        dataType: "json",
        contentType: "application/json; charset=utf-8",
        success: function (data) {
            debugger;
            $('.ui-content-gutter').discussionwidget('load', data)
        }
    });
});

Solution 2:

When you load call jQuery library functionagainandalsousejQuery.noConflict().

Post a Comment for "Widget Method Not Getting Called"