jquery-ui

How to prevent closing the menu after a select?

我是研究僧i 提交于 2020-01-24 11:07:39
问题 I am using the jQuery Autocomplete widget and, inspired by this question in order to prevent closing the menu after select , I came up with this code: $(#input_field).autocomplete({ select : function(event, ui) { // I also tried to run 'ui.item.data( "item.autocomplete" );' and it happens // the same thing (keep reading for more information). ui.item.option.selected = false; }, ... }); It works: the menu is not closed after select. However, I get the following error (in the Firebug console):

How to prevent closing the menu after a select?

China☆狼群 提交于 2020-01-24 11:07:15
问题 I am using the jQuery Autocomplete widget and, inspired by this question in order to prevent closing the menu after select , I came up with this code: $(#input_field).autocomplete({ select : function(event, ui) { // I also tried to run 'ui.item.data( "item.autocomplete" );' and it happens // the same thing (keep reading for more information). ui.item.option.selected = false; }, ... }); It works: the menu is not closed after select. However, I get the following error (in the Firebug console):

How to prevent closing the menu after a select?

谁说我不能喝 提交于 2020-01-24 11:06:26
问题 I am using the jQuery Autocomplete widget and, inspired by this question in order to prevent closing the menu after select , I came up with this code: $(#input_field).autocomplete({ select : function(event, ui) { // I also tried to run 'ui.item.data( "item.autocomplete" );' and it happens // the same thing (keep reading for more information). ui.item.option.selected = false; }, ... }); It works: the menu is not closed after select. However, I get the following error (in the Firebug console):

Jquery draggable: scrolling in droppable using helper 'clone' and appendTo

…衆ロ難τιáo~ 提交于 2020-01-24 10:24:20
问题 I'm suing jquery ui draggable on a list of items that can be dropped on a .droppable list of other items. Here's a jsFiddle to show what I'm trying to do: <div id="container"> <div id="left-pane" class="pane"> <div class="item">Item A</div> <div class="item">Item B</div> <div class="item">Item C</div> <div class="item">Item D</div> </div> <div id="right-pane" class="pane"> <div class="item">Item E</div> <div class="item">Item F</div> <div class="item">Item G</div> <div class="item">Item H<

jQuery sortable post data, but there is no data

天大地大妈咪最大 提交于 2020-01-24 10:04:43
问题 Can anyone tell me what I am missing here. My data seems always to be empty, what am I doing wrong? $(document).ready(function () { $(".nav").sortable({ connectWith: ".nav", axis: 'y', update: function (event, ui) { var data = $(this).sortable('serialize'); // POST to server using $.post or $.ajax alert(data); } }).disableSelection(); }); FIDDLE 回答1: Per the sortable API: If serialize returns an empty string, make sure the id attributes include an underscore. They must be in the form: "set

Overlay covering up a JQuery UI 1.8.2 dialog

点点圈 提交于 2020-01-24 09:52:04
问题 I am using a jQuery UI modal dialog on a JSF page that also has primefaces components inside the dialog div. When I set the modal property to true the overlay covers up the dialog content as well. Here is my dialog definition: if (jQuery("#rangeChoice").val() == 'Custom') { jQuery("#rangeDialog").dialog({ modal: true, draggable: false, minHeight: 375, minWidth: 450, resizable: false, title: 'Create Custom Date Range', closeOnEscape: false, open: function(event, ui) { jQuery(".ui-dialog

jquery UI Draggable in IE10 bug when dragging by scroll bar

馋奶兔 提交于 2020-01-24 07:26:07
问题 I've got a div with a draggable element which works great in all browsers, except in IE10, there is an issue where if you attempt to drag the element by the scrollbar, it will scroll, until you mouseup, in which case the element will snap to the current position of your mouse. I've setup this fiddle: http://jsfiddle.net/Hhja4/1/ If you are using IE10, just click and hold on the scroll bar and then let go. The div will then follow your mouse around even though you don't currently have the

ckeditor property to resize a image

青春壹個敷衍的年華 提交于 2020-01-24 00:34:06
问题 Is there any property in ckeditor that will resize the image after uploading to a specified dimension. for eg: if user uploads a image of 1000*1000 px and doesn't resize it, it can be a massacre. As i am saving and displaying on the same page without refresh using ajax. All i want is to automatically resize image on upload from ckeditor. As well, is there any way that i can find using jquery whether there is any image in the text saved by user, as a user may or may not upload a image, I am

Append jQuery UI dialog to ASP.NET form on document ready

偶尔善良 提交于 2020-01-23 19:47:08
问题 I have jQuery UI dialog with ASP.NET. I wrap a list of check boxes in the dialog. Since, it's an "Edit page", some of the checkboxes are already checked because the data fetched from datatbase when page is first loaded. I have no problem when I click on the link to open dialog, and everything works as expected. However, if I don't click on the link to open dialog, those checkboxes values will not be picked up from code-behind when form is submitted back. I understand because jQuery UI dialog

jQuery UI Multiple Select not working in .aspx page that is content for a master page

好久不见. 提交于 2020-01-23 19:00:29
问题 I'm trying to use this jquery plugin (http://www.erichynds.com/jquery/jquery-ui-multiselect-widget/) on an aspx page with many different gridviews. The page code is within an asp:content tag. I'm placing my select options in an asp:view outside of an asp:gridview. The page uses a master page. I have the multiselect widget working in a blank page, but I can't get it to work with my master page. I've tried adding my css/script links/document.ready() in the gridview I'm using it with. I've tried