jQuery UI Widgets Forums Dialogs and Notifications Window Calling parent page function in jqxwindow

This topic contains 2 replies, has 2 voices, and was last updated by  latha 10 years, 9 months ago.

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author

  • latha
    Participant

    Hi

    I have a jqxgrid in my application with three custom buttons,in one of that button click i have opened a “DeletePopup.aspx” page in “jqxwindow” by the following code

    `var buttonclick = function (event, row) {
    var id = event.target.id;
    var datarow = $(“#jqxgrid”).jqxGrid(‘getrowdata’, row);
    if (/btnDelete/i.test(id)) {
    $(“#jqxwindow”).jqxWindow(‘open’);
    $(“#jqxwindow”).jqxWindow(‘setContent’, ‘<iframe src=”DeletePopup.aspx?ID=’ + datarow.uid+ ‘” width=”100%” height=”100%”></iframe>’);
    }`

    The popup opened fine and in the popup(DeletePopup.aspx) i have two buttons “Yes”,”No”.

    While clicking the “yes” button i need to call the javascript function in the parent page & i need to refresh the grid.

    Please help me regarding this asap.Its urgent to fix.

    Thanks & Regards
    Latha S


    Dimitar
    Participant

    Hello Latha S,

    Unfortunately, this cannot be achieved. You cannot call an iframe-page function from its parent page.

    Best Regards,
    Dimitar

    jQWidgets team
    http://www.jqwidgets.com/


    latha
    Participant

    Hi Dimitar,

    Thanks for your reply.

    I have achieved this by giving parent page javascript reference in the popup page & accessed the javascript method with the following code

    window.parent.functionname()

    Thanks & regards
    Latha S

Viewing 3 posts - 1 through 3 (of 3 total)

You must be logged in to reply to this topic.