jquery-plugins

DataTables CDN fallback expressions

老子叫甜甜 提交于 2019-12-25 04:43:28
问题 What are the CDN fallback expressions for the DataTables script and its extensions? https://cdn.datatables.net For example (source): jQuery --> window.jQuery jQuery.UI --> window.jQuery.ui Modernizr --> window.Modernizr Bootstrap --> $.fn.modal 回答1: You can determine whether jQuery DataTables is available by testing whether $.fn.dataTable exists. So I assume you need to use: bundle.CdnFallbackExpression = "$.fn.dataTable"; 来源: https://stackoverflow.com/questions/31707750/datatables-cdn

Can't change dk_toggle width from dropkick plugin

喜你入骨 提交于 2019-12-25 04:17:39
问题 I'm using dropkick jQuery plugin I know, that dk_toggle has default width: 220px: <a class="dk_toggle" style="width: 220px; ">(from Google console) My html in my view: <select name="country" class="default" tabindex="2"> <option value="EN">English</option> <option value="IS">Israeli</option> <option value="UA">Ukrainian</option> </select> But I want to change it in my css file: .dk_toggle { height: 15px; width: 245px; } It isn't changing. So HOW I should change it ? 回答1: In your javascript

Jquery fancybox plugin using arrays in code?

╄→尐↘猪︶ㄣ 提交于 2019-12-25 04:04:04
问题 I've got a Jquery plugin for a fancybox, which I know works when I use the following code: $("a#roomthumb_2237").fancybox({ 'href' : '#2237_Info', 'titleShow' : false, 'transitionIn' : 'elastic', 'transitionOut' : 'elastic' }); But to stop me having to repeat this code multiple times (with different href values), I'd like to run it in a for loop. The code I've tried is: for (var i = 0; i < rooms_array.length; i++) { var d = "#roomthumb_"+rooms_array[i] $(d).fancybox({ 'href' : rooms_array[i]+

wrong rendering of star rating jquery star rating widget and split stars

北城余情 提交于 2019-12-25 02:55:09
问题 i'm using the jquery star widget in our next project, it worked fine for other projects in the past, now it works, but the client has requested specific for these 2 facts: 1) the widget needs 5 stars, split in half as seen on the api 2 page on the website (http://orkans-tmp.22web.net/star_rating/#main-menu=2) 2) they want the big star design as seen in demo's on tab 6 (http://orkans-tmp.22web.net/star_rating/#main-menu=3&demo-tabs=5) now, upon combining the 2, (big star css, and half star

Call nested function to same object

你。 提交于 2019-12-25 02:43:31
问题 I am developing a plugin, after add object to the plugin i want to call some events to same object from outside, how can i do that (function ($, undefined) { jQuery.fn.pluginname = function (options) { var set = $.extend({ opacity: 0.5 }, options); //if(options.type) var cdiv = this; cdiv.css("opacity",set.opacity); function callthis() { cdiv.css("display","none"); } } })(jQuery); jQuery("#first").pluginname({opacity:0.5}); jQuery("#second").pluginname({opacity:0.5}); // call this function

jQuery.ajax called twice from userValuesChanged in dateRangeSlider

房东的猫 提交于 2019-12-25 02:38:39
问题 I am using jQDateRangeSlider to trigger a jQuery.ajax call.There are two ways in which the slider can be moved. By moving the ends of the slider individually By moving the entire highlighted block from one place to other In case of 1, my code works fine, but in case 2, the 'userValuesChanged' gets invoked two or four times.Is this some bug with the widget or am I doing something wrong here? This is how my code looks? function init() { var tp = $('tp').value; if (tp == 'Daily') { dataFile1 =

PrintThis Jquery plugin issue in Google Chroome

谁都会走 提交于 2019-12-25 02:38:21
问题 I am using Jquery plugin PrintThis.js and jquery-1.7.2.min.js to print a specific div of my web page. It works fine in Firfox and IE. But unfortunately its not working on Google Chrome. Actually Google Chrome is printing Complete web page including the Banner, Menus, and buttons as well. I Searched alot on net but unable to get a suitable solution Here is my sample code Java Script $(function () { $("input:button").click(function () { $("#print").printThis(); }); }); HTML <body> <input type=

PrintThis Jquery plugin issue in Google Chroome

十年热恋 提交于 2019-12-25 02:38:10
问题 I am using Jquery plugin PrintThis.js and jquery-1.7.2.min.js to print a specific div of my web page. It works fine in Firfox and IE. But unfortunately its not working on Google Chrome. Actually Google Chrome is printing Complete web page including the Banner, Menus, and buttons as well. I Searched alot on net but unable to get a suitable solution Here is my sample code Java Script $(function () { $("input:button").click(function () { $("#print").printThis(); }); }); HTML <body> <input type=

use multiple triggers in jQuery autocomplete using mutiple datasets

南笙酒味 提交于 2019-12-25 02:37:06
问题 I am trying to implement twitter/facebook like auto-complete on a textarea. Now Till now i have implemented it for single trigger "@". But I want it to work for 2 triggers "@" and "#". Both will have different data sets. Here is for the single dataset. This one works perfectly. HTML <!DOCTYPE html> <html> <head> <link rel="stylesheet" href="//code.jquery.com/ui/1.10.4/themes/smoothness/jquery-ui.css"> <script src="//code.jquery.com/jquery-1.9.1.js"></script> <script src="//code.jquery.com/ui

jquery mobile plugin for encryption/decryption

给你一囗甜甜゛ 提交于 2019-12-25 01:53:32
问题 I want to encrypt and decrypt the json object to be passed as URL parameters. is there a jquery mobile plugin which provides the encryption and decryption for this purpose as I found this link : http://www.jquery4u.com/security/10-jquery-security/ but this has all the outdated plugins. If there is no option for me in jquery plugins, then I was planning to use this library. http://crypto.stanford.edu/sjcl/ is this my best option as I want fast and lightweight library because of the URL