dialog

Showing custom dialog in after an Android AlertDialog-Click

Hi, i've build an AlertDialog which shows three items: AlertDialog.Builder builder = new AlertDialog.Builder(myActivity); ... builder.setItems(items, new DialogInterface.OnClickListener() { public void onClick(DialogInterface dialog, int item) { if(item==0){ //do stuff} ...

How to open form action in Jquery Dialog

I have a form: <form style="display: inline;" action="/player.php" method="post"> <input type="hidden" name="recname" value="'.$row['name'].'"> <input type="hidden" name="recordingdesc" value="'.$row['description'].'"> <input type="hidden" name="reclink" value="$_SESSION['customerid'].'-'.$row['timest...

[GTK+] How can I get text from a dialog?

I need to get text from an entry in a dialog, like a login dialog (get the user and password), I've tryied to use 'gtk_entry_get_text' but I did something wrong or there's something else I could use... I'm programing in C... please help me... ...

JQueryUI: how to keep the form inside the dialog when there are validation errors?

Hi, I have a form inside a JqueryUI dialog that is showed when i click a link. If i try to submit the form and there are validation errors, the form is not showed inside the dialog. So what should i do to keep the form inside the dialog when there are validation errors? This is my code: <script type="text/javascript"> $(function ()...

Pass data via ajax to dialog Jquery

I am trying to post data from my form to a jquery dialog that loads external content. I am serializing the form data which works (appears in the url) but the dialog won't open: $("#wavajax button").click(function() { $.post({url: 'player/index.php', data: $("#wavajax").serialize(), success: function (data) { ...

$this.attr() stops Jquery dialog from opening

I am using the following code to post my form data to player/index.php and open it in a dialog. Because I have multiple of these forms in my table I need to use $(this). But now it doesn't open in a dialog. New code (doesn't open dialog but display data in url): $("#recordingdialog").dialog({ //other options, width, height, etc......

how to open jquery ui dialog automatically when the page loads?

I need my dialog to open when the page is loaded automatically. What is the way to do it using jquery. Without any user interaction to open it. I tried this code but it dint work <html> <head> <link rel="stylesheet" type="text/css" href="css/style.css" media="screen,projection" /> <script type="text/javascript" src=...

Delphi - How to prevent Forms/MsgBoxes to move under prior form?

Hi! Many times we experienced after Windows 98 era that some dialogs are lost their Z-Order, and moved back to prior form. For example: Dialog1.ShowModal; Dialog1.OnClickButton() : ShowMessage('anything'); When MessageBox appears, sometimes not got focus, it is moved under Dialog1. The users confused on it, because they are say: ap...

Android Custom Dialog NullPointerException

I cannot for the life of me figure out why I'm getting a NullPointerException. When a user clicks on a particular image, a dialog window is supposed to pop-up and display a larger version of said image: private OnClickListener coverListener = new OnClickListener() { public void onClick(View v) { showDialog(DIALOG_COVER); } }; ...

Dynamic jQuery dialog after data append w/o reloading page. Possible?

Howdy, So I have a page with an enormous table in a CRUD interface of sorts. Each link within a span calls a jQuery UI Dialog Form which fetches it's content from another page. When the action taking place (in this case, a creation) has completed, it appends the resulting new data to the table and forces a resort of the table. This all ...

jquery dialog is clearing my form fields and I need to return a value from a jquery dialog

1.) I have a jQuery dialog that is opened whenever a particular textbox is focused. The dialog's contents are loaded from ajax and the unique ID of the textbox that was focused is passed in the ajax call (like this): $('[name=start_airport[]],[name=finish_airport[]]').click(function(){   var id = $(this).attr('id');   if($('#use_advanc...

Stacking Dialogs in Android

Is there a way to control the relative stacking of Dialogs produced by your own Activity? For instance, there are some more important Dialogs which I would like to ensure are on top and if another Dialog wants to pop up I would want it to pop under the important Dialogs. Example: I want to present to the user an important dialog, Dialo...

Swt file dialog too much files selected?

Hi there, the swt file dialog will give me an empty result array if I select too much files (approx. >2500files). The listing shows you how I use this dialog. If i select too many sound files, the syso will show 0. Debugging tells me, that the files array is empty in this case. Is there any way to get this work? FileDialog fileDialog =...

Android - Dealing with a Dialog on Screen Orientation change

I am overriding the onCreateDialog and onPrepareDialog methods or the Dialog class. I have followed the example from Reto Meier's Professional Android Application Development book, Chapter 5 to pull some XML data and then use a dialog to display the info. I have basically followed it exactly but changed the variables to suit my own XML...

Qt - A login dialog

I want to create a login dialog by inheriting QDialog. I put in subclass named LoginDialog 2 QLineEdits: for login for password. I want to be able to warn the user with a message if the caps lock is ON while he will start to fill passwordLineEdit. Suppose I have a function that tells the current state of CapsLock button. So I want t...

Closing a dialog form closes the application

bool CheckAnswer() { DialogForm dialogForm = new DialogForm(); if (dialogForm.showDialog() == System.Windows.Forms.DialogResult.OK) return true; } The dialog form is invoked by a form created in the main form. When i close the dialog form the application is closed, not just the dialog form! If i invoke the dialog form in othe...

android: showing a progress dialog

I have looked at the Android API and other posts here on stackoverflow, but have not been able to figure this out. My app downloads files to the sd card. I would like to pop a "loading..." dialog while the file is downloading and then have it disappear when the download is finished. This is what i came up with using the android API: Pr...

Android : showDialog not displayer inside onActivityResult after take photo

Hello, When i'm in onActivityResult and i try to show a custom progress dialog, The dialog is not show, but the function is called, but nothing is displayed If i put this dialog in Oncreate it's working i see the dialogbox, Is it possible to show a custom dialog on return of Intent.ACTION_GET_CONTENT / MediaStore.ACTION_IMAGE_CAPTURE T...

Proper Font Browser dialogs

The System.Windows.Forms.FontBrowser is a pretty horrible piece of work. I'd like to write a custom one, but before I re-invent banging-two-rocks-together, I figured I'd ask if anyone knows an intuitive, friendly and above all simple Font Picker which has been proven in the cauldron of the real world? ...

How can Swing dialogs even work?

If you open a dialog in Swing, for example a JFileChooser, it goes somewhat like this pseudocode: swing event thread { create dialog add listener to dialog close event { returnValue = somethingFromDialog } show dialog (wait until it is closed) return returnValue } My question is: how can this possibly work? As you can s...