All Questions
492
questions
71
votes
22
answers
256k
views
How can I position my jQuery dialog to center?
I have tried following code, but it only positions dialogs left upper corner position to center, and that makes element to be aligned to right. How can I center dialog to real center which counts ...
49
votes
9
answers
190k
views
Custom "confirm" dialog in JavaScript?
I've been working on an ASP.net project that uses custom 'modal dialogs'. I use scare quotes here because I understand that the 'modal dialog' is simply a div in my html document that is set to ...
12
votes
4
answers
16k
views
Refresh jquery ui dialog position
I'm using a jquery dialog.
The content of this dialog is dynamic so the height change when the dialog is open.
$("#a_div").dialog({ width: 400 });
The dialog initially appears center in the page. ...
0
votes
1
answer
88
views
jquery dialog window opens with datepicker text already focused
I know this is a tough one to understand....
I have a button that opens a dialog window. The buildPurchaseOrder url is just a form.
$('#poDialog').dialog({
width:1000,
height:1000,...
72
votes
16
answers
116k
views
jQueryUI modal dialog does not show close button (x)
I'm using a jQuery modal dialog in my ASP .NET MVC 3 application. It works fine except for that there is no close button showing in the top right corner. How can I add this?
$("#dialog-modal")....
12
votes
5
answers
13k
views
jQuery UI dialog without a title bar but keep the close button
I want to remove the titelbar of the jQuery dialog. But I want to keep the close (cross) button there.
I found this question:
jquery UI dialog: how to initialize without a title bar?
The answers there ...
-1
votes
1
answer
53
views
Generic jqueryui dialog
I have a number of places in my website where I have a jqueryui dialog. In many cases the jquery code is almost identical. Typical differences are for title, width, and height.
The dialog is attached ...
0
votes
3
answers
1k
views
jQueryUI setting options in a variable - syntax for effects
$(function(){
var dialogOpts = {
autoOpen: false,
height: 400,
width: 600,
position: ["center", "center"],
...
35
votes
8
answers
98k
views
How can you disable scroll bars in the jQuery UI dialog box?
Does anyone know if there is a way to disable scroll bars in the jquery dialog box? The content that I have in the div is 300 px but the dialog is set to 200px. It automatically puts the scrollbars ...
2
votes
3
answers
11k
views
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>
&...
2
votes
1
answer
304
views
When jquery-ui dialog is open, unable to set focus or enter text in a <div> outside the dialog
I have a search box which should be accessible even when the jQuery-ui dialog is open.
This was working when I used jQuery-ui 1.11.4 version.
After updating it to jQuery 1.13.1 version, I have started ...
0
votes
1
answer
46
views
Pass dialog title variable in jQuery Dialog
I need to pass the title of the jQuery dialog variably.
I am trying to use the "data" property like this:
jQuery( "#dialog" ).data( 'the_title', 'John Doe Dialog' ).dialog( "...
32
votes
13
answers
42k
views
jQuery UI datepicker opens automatically within dialog
I have a datepicker which is used within the jQuery dialog object. The source of the dialog's content is loaded using .load(). Within the dialog I created a script which creates a datepicker for the ...
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 ...
0
votes
1
answer
163
views
JQ UI Dialog Position Default not the same Desktop to Mobile
I have a page that has table with a lot of data and in several place embedded buttons in some columns that bring up dialog boxes for the user to interact with the data on that row.
On the a desktop ...