modal-dialog

Trap mouse clicks outside of modal dialog

I have an application written in C# targeting .NET Compact Framework 3.5, running on Windows CE. I would like to provide a custom visual cue in a modal dialog if the user tries to interact with its owner window without closing the dialog first. Is it possible for a modal dialog to receive notifications of mouse clicks on its owner win...

Invalid postback or callback argument

This question seems to have been asked before, but I feel like my situation is slightly different. I have a page that contains a gridview. When a button is pressed to edit one of the records in the gridview, the button first executes some client script that pops up a modal window for the purposes of editing (set using .onClientClick)...

How pass data to a form inside jquery UI dialog modal windows?

Hi all, I'm trying to use the jquery UI dialog component to display a form; which I successfully did. However I'm at lost on how to retrieve data to this form inside the dialog window. Is it possible? The example shown on jquery website only shows static messages. ...

What's your favorite jQuery modal plugin?

I'm looking for a jQuery plugin to show a modal-style popup consisting of a few paragraphs of text and a picture, which the user will view and close. So far, my search has turned up jqModal, BlockUI, and SimpleModal. Do any of these stand out? Would you suggest something else? (This is for use in a PHP site - no framework involved.) ...

Changing the default modal result of a form.showModal

In my Delphi application I have a custom Yes, No, Cancel dialogue, which will be called from the main form to confirm saving the changes made to the current file edited. This would normally be achieved by messageDlg() but I wanted this dialogue to have customised looks, so I am trying to achieve this functionality by case myDialogue.sh...

When would I need to call form.ShowDialog(IWin32Window) rather than form.ShowDialog()?

I have some code, which calls the form.ShowDialog(IWin32Window) overload rather than the form.ShowDialog() one, but which passes in the current active window as the parameter. Using the other overload seems to leave the behaviour intact. Is it safe to switch to the simpler overload? When would I want to pass in the IWin32Window paramete...

Why does calling form.Hide() cause flicker, but form.Close() not?

I have a .net form that is created in Excel (I don't know if that's relevant), and when I call form.Hide(), Excel flickers briefly. If I instead call form.Close(), the flicker is absent. Why does the Hide() version cause flicker, while the Close() version not? ...

How to prevent multiple dialogs to appear at the same time?

How can I avoid, that a dialog is shown, when there already is one on the screen? Details: In my application many Timers are running. If a fatal error occurs, all the affected threads are going to show a JDialog (by swingx.JXErrorPane.showDialog()), which is not desired. Even if I cancel all the running Timers, still some Dialogs will a...

AJAX Jquery UI Dialog window loaded within Ajax style Jquery UI Tabs

The ajax tabs work perfectly well. It's pretty straightforward with that part. However, getting the ajax UI Dialog modal window to trigger off of a link has been un-succesful. Any help in this would be appreciated. ...

IE7 modal dialog scrollbars overlap content

Here's the offending code. To test it, save it in a file called "test.html" and click the button in the top-left corner. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"&gt; <html> <head> <title>Blarg</title> <style type='text/css'> body { margin: 20px; } ...

Modal Dialog vs Lightbox - who wins?

In my mind, both modal dialogs and lightboxes serve the same purpose. It seems that there is a scale of sexy (but javascript-heavy) on one end, and economical (but boring) on the other. What drives your decisions to use one over the other? Or, is there a better way to ask the user for complex data without navigating to another page? ...

ASP.NET MVC modal dialog/popup best practice

I am looking for the most standard way to archive modal dialogs in ASP.NET MVC. An example of what I am trying to do is when I select an item from my "list" page, I want the "details" page to be a popup over the list and NOT a new page. I'm not looking for a hack. I want it to be a solution that follows the ASP.NET MVC pattern. I wou...

How do you get the ESC key to close a dialog in Winforms?

Often when using software these days, the ESC key will close a dialog without persisting any changes I've made. I like that especially because even though the dialog may have a cancel button on it, I don't necessarily want to reach for the mouse or tab over to the cancel button. It's a nice clean way of saying "Oops, didn't meant to do t...

jquery dialog with rounded corners

Hi, I am having trouble implementing this, I have tried several variations of the corner() function from jquery.corner.js. Can someone please paste a sample of what the code would look like, and where it should reside, in the page which is calling the dialog or the dialog itself? Thanks, Natasha ...

Is there a UI unit test framework that can test interactions with modal dialogs (via showModalDialog)?

I'm trying to do some unit/integration tests between pages of my ASP.NET site but can't seem to find any tool that can work effectively with modal dialogs generated by the showModalDialog command (FF3, IE). Does anyone have experience testing these annoying things? Update: @bbmud was right--WatiN supports modal dialogs very well. Her...

Interact with main window while modal window is active

I want to be able to interact with main window of applications like Firefox or Word, while modal window is active. What I mean by interact is to: Copy text Move window Close window (by pressing x button) Are these possible under Windows environment? ...

Is a Modal Confirm Box Using JQuery Possible?

Looked around quite a bit, and can't seem to find a JQuery solution (maybe its just a limitation of JavaScript) for this: <a href="somelink.php" onclick="return confirm('Go to somelink.php?');">Click Here</a> In the above example, when a user clicks on the link, it will only go to its href if the user clicks OK in the confirm box....

How to implement "confirmation" dialog in Jquery UI dialog?

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 ...

Can't set DialogResult in WPF

I show a WPF window using ShowDialog() from the calling window. The window opens and is modal as expected. However, in my OK and Cancel button's click events in the dialog window I set this.DialogResult = true (or false) respectively, and the value does not get set. The window closes as expected, but DialogResult is still null. Is this...

jquery UI dialog open is mind-numbingly slow in IE7

Have a large amount of HTML, but where I thought the bottleneck would be is incorrect: it's when I'm opening the dialog, not when I'm building the string of HTML (~35ms), nor when I'm appending it to the dialog container div (~50ms). When calling dialog("open") below In FF, I'm consistently getting 1800+ ms, IE7 is around 17000(!) ms. ...