modal-dialog

Error window show modal in MVVM WPF

Hi guys I have implemented my MVVM error message as a message dialog that subscribes to error messages via a mediator class, so that other viewmodels can notify it if any errors occur. When an error occurs, I set the visibility attribute in the viewmodel to Visible, to display the error window. This is all bound in the Error window fro...

Opening an about box using MVVM pattern

I'm working on a new WPF application and I'm trying to stay as close to the MVVM pattern as I can. My XAML files right now have no codebehinds, and all my interactivity is achieved using Josh Smith's RelayCommand class and commands in my ViewModel classes. This worked great until I started working on the housekeeping tasks, such as an ...

how to detect what triggered the close event in jquery ui dialog

Hello, I have Create and Cancel buttons as part of a jquery-ui modal dialog. I want to do certain thing after closing the dialog only if the user clicks "Create". If they click "Cancel", or "X" or press Esc, I want to do something else. Is there a way to pass parameters to the close event handler or some other way to detect what caus...

How can I return one or several values to my event method ?

I'm still working with my Local Modal Dialogs (LMD). See this question for more information. It works fine now for simple cases, but in sometimes there is a result in the dialog that I want to notify the caller. As the call is asynchronous with Show() I cannot simply get the result after the call. So my question is how can I return one ...

Making a CDialog visible

I'm trying to get a DialogBox with a check box to appear. I added it to the resource file, created the dialog template, and added the class and event handler for the dialog. As I understand it, now I just need to create an instance of the class and call DoModal(). So, I've gone back and done some investigating and played with the cod...

Use ajax validation with javascript submit in nyroModal modal window

I have a form (signup.php) that pops up in a nyroModal window when I click a button: <input value="Edit" class="nyroModal" type="button" href="signup.php"> I would like to use some form of AJAX validation (to check if the user name has been taken, for example) before submitting the form. I had the following in mind: When the user cl...

Modal custom sheet not closing

Hi Guys I am trying to display a custom modal dialogue box and am doing it the following way: EncPasswordSheet is of IBOutlet NSWindow * type. @implementation EncryptionPasswordSheet -(id)init { return self; } (void)showCustomDlg:(NSWindow *)window { if (!EncPasswordSheet) { [NSBundle loadNibNamed: @"EncryptionPasswordDlg" ow...

Modal Popup Issue

I am creating a Modal Popup page(ModalPopup.aspx) on click of a Link Button from Javascript. popupURL = popupURL + id(Query String Message); var modalFeatures = "center: yes; dialogHeight: 675px; dialogwidth: 750px; dialogTop: 25px; dialogLeft: 150px; center: Yes; resizable: NO; Menubar: No; dialogscrollbars: NO;"; var returnValue = w...

Asp.net & JQuery: Showing a Dialog Window when a Form fails validation

I want to show a modal dialog/pop-up window when the user has not filled in a text field on the page, instead of using an error text field on the page. If the required text field is filled in, I want the submit button to work as normal (aka call the onClick function), but if it's not filled in, I want a dialogue window/modal pop-up to s...

jQuery Ajax success not being invoked

Hi, 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 origi...

Show input dialog in WinForms

I'd like to show an input modal in my WinForm application. I have looked around the web, but haven't found a good pattern for doing this. I understand I'd have to create another Form, and use the ShowDialog method. ...

Javascript acting differently on different hosts

I'm using Lightwindow v2 in a Symfony project to create a modal window (here is the plugin I'm using). The modal window works perfectly on my local wamp server. But when I access the page from my remote AWS server, the "greyed out" background element of the lightwindow is too short--it covers the part of the screen that is initially vis...

Is there a way to auto-hide a always-on-top modeless dialog when the parent opens a modal dialog?

My C# Winforms app has an always-on-top modeless find dialog. Since the user has access to the parent window while the modeless find dialog is open they can choose to open a modal dialog as well. Since the modeless dialog is always-on-top it obscures the modal dialog, but it is not possible for the user to close the modeless dialog at th...

tab order in dialog box

I'm using an old version of Visual Studio that provides only the 'interactive' method for setting tab stops. Is there anyway to clear all the tab stops before setting them? Or anyway to exclude a given control from having a tab stop? Added 10-sept-2009 Part of my problem was confusing tab stop order and tab stops. I naively assumed s...

How do I make a jQuery dialog button with a hyperlink?

In jQuery//dialog you can make a button like this: dialog({ buttons: { "Ok": function() { $(this).dialog("close"); } } }); Can I make this button with a hyperlink to somewhere instead? ...

Find out programmatically if a process is demanding user input

How can I programmatically (in C#) determine, if ANOTHER foreign application (native, java, .NET or whatever...) is currently demanding user input? Can this be done fully in Managed code? What I'm looking for is the implementation of: static Boolean IsWaitingForUserInput(String processName) { ??? } By demanding user input I mean ...

ALT + TAB is not working after displaying MessageBox on modal dialog...

ALT + TAB is not working after displaying MessageBox on modal dialog... I've three projects (P1, P2 and P3) under one solution file. P1 contains P1Form.cs, P2 contains P2Form.cs. Detail of these files are as follow: P1Form.cs contains one button which shows the Message box from MessageBox.Show() method. P2Form.cs contains one button...

Modal Popup for Selecting an Option [jQuery]

In my application I want to present a list of choices for a user to pick from in a modal popup. I'll be using the value they select in the 'parent' page. I've looked into nyroModal, but none of the examples include a return value after the modal closes. I'm assuming this is because its opening up the content with a new HTTP request, wh...

Selenium - dialog box

When the browser launch is initiated by SeleniumRC, a dialog box always comes to ask for username/password to login to our proxy server (however, it is prepopulated with username/password, all has to be done is just press the OK button). selenium.open("/"); selenium.type("q", "selenium rc"); selenium.click("btnG"); selenium.waitForPageT...

ASP.NET MVC Login Modal Dialog/lightbox

I was hoping to create a lightbox/modal dialog for login into my website which is built with asp.net mvc. However the only way i can think of is to put logic into the onClick events for the hyperlinks when linking to restricted sections. I would prefer it so I could still use the Authrisation action filter, and when you click on a link t...