How to load html external form in simplemodal OSX dialog style

Thanks for your jquery plug in. I know how to load an external html page into a simple modal dialog with this code:

var src = "form.html";
$.modal('<iframe src="' + src + '" height="430" width="510" style="border:0">', {
closeHTML:"",
containerCss:{
    backgroundColor:"#ffa",
    borderColor:"#ffa",
    height:350,
    padding:0,
    width:530
},
overlayClose:true
});

I would like to do the same with the osx simplified style. Is it possible?

Thank you for your help.

Tibo

+3
source share
2 answers

I'm not Eric, but this should allow you to omit the iframe and use whatever style you want (don't know which OS X style is the theme, maybe?):

$.get('form.html', function(response) {
  $.modal(response, {
    closeHTML:"",
    containerCss:{
      backgroundColor:"#ffa",
      borderColor:"#ffa",
      height:350,
      padding:0,
      width:530
    },
    overlayClose:true
  });
});
0
source

, , , OSX, , , , jQuery ( ). ? ? ? ? .

0

Source: https://habr.com/ru/post/1796454/


All Articles