load external URL into modal jquery ui dialog

后端 未结 6 827
渐次进展
渐次进展 2020-12-05 02:35

why doesn\'t this display ibm.com into a 400x500px modal? The section appears to be correct, but it doesn\'t cause the popup modal to appear.



        
6条回答
  •  南方客
    南方客 (楼主)
    2020-12-05 02:51

    I did it this way, where 'struts2ActionName' is the struts2 action in my case. You may use any url instead.

    var urlAdditionCert =${pageContext.request.contextPath}/struts2ActionName";
    $("#dialogId").load( urlAdditionCert).dialog({
        modal: true,
        height: $("#body").height(),
        width: $("#body").width()*.8
    });
    

提交回复
热议问题