Skip to main content

All Questions

211 votes
20 answers
148k views

jQuery UI Dialog - missing close icon

I'm using a custom jQuery 1.10.3 theme. I downloaded every straight from the theme roller and I have intentionally not changed anything. I created a dialog box and I get an empty gray square where the ...
194 votes
11 answers
286k views

jquery-ui-dialog - How to hook into dialog close event

I am using the jquery-ui-dialog plugin I am looking for way to refresh the page when in some circumstances when the dialog is closed. Is there a way to capture a close event from the dialog? I know ...
0 votes
2 answers
142 views

$(this) not set in the jQuery UI dialog "open" option

At the bottom of a word game there are 4 buttons, which open jQuery UI dialogs with certain words from the game dictionary: I am trying to simplify the game code by creating the following function: //...
0 votes
1 answer
65 views

JavaScript doesn't apply on jQuery UI dialog

$("input, select, textarea") .addClass("ui-widget ui-widget-content ui-corner-all") .css({ padding: ".2rem .5rem" }); So, I use the ...
0 votes
1 answer
53 views

Why are the changes immediately reset when a dialog window is opened?

I want to open a dialog that loads the code of another page. This works so far. Now I want to set a select of the loaded dialog to one of its options and then disable (lock) it. But every change I ...
23 votes
3 answers
31k views

How to combine two javascript FormData objects

I need to combine two FormData objects and post them using XMLHttpRequest. One of the forms contains file input. var formData = new FormData(document.forms.namedItem('form-ship')); var poData = new ...
2 votes
1 answer
7k views

Jquery UI Dialog multiple dialog creation issue

I have searched almost every single thing here and over the internet but i can't get this code to work. I am trying to get dialog box open when user click on php generated link which loads another ...
1 vote
2 answers
4k views

jQuery modal dialog not centering with position flag present

I have a site here... I didn't create a fiddle because I'm not sure how to replicate the issue with ajax. When the site loads, there's an auto-popup that brings in an ajax request. It's way off ...
16 votes
2 answers
26k views

Close all open dialog boxes? (JQuery)

How can I close all opened dialog boxes in jQuery? The situation is next: I have a simple page without dialogs. It has some buttons what open it owns dialogs. When I click on a button I need to close ...
1 vote
2 answers
1k views

Trigger a jQuery Event Handler Assigned in a Different Code Block

I have a case where a click handler is defined/assigned in one jQuery code block (file) and I want to trigger it from another click event defined/assigned in a different jQuery code block. How can I ...
0 votes
2 answers
151 views

JQuery - How to target correct button in multiple JQuery cloned Dialogs?

I am cloning multiple instances of a JQuery Dialog: $('#button').click(function() { $('.dialog').clone().appendTo('body').removeClass('dialog').dialog({ width: '300', height: '200'...
0 votes
4 answers
789 views

Pickadate Time Selector Disappears on Click on JQuery UI Dialog

If you open a time picker in a jQuery dialog using the classic theme and try to use the time picker scroll bar to move down the time list, the time list disappears. You can see the issue here: http://...
8 votes
5 answers
51k views

How to Minimize/Maximize jQuery Dialog?

I am using jQuery UI Dialog to show a video. The video is working fine. What I want to do is minimize the Dialog-element just like in an OS or something like that. A small icon like (" - ") that ...
0 votes
1 answer
44 views

How can I close a JQuery dialog using a pre-defined function?

I want to make my dialog close after the following function: function decide(category, choice, price, bool) { data.push([category, choice, price, earn]); } I have tried playing around with JQuery's ...
79 votes
12 answers
226k views

jQuery UI Dialog Box - does not open after being closed

I have a problem with the jquery-ui dialog box. The problem is that when I close the dialog box and then I click on the link that triggers it, it does not pop-up again unless I refresh the page. ...

15 30 50 per page
1
2 3 4 5
25