dialog

JavaScript: Confirm dialog box that shows value from a text box

Hi. Is there a way to have a confirm dialog box display the value a user typed in a text box on a form? (For example, if the user types 100.00, I'd like the dialog box display a message something like, "Confirm Amount. Click OK if $100.00 is the correct amount.") ...

How to get the instance of the dialog (like DatePickerDialog, ProgressDialog, TimePickerDialog) after it pop up

the precondition: I'm working on the android automated test, so we can not touch the source code of app, but just test it. the question: How to get the instance of the dialog after it pop up? After we get the instance of it, it will be so convenient for the further operation, like directly set the value of it, instead of send the k...

Adding jQuery modal dialog in an accordion

Hi folks, I have just started using jQuery in the past couple of weeks and am really enjoying it - damn fantastic thing! I have one problem at the moment though. Here's the basic structure of my page: <body> <div id="accordionContainer"> <div class="accordionSectionHeader"> Some header label... </div> <div class="ac...

jQuery Dialog, closing when click outside

I know I can use the following to close the dialog box by clicking outside: $('.ui-widget-overlay').click(function() { $("#dialog").dialog("close"); }); But how do I change this so it works for every dialog box, ie I want to say close any dialog box as we have multiple on a page and would be easier to have one line of code? ...

Javascript confirmation dialog box takes three clicks of "cancel" to close.

The following code is guilty of generating this unusual problem: <script type="text/javascript"> $(document).ready(function () { $('.deleteRow').click(function (event) { event.preventDefault(); if (confirm('Delete?')) { var $t...

Android Number Picker Dialog

Does anyone have any dialogs that will allow a user to pick a number within a certain range? It seems like this would be a fairly common need, but I can't find a common dialog for it and I'd rather not have to spend the time creating my own. Any help? ...

jQuery - modal dialog form loaded via .load() multiple times and select list breaks

Hi, I am loading content with jquery.load() (1.4.2), which includes a form that I turn into a model dialog. When I open the dialog, I dynamically populate a form select list. It works the first time I load the content, but on subsequent loads it breaks and will only return the last selected item from the previous load. (I also think i...

Modal "Loading..." dialogs not good UI decision?

I've read on Reto Meier's blog that he doesn't recommend the use of modal "Loading..." dialogs in Android applications. Is this a general consensus among developers? If I have a login screen what should I display when the user tries to sign in? Until now, I have used a "Signing in..." indeterminate progress dialog. Should I use the app...

SimpleModal OSX Style

At the moment i have this code: <!-- modal content --> <div id="osx-modal-content-1"> <div id="osx-modal-title">OSX Style Modal Dialog</div> <div class="close"><a href="#" class="simplemodal-close">x</a></div> <div id="osx-modal-data"> <h2>Hello! I'm SimpleModal!</h2> <p>SimpleModal is a lightweight jQuery Plugin w...

jquery dialog: dragging dialog with iframe inside

When dragging a jquery dialog with an iframe inside , the drag stops if the mouse goes over the frame contents while dragging. It seems that the iframe takes automatically the focus. is there any way to prevent this and make drag normal? var iframe=document.createElement('IFRAME'); $(div).append(iframe) .dialog(); ...

Android Floating popup 'window' options?

I wish to have an 80% by 80% sized view popup, grey out the background and take focus? In essence it's a "sub" view that is model. Strategies ? ...

Question about changing dialog box layout

Hey, I just got started designing dialog boxes and windows forms, and I had a basic question. When you use something like a windows installer, it has a next button, and when you click it the dialog completely changes layout in moving on to the next step. My question is, is this done by loading a completely new dialog box and getting rid...

Creating a custom dialog in Android

Hi All, I am trying to create a custom dialog in Android. But whatever I tried to do, I am not able to change the width of the dialog. It just remains the same. The following is the view that I am setting as the content for the dialog. <RelativeLayout android:id="@+id/current_stats" android:layout_width="wrap_content" android:layout...

Can I ellipsize a dialog title?

I have an Activity running as a Theme.Dialog. Can I set its title to an "ellipsize" style? Currently, the text is being populated in onCreate() with setText(). There's no this.setEllipsize() like on TextView. Or, is my only option to write a Custom Dialog and set the title style there? I'd like to know if that's possible before heading ...

Best way to handle dialog population?

In my application, I have a large structure of many objects and children. I'm designing a set of property sheets that you can open to inspect a specific object (and it's base classes) so you can modify them directly. What's the best strategy for populating these dialogs? The current design is to test the current object on dialog open,...

android loading webview in dialog

i want to open twitter auth in my webview rather then opening in browser, any good tutorial how to play with webview in dialog and loading it inside dialog? ...

How to Really start LOADING a page (in a jQuery modal/dialog window) AFTER clicking a button??

Dear folks, A question that hasn't popped here before: How to start downloading / truly loading a page (html or php) inside a jQuery modal/dialog window, AFTER a link or button is clicked? See, currently i blieve that all .load() url objects HAVE to be inside the page and load is actually just opens them, doens't really start fetching ...

How do I close a modal form right after opening it?

From my application I wish to open a dialog, which should close immediately (after a short message) under some circumstances. I've tried this: procedure TForm2.FormActivate(Sender: TObject); begin if SomeCondition then begin ShowMessage('You can''t use this dialog right now.'); close; modalresult := mrCancel; end; end...

How to add two edit text fields in an alert dialog

Hello, I am trying to use an alert dialog to prompt for a username and a password in android. I have found this code here: if (token.equals("Not Found")) { LayoutInflater factory = LayoutInflater.from(this); final View textEntryView = factory.inflate(R.layout.userpasslayout, null); AlertDialog....

jQuery: fading in modal dialog

hi all, is it possible to smoothly fadein a jquery modal dialog? (can't find anything in the docs). i've tried fadeTo but didnt help. thanks in advance ...