jquery-plugins

How to include an external plugin inside of another jQuery plugin being authored

让人想犯罪 __ 提交于 2019-12-19 07:23:08
问题 I am building a custom jQuery plugin for a project I am working on. I want to return an object that is custom to another jQuery plugin...rather than having to make sure that each page that uses my plugin also has this other plugin, is it possible to include it in the actual plugin itself? Rather than type the following on each page that uses my plugin: <script type="text/javascript" src="url_to_my_plugin" /> <script type="text/javascript" src="url_to_plugin" /> I wanted to see if there is an

jQuery Token Input (tokenize input) is not working on modal popup, list hidden under popup

∥☆過路亽.° 提交于 2019-12-19 05:42:51
问题 I am using a modal popup up control in jQuery, the popup has an input text powered by jQuery Tokenize input plugin. The problem is when i type something on modal popup text box, the search results by tokenize plugin are shown hidden under the popup. Actually they should apprear on top of all controls. Would someone please help me as I am a beginner. Try to seek help from thread below, zindex is not working. https://github.com/loopj/jquery-tokeninput/issues/190 here is the input control that i

JQuery form tooltip

醉酒当歌 提交于 2019-12-19 04:51:14
问题 In a big form, I want to display additional information on each form field when they are active , something like this: So each form field has an associated tip text, and this tip text is displayed on focus. Something linke this in html/javascript: <input type="text" id="VIN" name="VIN" class="tooltipped"> <label for="VIN" class="formfieldtooltip">A vehicle Iden... </label> <input type="text" id="Brand" name="Brand" class="tooltipped"> <label for="Brand" class="formfieldtooltip">In Danish

lightGallery (jQuery plugin) in AngularJS

陌路散爱 提交于 2019-12-19 04:11:32
问题 I'm trying to get the lightGallery jQuery plugin (http://sachinchoolur.github.io/lightGallery/index.html) to work with AngularJS. I found some answers that suggested I needed a directive, so I created the following: .directive('lightGallery', function() { return { restrict: 'A', link: function(scope, element, attrs) { jQuery(element).lightGallery(); } }; }) Then in my view I do this: <ul lightGallery> <li ng-repeat="photo in album.photos" data-src="{{photo.fullres}}"> <img ng-src="{{photo

If you include 2 version of jQuery in a page how do you restrict a plugin to just one of them?

老子叫甜甜 提交于 2019-12-19 04:08:05
问题 So this question isn't as crazy as it might sound at first. I'm developing a piece of javascript code to drop into my client's pages. What I'm worried about is if they are using another version of jQuery on their site. I know from the Jquery docs that something like this should work. var dom = {}; dom.query = jQuery.noConflict(true); The problem is I am also using some jquery plugins, namely fancybox and mousewheel. So how can I make sure my version of jQuery is the only one that can use

jQuery BlockUi Message after another

不羁的心 提交于 2019-12-19 03:45:11
问题 I'm using jQuery BlockUI plugin, and i have been able to sucessfully show a single message in the page, however... let's say that I want to show 3 messages , one after another. Something like: message: 'hello world!' message: 'hello galaxy!' message: 'hello universe!' how do I do this with jQuery BlockUI? 回答1: Just create a div in your page like this: <div id="blockMessage"></div> And for the script... $.blockUI({ message: $('#blockMessage') }); $("#blockMessage").html('Hello World!'); $("

When using Handsontable how to force a selected cell into edit mode?

二次信任 提交于 2019-12-18 19:17:19
问题 Handsontable provides some nice hooks for when a cell is selected but I can't seem to figure out way to get it to allow me to force a cell into edit mode when it has been selected. I can detect the cell selection like this: Handsontable.PluginHooks.add( 'afterSelection', function( row, column ) { var current_td = this.getCell( row, column ); }); And from there I can even obtain the cell element that was selected. But from there I can't seem to trigger the cell into edit mode (where it has an

jQuery File Upload: how to change the upload url dynamically

≡放荡痞女 提交于 2019-12-18 18:40:30
问题 I'm trying to use the blueimp jQuery File Upload in my project. It suits my needs fairly well but I need to change the url files are uploaded to dynamically after the plugin is created and configured. I've done a good deal of investigation, but, unfortunately, found nothing useful. In general, I have a button to choose files and fileupload action covering the actual upload. The basic creation looks like this: $('[upload-button]').fileupload(new FileUploadConfig()) And configuration itself:

Jquery Dialog Problem

风流意气都作罢 提交于 2019-12-18 17:32:21
问题 Hi every body i am developing a MVC application, and i want to use Jquery dialog . i have the following scenario : I have Telerik tree view, and when i click on any node i want the dialog to open and display information about this node. First i add the following script to initialize the dialog : $(document).ready(function () { $("#dialog").dialog("destroy"); $("#dialog-form").dialog({ autoOpen: false, height: 500, width: 500, modal: true, buttons: { Cancel: function () { $(this).dialog('close

Searching for a Lazy Loading jQuery Slideshow or: hacking cross-slide

你离开我真会死。 提交于 2019-12-18 13:32:37
问题 I am trying to get a jquery slideshow to display images from flickr, fading and scrolling. Everything works fine, except I really need Lazy Loading of the images (just loading the images on demand). I am currently using jquery.cross-slide ( http://tobia.github.com/CrossSlide/ ) but unfortunately tobia is not working on the plugin anymore and also does not want to answer to questions. I found an example of jquery.cycle, where image lazy loading is applied (see http://malsup.com/jquery/cycle