simplemodal

Basic Help with SimpleModal and ASP.NET

|▌冷眼眸甩不掉的悲伤 提交于 2019-12-05 12:25:50
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 looking at when I look at jquery. Some background: I've been programming for 25 years, with assembly, C

How do I get a result from a modal dialog in jQuery

两盒软妹~` 提交于 2019-12-05 00:47:43
I would like to use an add-in like simple-modal or the dialog add-in in the UI kit. However, how do I use these or any other and get a result back. Basically I want the modal to do some AJAX interaction with the server and return the result for the calling code to do some stuff with. Espo Here is how the confirm window works on simpleModal: $(document).ready(function () { $('#confirmDialog input:eq(0)').click(function (e) { e.preventDefault(); // example of calling the confirm function // you must use a callback function to perform the "yes" action confirm("Continue to the SimpleModal Project

SimpleModal and ASP.NET MasterPage

一笑奈何 提交于 2019-12-04 20:27:07
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 one second and then closes. Anybody know why? Below is a default sample master page. No edits were

Jquery simplemodal close existing modal and open a new one?

和自甴很熟 提交于 2019-12-04 10:29:43
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 one? Ideas? $('a#ask').click(function(){ $.modal.close(function(){ }); $('#modal-contact').modal(); }); 1

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

跟風遠走 提交于 2019-12-04 10:11:25
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(); $('.' + cssClass).modal({ overlayClose: true, position: [posY, posX], appendTo: 'form', onOpen: function (dialog) {

Simple Modal issues - Multiples, Disappearing Content

放肆的年华 提交于 2019-12-04 05:41:30
问题 I'm a jQuery newbie and have rigged Simple Modal to allow me to have more than one modal on a page by doing this in my script: $('input.basic, a.basic').click(function (e) { e.preventDefault(); $(this).next('.basicModalContent').modal(); }); here's my HTML: <a class="basic linkHeading" href="#">Link Heading</a> <div class="basicModalContent" style="display: none;"> <h1>This Resource Requires Login</h1> <a href="#" class="simplemodal-close" title="Close">Cancel</a></p> </div><!--basicModal-->

Simple modal in jQuery

假如想象 提交于 2019-12-04 01:47:08
问题 I am using SimpleModal in jQuery, and I have one confirm dialog. If the result is Yes , I have to call my.php into this dialog. However, I have done the code, and I am still searching for ideas. How can I do it? $(document).ready(function () { $('#confirmDialog input.confirm, #confirmDialog a.confirm').click(function (e) { e.preventDefault(); // Example of calling the confirm function. // You must use a callback function to perform the "yes" action. confirm("Continue", function () { alert("OK

Simple Modal, jQuery 1.8.0 and IE9

怎甘沉沦 提交于 2019-12-02 18:21:43
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 modal in IE9 It appears that the issue can be resolved by changing $.boxModel to $.support.boxModel.

ASP.NET MVC Login Modal problems - redirect goes to modal?

丶灬走出姿态 提交于 2019-12-02 17:20:01
问题 I have the login view showing up in a modal dialog (using jquery simplemodal), and when the user fails login - it works fine - the error goes back to the modal. The problem is when the user successfully logs in - the page is supposed to be redirected and the modal disappears, but the modal is now updated with the entire page :( In order for the modal to look correct - i check to see in the AccountController if the source of the login was Ajax, if so - return a partial view (to display in the

Setting ModalPopupExtender TargetControlID to LIstView Button

坚强是说给别人听的谎言 提交于 2019-12-02 09:08:35
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="Button2" BackgroundCssClass="Background" OnLoad="mp1_Load"> </cc1:ModalPopupExtender> And here is the