Using bootstrap 3.0 modals to load dynamic, remote content within an iframe

后端 未结 5 1108
离开以前
离开以前 2020-12-08 07:57

I have tried several of the suggestions posted here on other questions and on stackexchange, and nothing is working to my satisfaction.

I am trying to load dynamic

5条回答
  •  庸人自扰
    2020-12-08 08:30

    you can try this bootstrap helper to dialogs

    it has support for ajax request, iframes, common dialogs, confirm and prompt!

    you can use it as:

    eModal.iframe('http://someUrl.com', 'This is a tile for iframe', callbackIfNeeded);
    
    eModal.alert('The message', 'This title');
    
    eModal.ajax('/mypage.html', 'This is a ajax', callbackIfNeeded);
    
    eModal.confirm('the question', 'The title', theMandatoryCallback);
    
    eModal.prompt('Form question', 'This is a ajax', theMandatoryCallback);
    

    this provide a loading progress while loading the iframe!

    No html required.

    You can use a object literal as parameter to extra options.

    Check the site form more details.

    best,

提交回复
热议问题