All Questions
361
questions
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 ...
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
269
views
Changing jquery UI dialogue titlebar HTML from span to H2
I am using a JQuery UI dialogue and it renders the below HTML. I want the span tag to be replaced with H2 tag, do we have any way to do this
<div class="ui-dialog-titlebar ui-widget-header&...
3
votes
0
answers
145
views
jQuery load() has 200 response code, but desired contents not loaded in selected element
In one JSP file I have an element:
<div id="mydialog"></div>
I have an anchor tag <a href='#' id="#newentry">
On the click of the anchor tag I have some jQuery ...
0
votes
0
answers
128
views
Input fields of jquery dialog box freezes
I have a dialog box with a button and checkbox on it. On open function of dialog box i have following code:
$('#dialog1').dialog({
modal: true,
open: function (event, ui) {
$('#...
0
votes
1
answer
507
views
Jquery Dialog not loading in aspnet MVC
i want to be to display child records when i click a button . The data is displayed as a table.
I have created a partial view that will display the records.
I have created a controller action method ...
0
votes
1
answer
285
views
When the jQuery dialog is on I do not want the user to interact with the background
If the user clicks an external link, the jQuery UI dialog appears with "ok" and "cancel" buttons and when they hit "ok" it should take them to the external site.
Everything is working as expected, ...
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
2
answers
1k
views
How to replace window.alert('') with jQuery UI dialog - merging two scripts
I am looking for some help with merging two jquery scripts. Both attached examples are working with basic functionality, but I do not have enough experience in order to combine them into one script. ...
0
votes
1
answer
153
views
Scrollbar freezing when there is lots of data in jQuery dialog
I have a jQuery Dialog box which is populated by an AJAX call to a controller action in ASP.net MVC. This AJAX call returns more than 13,000 rows of data which is bound to a table inside the dialog.
...
-5
votes
1
answer
1k
views
Is there a Vanilla JS alternative for the jQuery UI Dialog widget [closed]
Is there a Vanilla JS replacement for the dialog widget provided by jQuery UI?
It should at least allow to contain arbitrary markup, so alert or prompt are not an option.
0
votes
1
answer
380
views
jQuery UI - Prevent dialog from dragging above div
Is there a way to prevent jQuery UI dialog from going above or below #top div? I'm not looking for z-index solution, but rather something like offset from the top. In this case dialog should be unable ...
2
votes
1
answer
64
views
Datepicker on jQuery UI dialog fails on second opening of dialog
I have a static page with a link that opens a modal Dialog that loads a sub-page. The sub-page includes an input with a Datepicker widget.
When I first open the Dialog, the sub-page loads and the ...
1
vote
1
answer
763
views
Changing Jquery UI Dialog Button to a form submit button
I'm trying to use one of the Jquery-ui Dialog buttons as a form submit button. I want to use the submit button because it triggers HTML5's form validations where form.submit() would not.
Currently, I'...
0
votes
1
answer
1k
views
Jquery-ui Tabs Open dialog box on tab click (stop code)
This is my code. I am trying to stop the clicked tab from loading until i get a response from the dialog box. Also if i click cancel, i wan to return to the previously selected tab. currently the way ...
2
votes
2
answers
3k
views
Jquery modal not working properly
I am trying to use jquery ui modal but it doesnot working as my needs ie, i want to show the data only inside the modal but here it shows before i clicking the button .
function pop_up()
{
var ...
0
votes
0
answers
198
views
How do I manually close a jquery-dialog?
This is my pop up:
I make a popup with javascript but I dont know how to close it, I already make a close button like this [x], but I want make another close button when user click "no" ...
1
vote
1
answer
910
views
jQuery-ui dialog don't show on click event
My jQuery-ui dialog don't show when clicking on a submit button
html :
<input id="pdfsub" type="button" name="pdfsub" value="PDF">
Javascript
$(document).ready(function() {
$("#...
0
votes
1
answer
262
views
Open Jquery-ui dialog in another <script> tag
is it possible to initialize and open the jquery-ui dialog in a different "script" tag , like this :
Specification : Working with EJS (Nodejs express templates)
<script>
$(document)....
0
votes
1
answer
1k
views
Initializing and opening Jquery-ui dialog
i'm trying to load a jquery-ui dialog when the page loaded .the page content is loading but the dialog doesn't show.
<script>
$(document).ready(function() {
$("#loginfailed")....
0
votes
1
answer
244
views
Can not open jQuery UI dialog multiple times - test case included
I have prepared a simple test case demonstrating my problem -
I use a jQuery UI button to open a jQuery UI dialog:
However this works only once. On subsequent button clicks I get the error:
...
1
vote
1
answer
1k
views
jQuery UI setting absolute dialog position does nothing
I want to set the absolute position (x and y) of a jQuery UI (1.12.1) dialog. By all accounts I should be able to do that like so (although the jQuery docs inexplicably do not mention this syntax, ...
1
vote
1
answer
458
views
jQuery $.ajax and jQuery UI dialog: Uncaught TypeError: Illegal invocation?
I am trying to send an AJAX request when I click a jQuery UI dialog Save button and this is how I am doing it:
$(function () {
var comment_dlg = $('#add_comment_dialog');
var quote_id = $('#...
3
votes
2
answers
746
views
Mysterious mouse event closes jQuery UI dialog
This is obviously a SSCCE.
So we are tasked with writing the front-end of a missile launch control system. We opt for a Spartan layout given that this is deadly serious: just a text input box and a ...
3
votes
1
answer
1k
views
create a new node in jstree using jquery dialog
I want to create a node in the jstree grid, when clicking create i want to popup a jquery dialog box in which i want to enter the node name and save it. How to implement jquery dialog popup with ...
0
votes
1
answer
261
views
JQueryUI Dialog: 'auto' width does not consider vertical scrollbar
I have a JQueryUI Dialog with the width property as 'auto'. Everything works fine except in cases where the content extends beyond the dialog's height: A vertical scrollbar appears (as is intended), ...
1
vote
1
answer
339
views
How to use jQuery dialog() instead of confirm() from within C# code?
I am a Frontenddeveloper without further knowledge of C#, so please excuse my maybe stupid question. I am currently trying to use jQuery UI Dialog to replace the common JavaScript alert() and confirm()...
1
vote
0
answers
89
views
Why server side code is not firing from JQuery dialog in ASP.net?
I am using Jquery-ui version v1.12.1
I have a button in my form. Once it click, that will make a jquery-ui dialog box. Then I have a one textbox and one asp:button.
when user click the button, it'...