simplemodal

Problems with simple modal in IE9

强颜欢笑 提交于 2019-12-02 05:52:41
Yesterday I launched a new website. Before I uploaded the files to my server, I tested the website in IE8, Firefox, Safari and Chrome, and everything seemed to be OK. But I just installed IE9 and my Simple Modal boxes don't show up in this browser. I'm using the following javascript code: jQuery(function ($) { $('a.modal').click(function (e) { $('#' + this.id + "content").modal({onOpen: function (dialog) { dialog.overlay.fadeIn('fast', function () { dialog.container.fadeIn('fast'); dialog.data.fadeIn('slow'); }); }}); return false; }); $.modal.defaults.onClose = function (dialog) { dialog.data

jQuery simple multiple modals on one html page

江枫思渺然 提交于 2019-11-29 16:43:34
I tried the simple modal of Eric martin modal plugin. And I got a little difficulty. I did one modal on Html page but what if I want some more modals in one HTML page like I did the first one-just with different background and content? HTML: <div id='content'> <div id='basic-modal'> <a href='#' class='basic'>white whine</a> <div id="basic-modal-content"> <p> text text text</p> </div> </div> </div> jQuery: jQuery(function ($) { // Load dialog on page load //$('#basic-modal-content').modal(); // Load dialog on click $('#basic-modal .basic').click(function (e) { $('#basic-modal-content').modal();

using simplemodal, show loading spinner while content inside iframe loads

笑着哭i 提交于 2019-11-29 04:35:05
Good morning! I am using the great SimpleModal plugin for jQuery from Eric Martin. Currently, I am loading a modal using an iframe to load my requested pages which works as expected. What I would like to implement is a Loading... spinner which displays while the content is loading. I am loading my modal as follows: jQuery(function ($) { // Load dialog on click $('.basic').click(function (e) { var src = "http://localhost" + $(this).attr("href"); $.modal('<iframe id="details" class="so" src="' + src + '" height="500" width="500" style="border:0">', { closeHTML: "<a title='Close' class=

How do you close a jQuery Simplemodal?

无人久伴 提交于 2019-11-28 22:57:23
I want to close a Simplemodal window from a JavaScript function that gets called automatically after a form is submitted and the results recived (AJAX), using ASP.Net MVC. How do I close a jQuery Simplemodal? I've opened it this way: $("#popup").modal() You have 2 options: 1) Put the close class (simplemodal-close) on an element in your modal data and SimpleModal will automatically bind the close function to the click event on that element. Taking the example above, you'd want: <div id="foo" style="display:none"> <p>Form HTML</p> <span class="simplemodal-close">Close</span> </div> 2) When you

Multiple calls with Simple Modal OSX Style Dialog

橙三吉。 提交于 2019-11-28 13:10:29
I am using Simple Modal, the OSX style version. I have two calls to the modal and therefore two versions of content. When either of the buttons is clicked it selects only the first lot of content. There is nowhere to put a hook on the content like most modal windows as there is no javascript on the page to add parameters... only an external .js file which I don't want to touch for obvious reasons. Can anyone help me with this problem? I did the same thing on a site I'm building. I just created different content for each modal and gave each one a unique ID. So my content looked something like:

SimpleModal breaks ASP.Net Postbacks

耗尽温柔 提交于 2019-11-28 06:49:56
I'm using jQuery and SimpleModal in an ASP.Net project to make some nice dialogs for a web app. Unfortunately, any buttons in a modal dialog can no longer execute their postbacks, which is not really acceptable. There is one source I've found with a workaround , but for the life of me I can't get it to work, mostly because I am not fully understanding all of the necessary steps. I also have a workaround, which is to replace the postbacks, but it's ugly and probably not the most reliable. I would really like to make the postbacks work again. Any ideas? UPDATE: I should clarify, the postbacks

using simplemodal, show loading spinner while content inside iframe loads

荒凉一梦 提交于 2019-11-27 18:40:49
问题 Good morning! I am using the great SimpleModal plugin for jQuery from Eric Martin. Currently, I am loading a modal using an iframe to load my requested pages which works as expected. What I would like to implement is a Loading... spinner which displays while the content is loading. I am loading my modal as follows: jQuery(function ($) { // Load dialog on click $('.basic').click(function (e) { var src = "http://localhost" + $(this).attr("href"); $.modal('<iframe id="details" class="so" src="'

How do you close a jQuery Simplemodal?

大憨熊 提交于 2019-11-27 14:42:52
问题 I want to close a Simplemodal window from a JavaScript function that gets called automatically after a form is submitted and the results recived (AJAX), using ASP.Net MVC. How do I close a jQuery Simplemodal? I've opened it this way: $("#popup").modal() 回答1: You have 2 options: 1) Put the close class (simplemodal-close) on an element in your modal data and SimpleModal will automatically bind the close function to the click event on that element. Taking the example above, you'd want: <div id=

Multiple calls with Simple Modal OSX Style Dialog

痞子三分冷 提交于 2019-11-27 07:31:29
问题 I am using Simple Modal, the OSX style version. I have two calls to the modal and therefore two versions of content. When either of the buttons is clicked it selects only the first lot of content. There is nowhere to put a hook on the content like most modal windows as there is no javascript on the page to add parameters... only an external .js file which I don't want to touch for obvious reasons. Can anyone help me with this problem? 回答1: I did the same thing on a site I'm building. I just

SimpleModal breaks ASP.Net Postbacks

元气小坏坏 提交于 2019-11-27 01:31:09
问题 I'm using jQuery and SimpleModal in an ASP.Net project to make some nice dialogs for a web app. Unfortunately, any buttons in a modal dialog can no longer execute their postbacks, which is not really acceptable. There is one source I've found with a workaround, but for the life of me I can't get it to work, mostly because I am not fully understanding all of the necessary steps. I also have a workaround, which is to replace the postbacks, but it's ugly and probably not the most reliable. I