jquery-ui

jQuery UI Datepicker inside a Thickbox

孤街浪徒 提交于 2020-01-17 13:48:05
问题 I have the following markup and JS on a web page: http://jsfiddle.net/R2Jj2/ It seems to work well. When I open this content in a thickbox window the datepicker fails to load properly. Any idea how I can get the datepicker to work? 回答1: The datepicker isn't working correctly because it's probably calling stuff within the onLoad function. Try Colorbox.js, it has an onComplete specifically for handling this. http://colorpowered.com/colorbox/ JavaScript/jQuery is not working inside of ColorBox.

Attempting to use JQuery to change an img src of draggable object when dropped

 ̄綄美尐妖づ 提交于 2020-01-17 08:30:54
问题 Basically, I have .dragme (object being dragged), .dropzone1 (place to be dropped at) and an image I want .dragme to become once it has been dropped. So far I have this $(".dropzone1").droppable({ accept:".dragme", drop: function() { alert("DROPPED"); } }); So, that code works, once .dragme has been dropped in place I get the alert. But I've tried using .attr to change the image source of .dragme in place of where the alert is currently (the alert also works if I put it into the below code,

Which JS file to be included to use the function of dialog

倾然丶 夕夏残阳落幕 提交于 2020-01-17 08:16:44
问题 I want to open a dialog box for confirmation on click of a button. For that I am using the following code $('#dialog-box').dialog({ show : 'drop', .... where #dialog-box is an ID for button. Now I am getting an error: Uncaught TypeError: Object [object Object] has no method 'dialog' Which js File need to be included so that this error is removed 回答1: The .dialog() function is part of JQuery UI. Here's a library from Google's CDN. To make sure that you get everything that you need for JQuery

Which JS file to be included to use the function of dialog

此生再无相见时 提交于 2020-01-17 08:16:32
问题 I want to open a dialog box for confirmation on click of a button. For that I am using the following code $('#dialog-box').dialog({ show : 'drop', .... where #dialog-box is an ID for button. Now I am getting an error: Uncaught TypeError: Object [object Object] has no method 'dialog' Which js File need to be included so that this error is removed 回答1: The .dialog() function is part of JQuery UI. Here's a library from Google's CDN. To make sure that you get everything that you need for JQuery

jQuery 1.7.1 ButtonSet in IE8 not consistently firing the change event

岁酱吖の 提交于 2020-01-17 08:02:50
问题 Seeing a problem with a jQuery UI buttonset in IE8 only. Under IE 8, the buttonset does not consistently fire the change event. <!DOCTYPE html> <html> <head> <link href="http://ajax.aspnetcdn.com/ajax/jquery.ui/1.8.16/themes/south-street/jquery-ui.css" rel='stylesheet' type='text/css'> <script src="http://ajax.aspnetcdn.com/ajax/jQuery/jquery-1.7.1.js"></script> <script src="http://ajax.aspnetcdn.com/ajax/jquery.ui/1.8.11/jquery-ui.js"></script> <script language="javascript"> $(document)

Activate button when two datepickers fields have values

≯℡__Kan透↙ 提交于 2020-01-17 06:08:32
问题 My Question derivate from this post I would like to disable a submit button until two input are filled in with a datepicker. I have no trouble doing it with standart text input but it's not working with my datepickers. I strongly suspect it's about the datepickers id's. First is an example of what I want to do (without datepickers). Then what I'm trying to do with datepickers. With text input (working) : Body : <form method=post> <input type="text" id='first_name'> <input type="text" id=

Fire javascript function when ctrl+p is pressed

大城市里の小女人 提交于 2020-01-17 04:29:06
问题 I need to destroy a jQueryUI tabs when somebody tries to print the page. I can't hide it with CSS as I need the data from these tabs. Can anyone help/point me in the right direction with this? Perhaps there are other ways of achieving the same results? By destroy i mean: $('#tabs').tabs("destroy"); This has to work on IE7/8, as that is the browser used in the company. Solution (Thanks to @Phil ): //Destroys the tabs for print window.onbeforeprint = destroyTabs; //Remakes tabs after printing

I can't read jQuery-UI widget factory options from a privat method

非 Y 不嫁゛ 提交于 2020-01-17 04:16:06
问题 I'm new with the jQueryUI widget factory, therefore it may be silliness what I'll ask. I'd like to create an ajax tooltip where I can set the url of the ajax call through an option but this option is not readable in the _mouseOver method which contains the ajax call. (function($) { $.widget("ui.tooltip", { options: { url: '' }, _create: function() { alert(this.options.url); //it works this.element.bind({ mouseenter: this._mouseOver }); }, _mouseOver: function() { alert(this.options.url); //it

how to permanenlty remove a div using jQuery

余生颓废 提交于 2020-01-17 03:49:10
问题 I was trying to remove a certain div element from my HTML using jQuery I saw this Use jquery to remove a div with no children, the jquery remove methods work perfectly fine but the problem is of Persistence, Actually i want to permanently remove that div for that person, i was storing this in cookies but the problem is this remove method doesn't actually remove the code so when I parse through the code to store it using the cookies i store the removed code also. is there any way i can achieve

Value set in the hidden field is not reflecting in document ready function

北城余情 提交于 2020-01-17 02:56:26
问题 I am not able to retrieve the values from hidden field. Sometimes I am getting values & sometimes its coming empty. Please assist. Also let me know can we store a C# arraylist in a hiddenfield? My HTML looks like this... <input type="hidden" id="hdnSelectedContactID" value="@Model.Contact.ContactID" /> <input type="hidden" id="hdnSelectedAddressList" value="@Model.Contact.AddressList" /> $(document).ready(function () { _contactID = $("#hdnSelectedContactID").val(); _addressList = $("