modal-dialog

Closing a Dialog Box, Opening a New One and it is Grayed out (Colorbox)

$.fn.colorbox({width:"40%", inline:true,href:"#somediv", opacity:"0.50",transition:"none", height:"490px"}); On #somediv above I have a button that once clicked executes the following code: line#45 $.fn.colorbox({href:"http://www.facebook.com", width:"65%",height:"80%",iframe:true}); I see facebook.com however the overlay is grayed ou...

modalViewController present when app opens

Hey im trying to display a modal view controller as soon as my tab bar controller app opens. There is something wrong with the code below, and im 99% sure its the code for this. what do i put for the thing im calling it on? [self presentModalViewController:promt animated:YES]; - (BOOL)application:(UIApplication *)application didFinis...

load jquery function from a href onclick

I have a html table with a column per row with this html code inside the tags: <a onclick="modalDialog(this); return false;" href="javascript:void(0)">17795</a> <div style="display: none;" class="MessageDataDiv"> some text to show up in my jquery modal window when function modaldialog is clicked. </div> And the jquery f...

asp.net mvc 2 validating text inputs on modal windows

hi guys, i am tasked with the job of creating client-side validation on a form in an asp.net MVC 2 application, which has a modal window (the modal exists as part of the wrapping form, it is not a form unto itself). how would i go about providing validation for these text field inputs while the modal is visible, but do not validate whil...

How to do a pop-up window with textfields in Objective-C?

In the iPhone Objective-C app, I want to pop-up a window (which is smaller than the main view, and the app does not stop running) when a button is tapped, with textField for the user to input text, and dismiss it when it is done. This is widely used but I really cannot google the relevant content out. What view should I use to connect i...

C++ - Dialog box question

Hello! This is a more concrete question that is connected with my previous one. I have an application that uses a timer. The code is written the way the my WM_TIMER handler call a DialogBoxParam(...) with some custom message handler (let's call it DlgProc). This is done somewhat the following way: case WM_TIMER: { // Ro...

How do I disable webbrowser window in winform app when dialog is shown

I have a winform app with a webbrowser control embedded in the main form using SHDocVw.dll When dialog is shown I need to disable the browser window. The window class is "Internet Explorer_Server". pinvoke EnableWindow() did not work. What else can be done ? ...

jQuery-ui problem with modal dialog from ajax

Hi I have the following setup: index.html with <div id="container"></div> using anchor method I load different html content into this container. My content contains div for modal dialog "dialog-form" and I initialise it with the custom function from the javascript included in index.html on successful ajax load using the callback $.ge...

Hide jquery dialog on asp.net postback

I feel like this is a stupid questions, but I am finding it hard to get this answered. I only want to show the jquery dialog when the page first renders. After the page renders there are multiple operations that cause the page to postback, but the user doesn't navigate away from that page. How do I disallow the jquery dialog from showi...

Focus element inside iframe when iframe attached to Jquery Dialog

Hi, I have a iFrame which i load into jquery dialog. I want to focus an element inside the iFrame whenever the Jquery Dialog is being opened. Here is the code i am using to attach iframe to Dialog. $("<div id=\"srch" + options.winId + "\" title=\"" + options.windowTitle + "\" style=\"padding-left:0px;padding-right:0px;padding-top:0px...

Simplifying Jquery code HELP!

I am trying to load two modal dialog boxes with Jquery. Both of them load separate pages using ajax. The only problem is that only one of them works. I think I need to simplify my code but am unsure how. <script type="text/javascript"> $(document).ready(function(){ var dialogOpts = { modal: true, bgiframe: true, a...

WatiN two level modal dialog

Hi folks, i am using WatiN lib for automation test. But some case i have to access a modal dialog which is fired another modal dialog. Above code works fine but last line open a modaldialog again. i can not access it with using ie instance.. any idea ? IE ie = new IE("http://localhost/test.htm"); ie.Link("main_lnk1").Cl...

Presenting UIModalViews in Landscap mode

Hello, I'm trying to present some UIModalFormSheets in a my iPad application. It's working without any problems, except one thing: When I have my iPad in landscape mode my modal form sheet is moving to the center of the screen and THEN rotates into the appropiate angle. All I want is to present the modal form sheet in the right angle a...

jQuery modal dialog on ajaxStart event

I'm trying to use a jQuery UI modal dialog as a loading indicator via the ajaxStart, ajaxStop / ajaxComplete events. When the page fires, an Ajax handler loads some data, and the modal dialog shows just fine. However, it never hides or closes the dialog when the Ajax event is complete. It's a very small bit of code from the local server ...

How to build a generic/re-usable modal dialog for WPF following MVVM

I would like to build a generic/re-usable modal dialog that I can use in our WPF (MVVM) - WCF LOB application. I have a Views and associated ViewModels that I would like to display using dialogs. Bindings between Views and ViewModels are done using Type-targeted DataTemplates. Here are some requirements that I have been able to draft: ...

Rails: How do I display flash[:notice] modally

I'm looking for a way to recreate the effect used by stackoverflow to display information about badges awarded etc to users, except I want to use the effect to display my flash messages. In case it's not clear, I'm talking about the way site updates appear at the top of the browser window and stack there until the user clicks the X bu...

Best way to ask for a single field text input on iPad

I want to ask for a single text field input. So my options seem to be: Modal form (too big for one field) Alert box containing text field (against iPad HIG - but try adding a playlist in the iPod application - Apple breaking it's own rules?) Modal popover What are your thoughts guys? i'm leaning towards 3. ...

How to add animation on open of a Jquery SimpleModal?

The animation-enabled example in the SimpleModal site has this animation: 1. Fade in the overlay 2. Slide down the modal div This is the code: $("#the-div").modal({ onOpen: function (dialog) { dialog.overlay.fadeIn('fast', function () { dialog.data.hide(); dialog.container.show('fast', function () { di...

Hot to implement grails server-side-triggered dialog, or how to break out of update region after AJAX call

In grails, I use the mechanism below in order to implement what I'd call a conditional server-side-triggered dialog: When a form is submitted, data must first be processed by a controller. Based on the outcome, there must either be a) a modal Yes/No confirmation in front of the "old" screen or b) a redirect to a new controller/view repla...

jquery ui dialog - live not working?

I'm using this dialog: http://docs.jquery.com/UI/Dialog To open dialog I do it this way: $('a.openModal').live("click", function() { var idArr = $(this).attr('id').split("OpenNote"); var id = idArr[1]; alert($(".modalNote#dialog-modal" + id).html()); $(".modalNote#dialog-modal" + id).dialog('open'); ...