modal-dialog

FireFox textarea issue in modal dialog

随声附和 提交于 2019-12-13 01:39:24
问题 I've got a textarea inside a jQuery UI modal dialog. I tried changing the textbox value like this: 1) $('#textarea').val('test value'); 2) $('#textarea').text('test value'); Both of these work in all browsers. Except in Firefox it only works ONCE. When calling to either of these once again with a new value, the textarea value remains unchanged. No matter if this is while the modal dialog is open or prior to opening it (it opens with the textarea id="textarea" as part of the content - so

Modal window javascript css overlay

懵懂的女人 提交于 2019-12-13 01:35:17
问题 Right now I have to click the link to open a modal window. I don't know how to make this thing to loading without having to click the link. Can anyone please show me how to do this? Thank you! <!DOCTYPE> <script type="text/javascript"> function overlay() { el = document.getElementById("overlay"); el.style.visibility = (el.style.visibility == "visible") ? "hidden" : "visible"; } </script> <style type="text/css"> body { height:100%; margin:0; padding:0; } #overlay { visibility: hidden; position

Failure invoking a modal window through jquery in Yii

青春壹個敷衍的年華 提交于 2019-12-13 00:28:16
问题 I tried to add modal window to my yii app. For this I use jquery from the framework. Yet, It does not work with jquery (1.8.3) from the framework: framework/web/js/source The error is: Uncaught TypeError: Object [object Object] has no method 'modal' In this line: $('#dataModal').modal().css({ width: 'auto', height: 'auto', }); (see the full code below). The same happens when I exchange modal() to dialog(). Yet, when I try to upload the latest jquery (1.10.2) through googleapis by registering

Manipulate IE with VBA and a modal form

自古美人都是妖i 提交于 2019-12-12 23:42:51
问题 I'm trying to automate the uploading of an excel document to a particular webpage. I can't link it as it requires an account. There is a form with a an browse section (of type=file so I can't just set the value) and an upload button that uses the value of that input. I can navigate to click the browse button, and I can click the upload button, but when I click the browse button a file explorer window called "Choose File to Upload" pops up and means I can't interact with any other IE window

C# Winforms: Multiple top level windows and ShowDialog()

你。 提交于 2019-12-12 19:08:51
问题 I have a Winforms application that uses show multiple top-level windows: Form1 form1 = new Form1(); form1.Show(); Form2 form2 = new Form2(); form2.Show(); Application.Run(); Inside one of the event-handlers in Form1, I would like to be able to show a modal dialog: Dialog dialog = new Dialog(); dialog.ShowDialog(form1); without suspending the other top-level window. Is this possible? 回答1: You'd need to run each top-level window on its own STA thread to achieve that, I believe. 回答2: There is a

I have added an OnPaint() function to my dialog class but its not getting called after dlg.DoModal()

纵饮孤独 提交于 2019-12-12 18:17:46
问题 Can anyone please help me understand how to override OnPaint() for a dialog class derived from CDialog . Here is the code: ColorImageDlg *pDlg = NULL; pDlg = new ColorImageDlg; pDlg->DoModal(); delete pDlg; I'm overriding OnInitDialog() and it's getting called. But while overriding OnPaint() it is not getting called. Can any one please help me fixing it? 回答1: First of all what is the point of creating the instance of the dialog on heap? You can simply do: ColorImageDlg dlg; dlg.DoModal(); You

Modal forms hidden by fsStayOnTop forms

六眼飞鱼酱① 提交于 2019-12-12 18:16:09
问题 I have a form (TBigForm in the example below) which allows to manipulate some complex data and needs additional information to be shown. I put this info in a fsStayOnTop form (OnTopForm in the example) to ensure it's always visible but can be moved out of the way if necessary. Now when some user action in TBigForm shows a modal form this often gets hidden behind OnTopForm which makes the app look frozen. How can I avoid this? (Searching yields many, many hits but I wasn't able to distill a

Jquery functions not working in a modal of Bootstrap

筅森魡賤 提交于 2019-12-12 16:16:20
问题 I use Bootstrap v2.X in my proyect and I want to open a file external using modal function. First, the code I should use is: <a href="view_graphics.php" class="btn btn-warning btn-large" data-toggle="modal">Graphics</a> but it doesn't work for me. Then I use: <a href="view_graphics.php" id="graphics" class="btn btn-warning btn-large">Graphics</a> and I put code Jquery: $('a#graphics').click(function(e) { e.preventDefault(); var url = $(this).attr('href'); if (url.indexOf('#') == 0) { $(url)

Open bootstrap modal in new tab

廉价感情. 提交于 2019-12-12 16:12:22
问题 Is there anyway to open bootstrap modal in new tab after click middle mouse button (or just simply click right mouse button on item and click "Open in new tab")? Expected behaviour: User can open modal in same tab by clicking left mouse button on item. User can also click middle mouse button (scrollbar) to open modal in new tab. I can do something similar (link below), but I can't handle case with modal , is it even possible to somehow pass modal to new tab? JSFiddle: http://jsfiddle.net

Communication between JOptionPane buttons and a custom panel

走远了吗. 提交于 2019-12-12 12:08:17
问题 I have made a multiple input dialog by building a JPanel with the fields I want and adding it to a JOption pane JMainPanel mainPanel = new JMainPanel(mensaje, parametros, mgr); int i = JOptionPane.showOptionDialog(null, mainPanel, "Sirena", JOptionPane.DEFAULT_OPTION, JOptionPane.PLAIN_MESSAGE, null, new String[] {"Aceptar", "Cancelar"}, "Aceptar"); However I'm having trouble with the buttons, because some of the fields are required. How can I make the "Ok" button to be enabled once every