modal-dialog

Passing data to Bootstrap Modal without JavaScript

你。 提交于 2019-12-03 21:46:43
I have a grid with image links on my page. When clicking one of them a modal should pop up with the image but in big format. Now I'm trying to achieve this without the use of javascript/jquery but just with data-attributes. At the moment I have this code: <!-- Generating the image link with PHP (laravel) --> <a data-toggle="modal" href="#myModal"> {{ HTML::image("img/$photo->Link", "$photo->Title", array("class"=>"thumbnail col-md-3")) }} </a> <!--The modal --> <section class="row"> <div class="modal fade" id="myModal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden=

iPhone login screen problem

最后都变了- 提交于 2019-12-03 21:45:07
I have a large application. It has a lot of tables and navigation between them. I started a project as a 'NavigationBasedProject' (xcode template). But now I need to add login at the start of the application. So here what I did so far: In 'didFinishLaunchingWithOptions' I added: loginViewController = [[LoginViewController alloc]init]; [loginViewController.view setFrame:CGRectMake(0, 0, 320, 480)]; [self.window.rootViewController presentModalViewController:loginViewController animated:NO]; When user data are valid I dismiss login screen like this: [self.loginViewController

Scriptaculous / Prototype modal window

北城以北 提交于 2019-12-03 20:49:55
I would like to make a modal window using prototype and scriptaculous. I was wondering if there is any site that has a tutorial or if anyone could kinda give me some idea where to start. (I don't want a prebuilt one) thaddeusmt In addition to Control.Window, here are some others I have found: http://okonet.ru/projects/modalbox/index.html (very nice, and free) http://prototype-window.xilinus.com/download.html (looks pretty good) http://dzone.com/snippets/javascript-dialog-box-based (not packaged, just a code snippet) http://www.nickstakenburg.com/projects/lightview/ (slick! but not free) More

changing size of nyromodal window

送分小仙女□ 提交于 2019-12-03 20:36:44
This script waits till user presses the button so nyromdal starts $('.image_upload').nm({ sizes: {minW:10,minH:10 }, modal: false, closeOnClick: false }); Then in after press script, after changing content of nyromodal window I'm trying to change the size of window but it does not changes it immediately so the size remains old, scroll bars appear. And new size affect window only if you close the window and call it back again. This code puts new content into nyromdal window $('.nyroModalDom').html(responseimage); And here we have 2 ways of changing the size. Both work only after close-reopen of

Modal box + checkbox + cookie

偶尔善良 提交于 2019-12-03 20:31:24
问题 I would like to achieve the following: On homepage load, display modal box Within modal box, display a form with a single mandatory checkbox On checking the checkbox, hit submit and close the modal box, proceed to homepage Remember this checkbox tick preference using a cookie On a users return to the homepage, if they have checked the checkbox, the modal box won't display I've been getting somewhere with this: http://dev.iceburg.net/jquery/jqModal In that I can get the modal box displaying on

close one modal and open a new modal with one button

不羁岁月 提交于 2019-12-03 20:26:07
I am using bootstrap and have a one modal that I would like to have a link on to another modal. I can't seem to figure this out and currently I am using the modal.close() and .modal('show') but that is not working. $('a#to3heart').click(function(){ $('#portfolioModal2').modal({onShow: function (dialog) { $.modal.close() $('#portfolioModal1').modal('show'); return false; } }); }); use: $("#modal1").modal('hide'); $("#modal2").modal('show'); see: http://getbootstrap.com/javascript/#modals demo: http://jsfiddle.net/5qCm9/ I had a similar issue and solved it with a generic jQuery solution. It just

CSS/HTML Modal- Using the Escape key/Click outside to close

会有一股神秘感。 提交于 2019-12-03 20:14:10
问题 I have the following modal working, http://jsfiddle.net/kumarmuthaliar/GG9Sa/1/ on my site. It's exactly what I want in terms of ease of use, and function. The only issue I have is how to make the modal close when the user either A) Clicks outside the modal window, or B) Hits the Escape key. Any suggestions? <a href="#openModal">Open Modal</a> <div id="openModal" class="modalDialog"> <div> <a href="#close" title="Close" class="close">X</a> <h2>Modal Box</h2> <p>This is a sample modal box that

How to execute jquery inside a Modal window?

|▌冷眼眸甩不掉的悲伤 提交于 2019-12-03 18:14:43
问题 I need to fire some actions when the state of a textfield is focused. This code works (tested) fine if the textfield its a standard inline element. But it does not work if the textfield is inside a Modal window . I guess that the modal window is hidden at the moment the jquery library is loaded and then the problem. How can I get this working? $('#name').focus(function() { console.log('do something'); }); 回答1: I guess that the modal window is hidden at the moment the jQuery library is loaded

How to change Modal background color to transparent in Objective-C

痴心易碎 提交于 2019-12-03 17:39:16
问题 I would like to have a modal view with a transparent background color, so that the view behind it can be seen by user. 回答1: iOS doesn't support transparency when presenting a view modally. 回答2: Okay, so presentModalViewController doesn't offer this behavior... However it is still possible. I've created a category that works for me (and hopefully you). As an added bonus, it also prevents crashes related to dismissing and presenting modal views at the same time! Header file: // //

nyroModel does not auto resize

别说谁变了你拦得住时间么 提交于 2019-12-03 17:29:16
Using $.nmManual instead of the default .nyroModal . The default nyroModel will resize the model automatically based on the browser window size, but the filters are vague at best when trying to set this. $('.nyroModal').nyroModal(); Default function works fine. $.nmManual('test.html', { modal: true, //doesn't seem to do anything sizes: { minW: 805, //this works minH: 610, }, showCloseButton: false, //also works anim: { resize: true, //both these do nothing showTrans:true, } I nyromodel site makes it quite hard to understand exactly what parameters the resize , def , and showtrans actually use.