simplemodal

How to invoke simplemodal with onclick inline?

拈花ヽ惹草 提交于 2019-12-25 03:54:51
问题 I can use Eric Martin's simplemodal somewhat. But I would like to call it inline with onclick . Something inline like this: <a href="http://ibm.com" onclick="$.modal({url:'http://ibm.com', width:586,height:570,animate:true,opacity:60})"> IBM </a> Not like this: (typically at the bottom of the page) $('.free_modal').click(function(e) {var hrefval= $(this).attr("href"); $.modal('<iframe src="' + hrefval + '" height="535" width="1000" style="border:none; margin:0 9px; padding-bottom:0; padding

jQuery SimpleModal: two different modal contents in the same page

非 Y 不嫁゛ 提交于 2019-12-25 00:46:55
问题 I'm using Eric Martin's SimpleModal, and I need to have two links in index.html pointing to two different modal windows. I've tried the code below, and it works but the contents of the second modal shows in index.html :( How can I fix it? Please note that I'm using Eric's links to show the code here and make it stand alone. In my page I've downloaded the files and I use them locally. Thanks a lot <html> <head> <style> #basic-modal-content {display:none;} #simplemodal-overlay {background-color

Jquery UI Tabs fail after hiding and reshowing

▼魔方 西西 提交于 2019-12-24 20:25:40
问题 I'm using Simple Modal to create a modal box when a user clicks a link. Inside this modal box is a div rigged with jquery ui tabs. Before the modal is opened however, the content in those tabs are changed. In my jsFiddle example it doesnt show that part however. The Problem Open the modal by clicking on a link for the first time and the modal box shows and tabs work correctly. Close the modal and reopen. (user can click on same link). Tabs do NOT work. When I try to destroy the instance and

SimpleModal Confirm fails to submit form

只愿长相守 提交于 2019-12-24 07:10:11
问题 I'm trying to use jQuery SimpleModal Confirm to show a Yes/No confirmation when a form is submitted. I had modified the demo here (last in list), as follows, to catch and block the form submission. However, this only seems to work with jQuery 1.2.6 a recent upgrade to 1.3.2 stops the form from being submitted if yes is clicked. I can't however, work out what in my code is now wrong / incompatible. The demo (which is a simple window.href implementation works in both versions). $(document)

Jquery simplemodal call another simplemodal

家住魔仙堡 提交于 2019-12-24 06:20:40
问题 I want to call another simplemodal from a link in existing modal. I'm using the OSX modal. How can I do this ? 回答1: SimpleModal only supports one modal open at a time. Instead of opening a new one, you could get the content you want and replace the existing content with it. 回答2: $('#myModal').modal.update(); I think that should instead be $.modal.update(); There's only ever one modal dialog so you don't have to specify which one. 回答3: There are too many ways to accomplish that. I will show

when using SimpleModal and open an Iframe it is calling the src twice

谁说我不能喝 提交于 2019-12-23 11:17:10
问题 I am using SimpleModal and i am opening an Iframe (using ff) it seems to work ok in ie9 but in ff it is calling the iframe src twice Thanks for any help the code i am calling looks like function addNew(){ var src = "/php/ftp/parsehome.php?dir="+userDir+"&idx=new"; $.modal('<iframe src="' + src + '" height="445" width="800" style="border:0">', { containerCss:{ backgroundColor:"#E1EFF7", borderColor:"#00A99D", height:450, padding:0, width:840 }, modal: true }); } 回答1: I ran into the same

Basic Help with SimpleModal and ASP.NET

Deadly 提交于 2019-12-22 06:37:05
问题 Integrating SimpleModal with ASP.NET I want to thank Eric for producing SimpleModal and compliment the demos. It looks fantastic.. I only wish I could figure out how to use it.. (it's me, I'm missing some chromosome or something.) Sorry in advance for my noobinicity. I've seen several demos where specific functions are talked about and called, but this assumes that the scripts are integrated correctly into the project. This is the crux of the issue I am having, I don't know what the heck I'm

jQuery simplemodal disable scrolling

半世苍凉 提交于 2019-12-20 10:34:41
问题 I have more than 2000 pixels scrolling content on a page. If the user clicks a div a scrolling content pops up in a simplemodal window. Now my client wants to make the original page non-scrollable while the modal window is up. (Of course the modal should be still scrollable.) Is it even possible? Edit: I have tried your suggestions. Basically it works, but the problem is a little bit complicated: $(".foReadMoreLink a").click(function(){ if ($('#modalBox').length == 0) $('body').append('<div

Simple Modal, jQuery 1.8.0 and IE9

泪湿孤枕 提交于 2019-12-20 09:18:53
问题 Simple Modal fails with jQuery 1.8.0 and IE9 with the error: SCRIPT438: Object doesn't support property or method 'removeExpression' The following fiddle demonstrates ( remember to run with IE9 ) http://jsfiddle.net/ericjohannsen/ZVEWa/1/ Switching jQuery to 1.7.2 causes the error to go away. Is there a way to work around this? Possibly Related (OP says the issue was with jQuery 1.7.1 & iframes) SimpleModal doesn't work in IE 9 (inside Iframe) Unrelated (jQuery 1.5 issue) Problems with simple

Setting ModalPopupExtender TargetControlID to LIstView Button

百般思念 提交于 2019-12-20 05:47:22
问题 I am wondering how I am able to set the TargetControlID of my ModalPopupExtender to the Button on my ListView . The button that I am trying to set the TargetControlID to is in the Alternating and Item template on the ListView. So I believe I would need to set the TargetControlID to either two buttons, or have two different ModalPopupExtenders . Here is my ModalPopupExtender : <cc1:ModalPopupExtender ID="mp1" runat="server" PopupControlID="Panl1" TargetControlID="Button1" CancelControlID=