jquery-plugins

jQuery autocomplete: How to show an animated gif loading image

痴心易碎 提交于 2019-12-18 10:19:08
问题 I'm using the jQuery AutoComplete plugin combined with ajax. Do you know how can I show a progress indicator while the ajax search is performed? This is my current code. <script type="text/javascript"> $("#autocomplete-textbox").autocomplete('http://www.example.com/AutoComplete/FindUsers'); </script> <div> <input type="text" id="autocomplete-textbox" /> <span class="autocomplete-animation"><img id="ajaxanimation" src="../img/indicator.gif")"/></span> </div> The FindUsers URL returns a user

Older version conflicting with newer version of jquery

有些话、适合烂在心里 提交于 2019-12-18 09:53:19
问题 I am stuck in a major issue with jquery plugins. I have some code written with jquery 1.7.1, now I started using bootstrap and that need 1.9.1 jquery plugin or higher. After including this version "https://ajax.googleapis.com/ajax/libs/jquery/1.11.2/jquery.min.js ", my previous functionality stopped working. Then I used both versions but no luck again. I don't want to rewrite my previous code to make it compatible with new version. Please provide solution I am getting many errors like:

How can I Clone Chosen Plugin

一个人想着一个人 提交于 2019-12-18 09:52:19
问题 I wanted to use http://harvesthq.github.com/chosen/ witch jquery clone function: <script type="text/javascript"> $(function(){ var removeLink = ' <a class="remove" href="#" onclick="$(this).parent().slideUp(function(){ $(this).remove() }); return false">remove</a>'; $('a.add').relCopy({ append: removeLink}); }); </script> <form method="post" action=""> <div id="cloner"> <p class="clone"> <script type="text/javascript"> jQuery(document).ready(function(){ jQuery(".chzn-select").data(

TableTools plugin export buttons are not working

我怕爱的太早我们不能终老 提交于 2019-12-18 09:48:09
问题 I am using TableTools for export functionality but it is not working. Only print buttin working and shows pop up and hide. I have got suggestions from this thread but did not given clear idea to me. Below is my implementation $('#example').dataTable({ "sDom": 'T<"clear">lfrtip', "oTableTools": { "sSwfPath": "copy_csv_xls_pdf.swf" } }); I have kept .swf file in the same folder where my server page is exist. Also I tried with "sDom": 'T<"clear"><"H"lfr>t<"F"ip>', . But not worked for me. Also I

Custom values to Context Menu Items in JQgrid

狂风中的少年 提交于 2019-12-18 09:35:17
问题 I am using this link from Oleg and Demo to create context menu. Is there a way to pass some dynamic values to each row apart from rowId. May be one way is to set hidden values for each row and get those hidden column values but not sure how to implement this functionality. Thanks for any help or suggestions.. loadComplete: function(data) { // Fix the Grid Width... fixGridWidth($("#grid")); // Context Menu $("tr.jqgrow", this).contextMenu('contextMenu', { bindings: { 'abc1': function(trigger)

How to apply the grayscale jquery plugin to a background image?

独自空忆成欢 提交于 2019-12-18 09:25:39
问题 I want to use the jquery-grayscale that converts images colors to their respective grayscale. Use it is very simple, identify the image and apply the plugin: $('#my-icon').grayscale() But how to do it if the image is defined in a css file as a background-image ? #my-icon{ background-image:url('../Images/my-icon.png'); } Thanks.- EDIT: Of course any other way to convert to grayscale these icons is useful too. Any idea? 回答1: I suppose you are using this plugin? Looking at the code it only seems

How to change the querystring when I submit my GET form using JQuery?

删除回忆录丶 提交于 2019-12-18 06:13:39
问题 Suppose that I have a simple form in my page like this : <form action="/properties/search" method="GET" id="form_search"> <p> <label for="price">Min price:</label> <input type="text" name="min_price" id="min_price"> </p> <p> <label for="price">Max price:</label> <input type="text" name="max_price" id="max_price"> </p> <p> <input type="submit"> </p> </form> When I submit my form, I have the following url : http://.../properties/search?min_price=100000&max_price=200000 I want to change this url

Validation of bootstrap-select using Jquery Validate plugin

一笑奈何 提交于 2019-12-18 05:00:17
问题 I am facing problem to validate select which is beautified using bootstrap-select.js plugin using jquery validate plugin. bootstrap-select.js is expecting class selectpicker and following one line of code: $('.selectpicker').selectpicker(); for beautifying select of html. However it is causing problem in validations using jquery validate plugin. The select in not at all validated unless and untill class selectpicker in not removed. Once class is removed then validations are properly performed

How can I set Fullcalendar options dynamically

孤街醉人 提交于 2019-12-18 04:34:28
问题 How can I set the minTime and maxTime options after the calendar is created? I tried the following, which doesn't work: $('#calendar').fullCalendar('option', 'minTime', 7); $('#calendar').fullCalendar('render'); 回答1: I don't know if it is still relevant but I can change the options with the following statement: example for selectable: $('#calendar').fullCalendar('getView').calendar.options.selectable = false; $('#calendar').fullCalendar('render'); // rerender to see visual changes Though it's

Get text from field on keyup, but with delay for further typing

大城市里の小女人 提交于 2019-12-18 03:16:23
问题 I have a form which is submitted remotely when the various elements change. On a search field in particular I'm using a keyup to detect when the text in the field changes. The problem with this is that when someone types "chicken" then the form is submitted seven times, with only the last one counting. What would be better is something like this keyup detected - start waiting (for one second) another keyup detected - restart waiting time waiting finishes - get value and submit form before I