【原】Iframe with SimpleModal keeps breaking down in IE 9 IE 7
2012-07-12 21:59
302 查看
SimpleModal 插件
http://www.ericmmartin.com/projects/simplemodal/
以下代码可以避免在IE中使用simpleModal弹出iframe出错问题
var license_no = ''
$(document).ready(function () {
$('#quote').click(function (e) {
license_no = $(this).attr("licenseNo");
e.preventDefault();
function setSrc() {
$('#frame_content').attr("src", "/default.asp?UrlReferrer=coxIpro&license_no=" + license_no);
}
$.modal('<iframe src="" id="frame_content" style="overflow:auto" scrolling="yes" frameborder="0" height="550px" width="805px">', {
onShow: function (dialog) {
setSrc();
},
// Fix width issue in IE 7
containerCss: {
height: 560,
padding: 0,
width: 810
},
overlayClose: true,
persist: false
});
});
});
@import url(http://www.cnblogs.com/Load.ashx?type=style&file=SyntaxHighlighter.css);@import url(/css/cuteeditor.css);
http://www.ericmmartin.com/projects/simplemodal/
以下代码可以避免在IE中使用simpleModal弹出iframe出错问题
var license_no = ''
$(document).ready(function () {
$('#quote').click(function (e) {
license_no = $(this).attr("licenseNo");
e.preventDefault();
function setSrc() {
$('#frame_content').attr("src", "/default.asp?UrlReferrer=coxIpro&license_no=" + license_no);
}
$.modal('<iframe src="" id="frame_content" style="overflow:auto" scrolling="yes" frameborder="0" height="550px" width="805px">', {
onShow: function (dialog) {
setSrc();
},
// Fix width issue in IE 7
containerCss: {
height: 560,
padding: 0,
width: 810
},
overlayClose: true,
persist: false
});
});
});
@import url(http://www.cnblogs.com/Load.ashx?type=style&file=SyntaxHighlighter.css);@import url(/css/cuteeditor.css);
相关文章推荐
- Get the content of an Iframe in Javascript – crossbrowser solution for both IE and Firefox
- Invoke IFrame/window in cross domain in IE&FF notes
- Get the content of an Iframe in Javascript – crossbrowser solution for both IE and Firefox
- Invoke IFrame/window in cross domain in IE&FF notes
- Get the content of an Iframe in Javascript – crossbrowser solution for both IE and Firefox
- Simple Breaking Waves in Maya
- Problem with ReportViewer (Q1 2014) rendering in IE 10 or 11
- scala: How to write a simple HTTP GET request client in Scala (with a timeout)
- Get the content of an Iframe in Javascript – crossbrowser solution for both IE and Firefox
- Simple Breaking Waves in Maya
- Issue 5158: Modal dialog present (UnexpectedAlertOpen) issue in IE (Similar issue like 3360)
- IE title changes to <afterHash> if the page has a url with '#' , and has flash/swf embedded in it
- HTTPAuth Logout in Chrome, Firefox and IE with jQuery
- Simple Breaking Waves in Houdini
- Simple Breaking Waves in Maya
- Simple example for transform xml with xlst in C#
- Gradle Goodness: Parse Files with SimpleTemplateEngine in Copy Task
- Error creating bean with name 'simpleUrlHandlerMapping' defined in ServletContext resource [/WEB-IN
- A Simple Web App with Spring Boot, Spring Security and Stormpath – in 15 Minutes
- There is a problem with this website’s security certificate in IE