jquery-plugins

kendo listView with checkbox along with select all checkbox option

大兔子大兔子 提交于 2019-12-21 19:53:00
问题 I am new to kendo UI implementation and am looking for a way to create a listview with checkbox, the very first checkbox being All Option to select all items in listview if it is checked. I have created a template that allows me to add checkbox to the items, But i need to add a ALL checkbox on top of all the data. this is what i have worked in so far, Below (screenshot) is what i would like to achieve. Here is my template: <script type="text/x-kendo-tmpl" id="myTemplate"> <div class="item

How can I determine if an HTML element is offscreen?

↘锁芯ラ 提交于 2019-12-21 17:51:43
问题 How can I determine using jQuery that a given element is above the top of the viewable window area or below the bottom of it? This would allow me to determine whether the item was offscreen and in which direction. Ideally: var topPos = $(this).relativeToTop(); var bottomPos = $(this).relativeToBottom(); var isOnScreen = topPos >= 0 && bottomPos >= 0; Is there a plugin or example online somewhere? 回答1: var off = $(this).offset(); var t = off.top; var l = off.left; var h = $(this).height(); var

jQuery Plugin: Handling Events

非 Y 不嫁゛ 提交于 2019-12-21 16:57:42
问题 I'm currently working on a jQuery plugin and I'm wondering if it would be possible to have the plugin listen for events rather than being triggered by events. So instead of this: $('#element_id').mouseover(function() { $(this).plugin(); }); $('#element_id').mouseout(function() { $(this).pluginHide(); }); I want to try to do something like this: $('#element_id').plugin(????, ????); And replace the ?'s with some sort of reference to the element and event that should trigger it to show or hide.

jquery plugin 'uploadify' - Way to return a response from upload script?

十年热恋 提交于 2019-12-21 16:33:20
问题 My header code: $(document).ready(function() { $('#sampleFile').uploadify({ 'uploader': 'include/uploadify/uploadify.swf', 'script': 'add_list.php', 'scriptData': {'mode': 'upload'}, 'fileDataName': 'sampleFile', 'folder': '/work/avais/bizlists/lists', 'cancelImg': 'include/uploadify/cancel.png', 'queueID': 'sampleQueue' }); }); AFAIK all I can do in the "add_list.php" file is finish the upload process off by moving the file to the final dir; I don't think there is any way I can 'return

Creating A Javascript Calendar (Full, not pop up)

﹥>﹥吖頭↗ 提交于 2019-12-21 14:03:51
问题 I'm having some difficulties creating a javascript appointment style calendar. While it does render, I know there's go to be a much more efficient way of doing it. Does anyone have a pattern they use for creating calendars? I will be using jQuery, but I don't want to use someone's calendar plugin as a) I haven't found one that works for what I need and b) I'm never going to get any better by using someone elses work. Now, keep in mind my question is not about loading data in or getting repeat

Block UI Jquery plugin for a specific DIV

不问归期 提交于 2019-12-21 11:25:19
问题 Anyone knows a JQuery plugin for BlockUI that allows blocking a specific DIV, not just the whole page. Thanks. 回答1: You can do it thru blockui plugin 回答2: You can do this natively with BlockUI: http://jquery.malsup.com/block/#element $('div.test').block({ message: null }) 回答3: $.blockUI({ message: $("#divid"), css: { position: 'absolute', } }); 来源: https://stackoverflow.com/questions/6933086/block-ui-jquery-plugin-for-a-specific-div

Using jQuery plugins in Rails 3

不羁岁月 提交于 2019-12-21 09:13:04
问题 Having finished Hartl's great Rails Tutorial I'm now working my way through the very good jQuery - Novice to Ninja by Castledine and Sharkie. While I've able to include jquery.js and jquery-ui.js in my rails projects, I'm getting stuck when it comes to adding other jQuery plugins. I've figured out that when the plugins are hosted on github, I can import them into my project using the command line and: [my rails app]$ rails install [github URL] The plugin gets successfully imported into the

jquery get element where the cursor is

爱⌒轻易说出口 提交于 2019-12-21 07:07:06
问题 I'm building a splittesting tool for my website with javascript and jquery. Now I want to show for each elements I want to splittest a little hovermenu when the cursor passes over the element in my previewbox. Is there any possibility to do something like this ? I treid something like this $('body').hover(function(event){ console.log(event.target.nodeName); // to see if it's showing up the element }); but it's only triggering once. As I don't want to use click since I want also to showup the

tipsy live does not work with jQuery 1.9.0

隐身守侯 提交于 2019-12-21 06:59:31
问题 We recently upgraded our jQuery to 1.9.0, but it broke our tipsy plugin. Its live functionality now causes an error. $('.tooltip, abbr').tipsy({ live: true }); TypeError: this[binder] is not a function Are there any fixes or patches for this? Googling didn't lead to anything useful. UPDATE: Thanks for the answers. I decided to try to fix the issue myself, because I couldn't find any patches. Upon inspection the error seemed really easy to trace. The tipsy plugin can easily be patched to use

How to append REST call JSON response to jQuery datatables?

爱⌒轻易说出口 提交于 2019-12-21 06:37:58
问题 I'm trying to display the REST call JSON response in jQuery datatables. Below is the JSON response I'm receiving. { "artifact": [ { "artifactId": "I8cc4a96ef69a11e08b448cf533780ea2", "batchId": "15581", "processId": "115458787" }, { "artifactId": "e08b448cf533780ea2I8cc4a96ef69a11", "batchId": "14962", "processId": "787974254" } ] } The Script: <script type="text/javascript"> $(document).ready(function () { $("#artifacts").dataTable({ "sPaginationType": "full_numbers", "bJQueryUI": true }); }