Tagged Questions
343
votes
18answers
130k views
Remove close button on jQueryUI Dialog?
How do I remove the close button (the X in the top right corner) on a dialog box created by jQueryUI?
38
votes
10answers
42k views
jQuery UI Dialog Button Icons
Is it possible to add icons to the buttons on a jQuery UI Dialog? I've tried doing it this way:
$("#DeleteDialog").dialog({
resizable: false,
height:150,
modal: true,
buttons: {
...
17
votes
3answers
9k views
integrating jquery ui dialog with knockoutjs
I am trying to create knockoutjs bindings for jquery ui dialogs, and cannot get the dialog to open. The dialog element is created correctly, but seems to have display: none that calling dialog('open') ...
4
votes
1answer
14k views
Correctly calling setGridWidth on a jqGrid inside a jQueryUI Dialog
I have a jQueryUI dialog (#locDialog) which has a jqGrid ($grid) inside it. When the Dialog opens (initially, but it gets called whenever it opens), I want the $grid to resize to the size of the ...
43
votes
9answers
29k views
jQuery UI - Close Dialog When Clicked Outside
I have a jQuery UI Dialog that gets displayed when specific elements are clicked. I would like to close the dialog if a click occurs anywhere other than on those triggering elements or the dialog ...
29
votes
11answers
52k views
jquery dialog save cancel button styling
I am using jquery ui dialogs in my application.
How do I style the "Save" and "Cancel" buttons differently in a jquery dialog?
So "Save" is more appealing than the "Cancel".
I could use a hyper link ...
68
votes
10answers
34k views
How can I disable a button on a jQuery UI dialog?
How do I go about disabling a button on the jQuery UI dialog. I can't seem to find this in any of the documentation in the link above.
I have 2 buttons on the modal confirmation ("Confirm" and ...
13
votes
7answers
24k views
jQuery UI: How to use ui-widget-overlay by itself?
I am trying to create an overlay, similar to the one that jQuery UI Dialog uses. I can create the overlay like this:
var $overlay = $('<div ...
5
votes
2answers
18k views
How to have jQueryUI dialog box dynamically load content
I love jQueryUI's dialog boxes. However, there doesn't seem to be a way to dynamically load content built-in. I guess I have to use some other approach to achieve this? Will iframes load content ...
40
votes
3answers
29k views
jquery: How to completely remove a dialog on close
When an ajax operation fails, I create a new div with the errors and then show it as a dialog. When the dialog is closed I would like to completely destroy and remove the div again. How can I do this? ...
4
votes
6answers
9k views
Custom CSS scope and jQuery UI dialog themes
I am using multiple jQuery UI dialog themes on a single page, and I have bug.
[jQuery 1.3.2] [jQuery UI 1.7.2]
Here is a screenshot (vs custom CSS scope):
Alone on the page 1)
vs native 2)
...
17
votes
1answer
6k views
jQuery UI Dialog Buttons from variables
I have variables holding the translated labels for buttons inside a jquery ui dialog.
I cannot fill the button array key with the variable itself, and can't find any way to let it treat my variable ...
5
votes
1answer
5k views
MVC Knockout JS inside JQuery dialog
I am using knockout js on a view to display a list of fields (ie, first name, last name, etc). The fields are listed inside a knockout template using the an observable array. The template contains the ...
9
votes
1answer
10k views
jquery-ui, Use dialog('open') and pass a variable to the DIALOG
I have the following JS:
$('#listeditdialog').dialog('open');
Which opens the following dialog:
$('#listeditdialog').dialog({
autoOpen: false,
resizable: false,
position: ...
2
votes
4answers
14k views
JQuery Clear Form on close
I have the below JQuery Dialog script, I'm trying to find out how to fire off a function that clears the form when I close the dialog.
function clearForm()
{
$(':input','#calcQuery')
.not(':button, ...