simplemodal

Question about SimpleModal jQuery plugin — possible to re-center after initial open?

旧时模样 提交于 2019-12-11 03:11:23
问题 my problem has to do with the SimpleModal jQuery plugin. I have no problem opening the modal window, but once it opens it stays where it is [centered] on the screen, however its contents are changing, making it taller and therefore no longer centered. Is there a simple way to realign it so it becomes centered again? EDIT: I think it would help to explain my problem by showing two screenshots: before & after -- basically I am using jQuery's slideUp & slideDown functionality to hide the credit

How to make a simple modal window? [closed]

浪子不回头ぞ 提交于 2019-12-09 18:36:04
问题 As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance. Closed 6 years ago . guys! Can anyone help to understand how to make a simple modal window? Like to make a fade out background of the web page's content

Position simplemodal modal on top of an existing div

六眼飞鱼酱① 提交于 2019-12-08 12:50:46
问题 I'm trying to position a modal dialog on top of an existing div, using simplemodal plugin. Here's my code; it's not working: jQuery(function ($) { $('.slider-caption .basic').click(function (e) { var p = $("#slider1"); var position = p.position(); $('#basic-modal-content').modal({ position: "absolute", left: position.left, top: position.top }); return false; }); }); It's still drawing in the middle of the window. I've also tried to set autoPosition option to false, but that just makes it draw

Passing a Value from PHP to the SimpleModal Contact Form

懵懂的女人 提交于 2019-12-08 10:39:46
问题 What is the simplest way to pass a value from the "index" page to the SimpleModal Demo Contact Form? For example, if a user is logged in and their email address is stored in the variable $email, what is the most straightforward way to have that info available in the Demo Contact Form? Thank you. 回答1: Assuming the values you want are NOT in the form, here's a way to do it. Update contact.js in the onShow: function: ... }, function () { $('#contact-container .contact-loading').fadeIn(200,

tab order for links in a simplemodal dialog

蓝咒 提交于 2019-12-07 10:50:08
问题 I am using the excellent jquery.simplemodal dialog plugin to show a list of items. These items contain hyperlinks. It all works great except that the links in the modal dialog arent coming up as part of the tab order. I have tried setting tabindex explicitly, but for some reason only the input elements are in the tab order - if I tab through the dialog I just cycle through the 3 input elements and dont hit the anchors. Am I doing something wrong with calling simplemodal plugin? An example is

SimpleModal and ASP.NET MasterPage

☆樱花仙子☆ 提交于 2019-12-06 16:10:52
问题 Integrating SimpleModal with ASP.NET and MasterPages This is a continuation of a previous thread found here. Thanks to the help I received previously the code worked in a single page and I was able to use SimpleModal. But my application has MasterPages, so I pasted it into another test form. The results are different then the test I ran without a MasterPage. Without the MasterPage the modal opened and stayed open until closed by the user. With this MasterPage version the modal opens for only

Using simplemodal with wordpress

纵然是瞬间 提交于 2019-12-06 14:36:11
I am trying to use simplemodal to have modal popups with text in wordpress posts. I've played around with various plugins but they have specific uses (such as the contact form, or another one I saw that displays a single note you can customize). I've tried following this tutorial: http://wordpressthemescollection.com/ajax-wordpress-post-popup-with-simplemodal-and-jquery-488.html but the instructions are not very clear for people without advanced jquery or wordpress knowledge and it simply isn't working for me. The author does not explain where you put the function, for instance. For anyone who

Jquery simplemodal close existing modal and open a new one?

巧了我就是萌 提交于 2019-12-06 04:52:04
问题 Alright, so all modals already have an image at the top right to close them. How can I make additionally another anchor to do the same thing? I thought I could use the "closeClass" option which default to "simplemodal-close" and just add that class to an anchor, but it didn't have the desired effect. Is that what I'm supposed to do? Also, all modals will have a "contact us" link which should close it's own modal and open the contact modal. How can I wait until it is closed to open the next

SimpleModal doesn't work in IE 9 (inside Iframe)

左心房为你撑大大i 提交于 2019-12-06 02:33:21
问题 I'm getting following error when using IE 9 (Chrome and FireFox works great): SCRIPT438: Object doesn't support property or method 'removeExpression' jquery.simplemodal.1.4.2.min.js, line 16 character 133 Simple Modal is called inside Iframe. jQuery.min (1.7.1) is included before SimpleModal (1.4.2) in the Iframe. The code responsible for showing modal dialog: function OpenContextByClass(cssClass, posY, posX) { var winHeight = $(window).height(); var winWidth = $(window).width(); $('.' +

tab order for links in a simplemodal dialog

≯℡__Kan透↙ 提交于 2019-12-05 18:06:43
I am using the excellent jquery.simplemodal dialog plugin to show a list of items. These items contain hyperlinks. It all works great except that the links in the modal dialog arent coming up as part of the tab order. I have tried setting tabindex explicitly, but for some reason only the input elements are in the tab order - if I tab through the dialog I just cycle through the 3 input elements and dont hit the anchors. Am I doing something wrong with calling simplemodal plugin? An example is at http://dev.andrewbucknell.com/basic/demo1.html The code (with relative paths) for the demo is as