modal-dialog

How to implement “confirmation” dialog in Jquery UI dialog?

冷暖自知 提交于 2019-11-26 11:59:39
I am try to use JQuery UI Dialog to replace the ugly javascript:alert() box. In my scenario, I have a list of items, and next to each individual of them, I would have a "delete" button for each of them. the psuedo html setup will be something follows: <ul> <li>ITEM <a href="url/to/remove"> <span>$itemId</span> <li>ITEM <a href="url/to/remove"><span>$itemId</span> <li>ITEM <a href="url/to/remove"><span>$itemId</span> </ul> <div id="confirmDialog">Are you sure?</div> In JQ part, on document ready, I would first setup the div to be a modal dialog with necessary button, and set those "a" to be

C# OpenFileDialog Non-Modal possible

◇◆丶佛笑我妖孽 提交于 2019-11-26 11:35:01
问题 Is it possible to create/have a non-modal .net OpenFileDialog I have a UI element in the main dialog which always need to be available for the user to press. 回答1: No, OpenFileDialog and SaveFileDialog are both derived from FileDialog, which is inherently modal, so (as far as I know) there's no way of creating a non-modal version of either of them. 回答2: You can create a thread and have the thread host the OpenFileDialog. Example code is lacking any kind of synchronization but it works. public

How to change MahApps.Metro dialog content template width?

為{幸葍}努か 提交于 2019-11-26 11:18:18
问题 I would like to change the base template of the MahApps.Metro dialogs (or create a new dialog type), because I would like to show them in a narrow login window. Right now almost all the second words in the message are in a new row, but there are nice big spaces on the right and the left side, which I would like to reduce. I\'ve found in BaseMetroDialog.xaml that the message dialog is divided into three parts vertically: 25% space on left side, 50% for the content and 25% space on the right

How to use CKEditor in a Bootstrap Modal?

自作多情 提交于 2019-11-26 11:06:07
问题 If I use the CKEditor plugin in an HTML page based on a Bootstrap template, it works great, however if I insert the editor on a Bootstrap Modal like this <!-- Modal --> <div class=\"modal fade\" id=\"modalAddBrand\" tabindex=\"-1\" role=\"dialog\" aria labelledby=\"modalAddBrandLabel\" aria-hidden=\"true\"> <div class=\"modal-dialog modal-lg\"> <div class=\"modal-content\"> <div class=\"modal-header\"> <button type=\"button\" class=\"close\" data-dismiss=\"modal\" aria-hidden=\"true\">×<

How to have jQueryUI dialog box dynamically load content

空扰寡人 提交于 2019-11-26 10:32:31
问题 I love jQueryUI\'s dialog boxes. However, there doesn\'t seem to be a way to dynamically load content built-in. I guess I have to use some other approach to achieve this? Will iframes load content only when they\'re made visible? Is that the right way to do this? I\'m open to other dialog box mechanisms if they\'re more suited for loading the content only when they\'re first opened. 回答1: This isn't hard to do -- I wouldn't start messing with iframes for this alone. How about something like

How do I make modal dialog for a Page in my WPF-application?

纵然是瞬间 提交于 2019-11-26 10:23:36
问题 I have a WPF Window which has a among other controls hosts a Frame. In that frame I display different pages. Is there way to make a dialog modal to only a page? When I\'m showing the dialog it should not be possible to click on any control on the page but it should be possible to click on a control on the same window that is not on the page. 回答1: If I am correct in interpreting your message, you want something that works similar to what Billy Hollis demonstrates in his StaffLynx application.

Position of navigation bar for modal view - iOS7

微笑、不失礼 提交于 2019-11-26 10:17:36
问题 In a navigation controller, you automatically get the correct colour and position of a navigation bar as expected. like this But in modal view, when you drag in a navigation bar, you can position it right at the top, which is too close to the carrier / battery info. So you can drag it down, guess how far so it matches the position of the automatically created one, but then you have a colour discrepancy. I have tried changing status bar settings in IB, doesnt make a difference. Is there a

Showing a Google Map in a modal created with Twitter Bootstrap

一个人想着一个人 提交于 2019-11-26 10:14:38
问题 I\'m trying to insert a Google map into a modal using Twitter Bootstrap. The modal shows up with the shape of the map present, but only part of the map is displayed, the rest is gray. Upon resizing the screen the map always shows up correctly, although centered in the wrong place. I\'ve searched and found suggestions such as calling the map\'s resize event, or setting the max-width of the map image to none, but none of these suggestions have helped so far. It seems like the map is failing to

Example for login screen modally based on storyboard

混江龙づ霸主 提交于 2019-11-26 09:29:13
问题 I am learning ios/ xcode and at a roadblock. I have a tabbarcontroller+navigation based design. I need to present a login screen if user is not logged in. Here is the basic heirarchy. The login page needs a navigationBar (as the tutorial I followed puts a \"Go\" button on the bar. LoginController: (LTController.h,.m) Main View:TabBarController> NavigationController>View1>View1a NavigationController>View2 I read lot of posts here on modal view, delegate method, etc. Most of them are code

jQuery UI Dialog Box - does not open after being closed

心已入冬 提交于 2019-11-26 09:18:05
问题 I have a problem with the jquery-ui dialog box. The problem is that when I close the dialog box and then I click on the link that triggers it, it does not pop-up again unless I refresh the page. How can I call the dialog box back without refreshing the actual page. Below is my code: $(document).ready(function() { $(\'#showTerms\').click(function() { $(\'#terms\').css(\'display\',\'inline\'); $(\'#terms\').dialog({ resizable: false, modal: true, width: 400, height: 450, overlay: {