modal-dialog

How to add a warning modal to delete

I have the following MySQL for a delete button. DELETE FROM mytable WHERE id = $id I want to add a jquery modal to confirm to proceed. "Are you sure to delete? Yess | No" If you click YES then it will execute to delete, if it is NO then exit the modal and go back to the page. --Updated-- The id in each ancho is added dynamically. ...

Telling if a .Net app is running as service or app?

How do you tell if a .Net application is running as a Desktop application or running as a service? We are trying to test our application with Fitnesse, which loads the app up as a service then makes calls into it.. but when a modal error box is pushed then it blows up.. I want to put a check to see if it is running in a service and if i...

AJAX in Codeigniter

I'm writing my first Codeigniter web app, and I'd like to use AJAX to pull some info for a modal box. Can somebody guide me through an easy way to incorporate ajax w/ CI? Specifically, the user will click on a link, and instead of being taken to another page, that page will be loaded into a modal box. Thanks! ...

Basic modal code login intergrated in Joomla login form

Hi, I have found a nice code for a basic-modal login dialog. I also have a Joomla website which I'd like to have the basic modal code intergrated to. For a example, please click the link beneath and choose the "login dialog box" link Login Dialog Box This is the HTML Part <!-- #dialog is the id of a DIV defined in the code below -->...

Modify a Delphi DFM resource to close upon showing?

Is it possible to edit a DFM (Delphi's form script format) in such a way that a form closes itself when shown? I don't code in Delphi, so I'm not familiar with how these forms work, but it seems I could put code (but not standard Delphi code as it seems) in the OnShow or OnCreate events of the form. However, after trying several stateme...

Closing a modal popup from vb.net?

Hi, I want to wait for and close a modal form (a popup) from another application, as soon as it appears. I want to do this from VB.NET, but suggestions in C# should be easily translateable. I can hard-code the modal popup's caption in my app, since it's long and unique. What I want to do is simulate either the user clicking on the close...

modal dialog over Activex control

I use jQuery modal dialogs (jQuery UI) for modal popups.It is working fine, until recently we installed an activex plugin. Now, when ever the plug in is activated, this popup goes behind the plugin.Is there any way to show the modal dialog on top of activex plugin ? Browsers: IE7,IE8 ...

How to make a lightbox?: concept

Imagine a lightbox with a beautiful picture inside it and a button somewhere near to navigate to the next picture... When the user clicks the next button, JS does like so: var Image = new Image(); Image.onload = getWidth; Image.onerror = getFailure; Image.src = "http://somewebsite.mr/pics/4.png"; Then when the picture is loaded, JS ...

drag and drop into a dialog

Hi, I am trying hard to make this work! I have a list of images inside a div which i make draggable. I also have a dialog which is triggered (open) when dragging starts. For some reason I cannot drop inside this dialog. I can drop everywhere else on the page except inside a dialog. here is my code: $(document).ready(function(){ ...

NSOpenPanel above a fullscreen NSWindow ?

Hi - I open a window with the following: NSRect screenRect = [[NSScreen mainScreen] frame]; [super initWithContentRect:screenRect styleMask:NSBorderlessWindowMask backing:NSBackingStoreBuffered defer:NO]; int windowLevel = CGShieldingWindowLevel(); [self setLevel:windowLevel]; ......

How do I create Modal dialog in worker thread(Non-UI thread)?

I have written a sample MFC application in which there are two threads: -Main thread ( UI thread) -Worker thread ( non-UI thread) I have a specific requirement to create a Modal dialog in Non-UI ( worker thread). When I create the CDialog object and call DoModal on the same, it works. The dialog gets created and acts as Modal t...

Examples of modal dialogs for comment forms?

I'm looking for examples of actual websites (not articles/demos) that use a modal dialog (like a jQuery dialog) to display comment or contact forms, in order to get some ideas of how I might want to implement similar functionality. I'm having some difficulty finding such sites via search, though. ...

C# screensaver: configuration dialog modal to provided HWND

Hi, I am working on a C# XNA screensaver kit and so far, everything is in place except for the configuration dialog which must be modal to the Screen Saver Settings dialog provided by windows ("/c:<hwnd>" argument). My benchmark is Vistas builtin 3D Text screensaver - my code shall provide the same features and regarding the configurat...

Opening html modal dialog

All, I need to get the contents below on a modal window.I had been trying this for a while today. On modal window opened the background body contents are not accessible.and on reload page the modal popup should close down leavinfg the contents of the text area as it is. <a href="" id="link">Open Popup</a> <table><tr width="10%"><td> ...

How to pass information from pop-up window / modal window to base window in ASP.NET MVC

I'm writing a contact form in ASP.NET MVC. The user will have the ability to attach regular files (using normal file / browse functions) as well as the ability to search for a particular person and attach files related to that person. The first part is simple enough, but the second part is what's giving me headaches. For the second part...

dismissModalViewControllerAnimated doesn't always work?

Hi, What prevents a modal view controller from being dismissed? I've found dismissModalViewControllerAnimated doesn't always work? For example this won't work: SettingsViewController* settings = [[SettingsViewController alloc] init]; UINavigationController *settingsNav = [[UINavigationController alloc] initWithRootViewController:sett...

Jqgrid Modal Popup Problem

Hello all, I've placed two jqgrid fully customizable tables with add, delete, ...etc buttons. Everything works perfect for the first table. But I've problems with the second table. When i click for instance to delete button, the modal confirmation popup doesn't appear at the right location. It appears outside the visible area and i can ...

How do I create multiple but independent modal dialogs in GTK+?

I have the following code that uses GTK+ widget toolkit to display a window with a button. Clicking this button will show a modal dialog. Note that the call to gtk_dialog_run will recursively start another instance of the main loop, i.e. the on_click function will not return until the dialog box is dismissed. I would like to have two of...

DoModal() asserts at very first line

I have an MFC dialog based application created inside Visual Studio 2008. CCalendarWindowDlg dlg; m_pMainWnd = &dlg; INT_PTR nResponse = dlg.DoModal(); When I run the application, DoModal() asserts at very first line INT_PTR CDialog::DoModal() { // can be constructed with a resource template or InitModalIndirect ASSERT(m_lpsz...

Providing auto height and width to dailog in jquery UI modal dailog box.

I am trying to put auto height and width to modal dailog box (provided by jquery UI). But some how the position of my dailog is getting disturbed. it is not coming in center. Everytime i click on the link to open the dailog box , the dailog opens at different position. Could anybody please suggest how to resolve this issue... ...