jquery-ui-dialog

JQuery dialog not working on IE 9.0, but good in Chrome, need to run in IE

时光毁灭记忆、已成空白 提交于 2019-12-25 07:50:06
问题 I have two classic asp files, default.asp which creates a dialog and opens with load default2.asp default2.asp shows some controls and a link which calls a javascript function which does some activity and close the dialog This thing is working fine in Chrome but not in IE 9.0, can any one have idea why? will be highly appreciated. Thanks <!doctype html> <html lang="en"> <head> <meta charset="utf-8" /> <title>Default.asp</title> <link rel="stylesheet" href="/jquery/themes/base/jquery-ui.css" /

jQuery UI dialog modal set to true doesn't work for radiobuttons

≯℡__Kan透↙ 提交于 2019-12-25 00:03:21
问题 When the dialog is set to modal it should disable all input elements, but I tried a simple example with a textbox and a radiobutton. When the dialog is opened the text-input is disabled as expected, but i still can check the radiobutton. I used the example from the jQuery-ui demo and a simple html with just a input-textbox and the radio. <html> <head> <title>Test</title> </head> <body> <div id="dialog-message" title="Download complete" style="display:none"> <p> <span class="ui-icon ui-icon

jQuery Still Submits Ajax Post Even When “Cancel” is clicked on Confirm Dialog

谁说胖子不能爱 提交于 2019-12-24 22:03:07
问题 I have the following script I use for deleting users. The script works if I confirm that I want to delete the user but if I choose to cancel, the script still processes the ajax submission and deletes the user. I thought by setting an empty else{} statement would act as "do nothing" but apparently I was wrong there. $("#user_delete_submit").click(function(){ var dataString = $("#frm_user_delete").serialize(); if(confirm("This cannot be undone, are you sure?")){ $.ajax({ type: "POST", url: "

How to replace window.alert('') with jQuery UI dialog - merging two scripts

百般思念 提交于 2019-12-24 19:28:33
问题 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. What I would like to achieve is that a message dialog from attached code B would replace window.alert(str); from code A. I think that function renaming will be required, but have no idea how to copy/adopt it. Please find attached both codes examples bellow. Code A <!DOCTYPE html> <html> <head>

Div disappears from original place after closing the dialog

早过忘川 提交于 2019-12-24 15:51:31
问题 I am trying to use jquery dialog. My requirement is to open a dialog box from a content which is already present on page. But when I am closing an dialog box that element disappears from page. I want it to be present on the same place after closing the dialog. Can somebody guide me on this? Thanks Subhash 回答1: When we call for dialog, jquery takes that div, appends it to new Dialog div, and this dialog div is appended to body and then it remains over there. Now whenever a dialog function is

JSF Validation error is not displaying before close Jquery dialog

ぃ、小莉子 提交于 2019-12-24 12:26:03
问题 I have a Jquery dialog to get user input. <div id="icPopup"> <td> <h:selectOneMenu id="selectICType" value="#{sessionBean.icStartLetter}" required="true" requiredMessage="Select IC type" style="width:100px;"> <f:selectItem itemValue="" itemLabel="- Select -"/> <f:selectItems value="#{sessionBean.icStartLetterTypes}"/> </h:selectOneMenu> </td> <td align="center"> <h:inputText id="icNumber" value="#{sessionBean.icNumber}"></h:inputText> </td> <td> <div id="mainBtnGrey" class="mainBtnLeftAlign">

Jquery-UI: dialog is not a function error

白昼怎懂夜的黑 提交于 2019-12-24 11:54:16
问题 for example I call it via newDialog("This is title !", "this is my content"); function newDialog(mytitle, mycontent){ var $dialog = $('<div id="mydialog"></div>') .html(mycontent) .dialog({ autoOpen: false, modal: false, title: mytitle }); $dialog.dialog('open'); return false } This is the error Error: $("").html(mycontent).dialog is not a function What does this mean ? I have made sure all the jquery-UI, and jquery js files are fully loaded using firebug plugin to confirm all of this. I don

Textbox gets back focus upon timepicker close

你离开我真会死。 提交于 2019-12-24 10:38:13
问题 I'm using the timepicker plugin for jquery. Once users selected a date+time and click on the "Done" button, which basically just closes the dialog, I want the textbox where datetime is set to gain back focus (the current behavior of the plugin is to blur out focus). This is because on this page I have a set of textboxes and their tab orders are set sequentially. I need the datetime textbox to gain back focus to continue the tab order. otherwise the tab order will restart from the first text

ASP.Net MVC jQuery Dialog Partial

江枫思渺然 提交于 2019-12-24 09:37:34
问题 Perhaps someone out there can help me understand what's going on. I'm using jQuery UI dialog() to display html partials in my project. When a user clicks Add New it displays the add client form. However, when the user clicks on the Add or Cancel buttons in the dialog I get an error, "$(this).dialog is not a function". If I remove the open event and display a static form in the dialog the buttons the work fine. ClientsController public ActionResult ajaxCreateClient() { Client c = new Client();

JQuery Modal Dialog doubles height in Chrome, IE, Safari. Ignores maxHeight

一笑奈何 提交于 2019-12-24 08:49:32
问题 Here is a screenshot of the problem (in IE): http://img401.imageshack.us/img401/7580/screenield.jpg The above effect - the doubling in height of the dialogue window, with the content (a JW Player) pushed to the bottom - happens in IE8, Safari and Chrome. The window does not launch at all in IE9. Works no problem in FF. I am using JQuery 1.7.1 with UI version 1.8.18, with the default packaged CSS for the dialog. I have tried not specifying the height, and then specifying a maxHeight, both to