modal-dialog

NPAPI plugin hang ui shows after modal dialog popup on firefox

允我心安 提交于 2019-12-11 11:53:40
问题 Here is what I am trying to do: My partner's NPAPI plugin calls a function in my vc dll, My function displays a modal dialog and accepts user input. But after the dialog shows, firefox's plugin-hang-ui will popup after a few seconds and I have to manually close it or the NPAPI plugin will crashes after another few seconds. HANDLE hThread - AfxBeginThread(DialogProc);//dialog diaplays in this thread MsgWaitForMultipleObjects(1,&hThread,FALSE,INFINITE,QS_ALLINPUT); Besides, my dialog will cause

AngularJS modal allow interaction with background

隐身守侯 提交于 2019-12-11 11:52:22
问题 I need to allow users to drag and drop elements from the modal to the background. This is my current modal, it works ok but does not allow me to interact with background elements: var asideInstance = $aside.open({ templateUrl: '/static/calendr/html/aside.html', backdrop: false, controller: function($scope, $modalInstance, events) { $scope.events = events; $scope.ok = function(e) { $modalInstance.close(); e.stopPropagation(); }; $scope.cancel = function(e) { $modalInstance.dismiss(); e

Opening a modal window from an already opened modal window in AngularJS

可紊 提交于 2019-12-11 11:46:45
问题 I am trying to open a modal window from an already opened modal window in Angular JS. Briefly, I have a home page, from the home page which is basically a list page, when a user double clicks on a record in the list, a modal window opens up which has got three buttons - Save, Delete & Cancel. Clicking on the Delete button requires to open another modal window which would let the user to delete that record. Following is the code for the same : home.html : This is the main page having a grid

wicket AjaxLink onclick not responding

荒凉一梦 提交于 2019-12-11 11:26:03
问题 I'm building a website with wicket. I have a modal window that opens from an ajaxlink from the main page. The problem is that when I added a CSS to my HTML code in order to make it more visible attractive, it stopped working. So now, when I click in the AjaxLink that opens the modal window, nothing happens and I can't figure out why. Any Ideas?? This is the code of the AjaxLink: AjaxLink privacyLink = new AjaxLink<Void>("privacylink") { @Override public void onClick(AjaxRequestTarget target)

Prompt a warning message before closing a modal

一曲冷凌霜 提交于 2019-12-11 11:08:44
问题 I have a modal and i closing the dialog on clicking outside the modal dialog using backdrop property . I have a form in modal. If any changes are made in form and click outside the modal i should warn the user about unsaved changes. The code i am using $(window).on('hide.bs.modal', function() { var changed_data = $("#formid").serialize(); if(changed_data!=original_data) { var result = confirm("Are you sure ?"); if(result == true){ $('#dialog').data('bs.modal').options.backdrop = true; } else

How to disable window controls when a modal dialog box is active in TkInter?

一个人想着一个人 提交于 2019-12-11 10:46:50
问题 I am writing a Python application with TkInter. At some point the application ( root ) displays a dialog box ( dlg , which is a Toplevel ). In order to make the dialog modal I use the following code: dlg.focus_set() dlg.grab_set() dlg.transient(root) root.wait_window(dlg) This indeed cancels "custom" events outside the dialog box (like the widgets in the main application window), but it does NOT cancel the window manager events, so that for example clicking on the main application window has

WPF+PRISM How to make the popup window owner as main window

ⅰ亾dé卋堺 提交于 2019-12-11 10:45:55
问题 I am having trouble setting the owner of Popup window to Application Main window. Here what I did. Created a Main Window with custom PopupWindow. <Window x:Class="MainWindow" ... <Window.Resources> <Style x:Key="MessageWindowStyle" TargetType="{x:Type Window}"> <Setter Property="Background" Value="Transparent" /> <Setter Property="WindowStyle" Value="None" /> <Setter Property="ResizeMode" Value="NoResize" /> <Setter Property="BorderThickness" Value="1" /> <Setter Property="SnapsToDevicePixels

CakePHP Modal Window Example

 ̄綄美尐妖づ 提交于 2019-12-11 10:16:11
问题 I'm using cakephp and I'm trying to implement a modal-window for login and singup, similar to the one in Digg.com "Join Digg! - Login". Does anyone knows about a library/plugin/tutorial/screencast or what ever to achieve a "login modal" in CakePHP? By the way I already have working all the registration and authentication process, I just need the a modal example, how can I do that? Thanks! 回答1: The popup on Digg is implemented in JavaScript. It looks like they might have their own code for it.

Modal Popup not working inside UpdatePanel

只谈情不闲聊 提交于 2019-12-11 10:15:36
问题 I have a gridview inside UpdatePanel. One of the column in gridview is link which when clicked should display modal (i am using zurb modal http://www.zurb.com/playground/reveal-modal-plugin). The problem is the modal only gets displayed only once when the link is clicked, the next time when the link is clicked it just refreshes the page. The modal should be displayed everytime when the link inside the gridview is clicked. Modal Script: function popupModal() { $("a.link").click(function (e) {

jQuery Ajax success not being invoked

梦想与她 提交于 2019-12-11 10:07:10
问题 Here is my code, $.ajax({ type: "POST", url: action, data: params, success: function() { alert("Success"); }, error: function() { alert("error occurred"); } }); I have a form inside a modal dialog window, on submission i would like to stay inside the dialog rather than return to original window. I have solved this issue elsewhere by surrounding the contents of the dialog with a div, and then calling #div.load("some page") in the success portion. However, for some reason on this page the