modal-dialog

jQuery UI Dialog individual CSS styling

痴心易碎 提交于 2019-11-27 20:02:23
I'm looking to style a modal dialog (using UI Dialog) with unique CSS that is separate from the traditional dialog, so in essence to have two jQuery dialogs that each look different. I've styled one, for example, <div id="dialog_style1" class="dialog1 hidden">One content</div> and another <div id="dialog_style2" class="dialog2 hidden">Another content</div> Unfortunately I've noticed that using separate CSS to style parts of the dialog box, like .dialog1 .ui-dialog-titlebar { display:none; } .dialog2 .ui-dialog-titlebar { color:#aaa; } doesn't work because .ui-dialog-titlebar does not have the

Modal image galleries - multiple images

耗尽温柔 提交于 2019-11-27 19:56:38
I am currently trying to make an image gallery based on the code here: http://www.w3schools.com/howto/howto_css_modal_images.asp This code works fine for a single image, however it doesn't work when you try and add more. I believe this has to do with the javascript using IDs, but when I try to use classes in place of IDs that code will not work. Has anybody had any luck using this example from W3 Schools to create a working gallery? Thanks! :) Here's the HTML and javascript from the body of my code. <div class="container" id="gallery"> <h1>Gallery</h1> <!-- Trigger the Modal --> <img id=

Javascript to stop HTML5 video playback on modal window close

限于喜欢 提交于 2019-11-27 19:36:24
I've got a html5 video element on a modal window. When I close the window the video continues to play. I'm a total newbie to JS. Is there an easy way to tie a video playback stop function to the window close button? Below is my html page: <!DOCTYPE html > <html lang="en"> <head> <meta charset="utf-8" /> <title>Modal Test</title> <script type="text/javascript" src="jquery.js"> </script> <script type="text/javascript"> $(document).ready(function(){ $("#showSimpleModal").click(function() { $("div#simpleModal").addClass("show"); return false; }); $("#closeSimple").click(function() { $("div

Why are modal dialog boxes evil? [closed]

懵懂的女人 提交于 2019-11-27 19:16:58
Re the recent question at when are modal dialogs truly necessary? . WHY are modal dialog boxes evil? Is it because people don't read them anyway? Because they are often implemented so poorly? Something else? About half of the answers so far are addressing the flaws of confirmation dialogs, not of modal dialogs. While the vast majority of confirmation dialogs are modal, this does not mean that the two terms are synonymous. A mod al dialog is one which puts the program into a specific mode and does not allow you to do anything which doesn't correspond to that mode while it is open. In the most

How can I reuse one Bootstrap modal div?

喜欢而已 提交于 2019-11-27 19:11:36
I'd like to be able to have a number of different links on a page reuse one modal div via Bootstrap's modal plugin: <h3>This button shows a modal (<code>#utility</code>) with text "Phasellus <em>tincidunt gravida</em>..."</h3> <br /> <a id="file_attach" data-toggle="modal" href="http://fiddle.jshell.net/jhfrench/6K8rD/show/" data-target="#utility" class="btn">Modal 1</a><br /> <h3>This button should invoke the same modal (<code>#utility</code>), but fill it with text "Phasellus <em>egestas est eu</em>..."</h3> <br /> <a id="file_attach" data-toggle="modal" href="http://fiddle.jshell.net

timed modeless dialog

心已入冬 提交于 2019-11-27 18:53:05
Is there any way to show a modeless dialog--a dialog that allows the user to interact with whatever was on the screen before the dialog but also allows the user to interact with the dialog if pressed? I know of Toasts, but they don't allow interaction with the popup. I know of Dialogs, but they're modal and don't allow interaction with the background. I know of Notifications, but I want something that is visibile on screen. I basically want to be able to be playing a game or something and a popup appears that I have a new email or something. I can click it to view my email, but I can wait for

Calling Primefaces dialog box from Managed Bean function

a 夏天 提交于 2019-11-27 18:48:05
Hi I have a managed bean with some functions , based on some condition in that function I will like to call a dialog box Managed bean function goes as public String editStudent(){ setReadOnly(false); setButton(true, true, true, false, true, true,true); LockItem lItem; if(selectStudent !=null){ lItem = (LockItem) services.getbyId("LockItem", condition); if (lItem == null){ System.out.println("Student Avalibale for process :::"); studentRedirect(); return "studentEdit.jsf?faces-redirect=true"; } else { //To show dialog from here System.out.println("Student Not Avalibale : Locked By " + lItem

WinForms programming - Modal and Non-Modal forms problem

╄→гoц情女王★ 提交于 2019-11-27 18:45:31
问题 I have a problem with modality of the forms under C#.NET. Let's say I have main form #0 (see the image below). This form represents main application form, where user can perform various operations. However, from time to time, there is a need to open additional non-modal form to perform additional main application functionality supporting tasks. Let's say this is form #1 in the image. On this #1 form there might be opened few additional modal forms on top of each other (#2 form in the image),

AngularJS modal dialog form object is undefined in controller

ε祈祈猫儿з 提交于 2019-11-27 18:41:22
We have a page that opens a modal dialog with a form like below. However when we hit the controller that should handle the form action, the form object is undefined and I am too much of an Angular newbie to understand why... This is the parent page controller holds the function to open the modal dialog: app.controller('organisationStructureController', ['$scope', ..., '$modal', function ($scope, ..., $modal) { $scope.openInvitationDialog = function (targetOrganisationId) { $modal.open({ templateUrl: 'send-invitation.html', controller: 'sendInvitationController', resolve: {$targetOrganisationId

How to get Twitter Bootstrap Modal's invoker element?

痞子三分冷 提交于 2019-11-27 18:16:22
I have got a a element for invoking modal: <a class="btn" data-toggle="modal" data-target="#myModal" href="http://some-url" >Launch Modal</a> And, say this is my modal: <div class="modal hide" id="myModal"> <div class="modal-header"> <button type="button" class="close" data-dismiss="modal">×</button> <h3>Modal header</h3> </div> <div class="modal-body"> <p>One fine body…</p> </div> <div class="modal-footer"> <a href="#" class="btn" data-dismiss="modal">Close</a> <a href="#" class="btn btn-primary">Save changes</a> </div> </div> I can bind functions to events fired by modal: $('#myModal').on(