jQWidgets Forums

jQuery UI Widgets Forums Grid Access jqxGrid data/methods/properties across Iframes

This topic contains 1 reply, has 2 voices, and was last updated by  Peter Stoev 9 years, 8 months ago.

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

  • neha
    Participant

    HI,

    I am using JQXWidgets3.8.2. I am facing problem with accessing jqxGrid (which is in a child Iframe) methods and properties in the parent jsp.
    My code is :-

    var feedGrid = $(‘#feedIFrame’).contents().find(‘#grid’);
    alert(‘feedGrid::’ + $(‘#feedIFrame’).contents().find(‘#grid’).html());
    var filterGroups = $(‘#feedIFrame’).contents().find(‘#grid’).jqxGrid(‘getfilterinformation’);
    alert(filterGroups);

    filterGroups is coming as ‘undefined’.

    I have included all the css, js for jqxgrid in parent jsp and child Iframe

    Please share the solution with example to access all jqxGrid data/properties/methods etc. which is in a child Iframe from parent jsp.

    Thanks,
    Neha


    Peter Stoev
    Keymaster

    Hi Neha,

    IFrame is another Document which could or could not be from the same domain so for browsers security reasons you cannot access widgets inside IFrames.

    Best Regards,
    Peter Stoev

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

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

You must be logged in to reply to this topic.