livequery

jquery/livequery not working in this particular case

好久不见. 提交于 2020-02-05 04:32:09
问题 Using jquery, all of my other livequery functions work fine, i am getting an error for this particular one... $("[class*='welcome']").livequery("click", function(e){ etc....... The error is: Uncaught TypeError: Object #<Object> has no method 'livequery' is it because of the wildcard? or a general jquery error? Thank you 回答1: If what you want to do is Attach an event handler for all elements which match the current selector, now and in the future Then this is the appropriate syntax: $(document

Using jQuery tooltip at runtime by livequery

邮差的信 提交于 2020-01-06 17:47:28
问题 Does anybody know how to use tooltip at runtime using livequery? I found some infos, but for me it doesnt work. jQuery('.button').bind('click', function () { std(); }); function std () { jQuery('.abcd').livequery.run(function() { jQuery('.abcd').tooltip(); }); } 回答1: I interpret your code to mean this: When .button is clicked you want to enable the tooltip functionality on all elements with class .abcd . If this is your intention simply use jQuery('.button').bind('click', function () { std();

Run jCarouselLite again, after an AJAX request

限于喜欢 提交于 2019-12-12 03:21:50
问题 I am using jCarouselLite to show a post scroller, which loads posts from a specific category. But, I want to be able to switch the category via AJAX. So, I load up everything in a div, and then run: jQuery(function($) { $("#serviceNews").jCarouselLite({ vertical: true, hoverPause:true, visible: 2, auto:2000, speed:1000 }); }); And it works... up until ajax refreshes the innerHTML of the #serviceNews. Then jCarouselLite stops working. I've tried using livequery: jQuery(function($) { $("

Livequery fires click no matter where the user clicks in the document

你离开我真会死。 提交于 2019-12-11 18:55:49
问题 I have replaced the traditional select/option form elements with a nifty little popup window when a triggering image is clicked. The page is for accounting purposes and so multiple line items are to be expected. I've written the javascript that will dynamically generate new line item select/option elements. When the page loads, the initial set of choices loads and the user can click on them, get a pop up with some choices, choose one and then the box closes. The move to the next choice and so

jquery live & livequery

陌路散爱 提交于 2019-12-11 03:36:11
问题 I'm using jquery's load to bring in thumbnails via ajax. I'd like to user to be able to hover over the cropped thumb to view a small uncropped version of the image using imgPreview plugin. If they click on it, then bring up the full sized image in a lightbox (fancybox). For the lightbox, I have: $("ul#plant_gallery li a").livequery( function(){ $(this).fancybox ({ 'overlayOpacity': 0.9, 'overlayColor': '#000', }); }); And for the tooltip uncropped image hover, I have: $('ul#plant_gallery li a

livequery not working with groups

点点圈 提交于 2019-12-08 11:17:17
问题 I am using some nice plugins from jQuery for using AJAX based sites. Now I came to the problem that I would like to use livequery for specifying my slimbox. The problem is, that it doesn't get my groups as stated in the linkFiler function. $(document).ready(function () { $('a[rel^="lightbox"]').livequery(function() { $(this).slimbox(null, function(el) // link mapper { return [el.href, el.title + '<br/><a href=\"' + el.href + '\">Download</a>']; } , function(el) // links filter { return (this

jQuery how to translate livequery to on?

本秂侑毒 提交于 2019-12-08 06:11:47
问题 I have this code which works however it is using a old legacy function "livequery" which should really be switched to using "on". However for the life of me I can't get this to work. Here is my code snippet. jQuery('.box').livequery(function(){ jQuery('a', this).click(function() { return false; }); jQuery(this).draggable({ appendTo: "body", helper: 'clone', opacity: 0.5, zIndex: 900, stop: function(event, ui) { return true; } }); }); And I tried this... jQuery('.box').on('draggable', function

Toggle Problem in live event of jquery

↘锁芯ラ 提交于 2019-12-07 16:48:26
问题 I am stuck with this can anyone help me... here is the html <tr class="appendvalue"> <td colspan="2"> <asp:DropDownList ID="ddlSource" runat="server"></asp:DropDownList> <asp:TextBox ID="txtSourceValue" runat="server" CssClass="hide" /> <a href="#" class="t12">add static value</a> </td> here is the jquery $(document).ready(function() { $('.appendvalue > td > a').live("click", function(e) { e.preventDefault(); $(this).prev().prev().toggle(); $(this).prev().toggle(); $(this).toggle(function() {

chrome.tabs.create is giving an error - “Uncaught TypeError: Cannot call method 'create' of undefined”

回眸只為那壹抹淺笑 提交于 2019-12-07 04:23:20
问题 My manifest.json contains "content_scripts": [ { "matches": ["http://www.facebook.com/*","https://www.facebook.com/*"], "js": ["js/jquery-1.7.2.min.js", "js/jquery.livequery.min.js", "js/script.js"] } ] and the contents of script.js are $("#FB_HiddenContainer").livequery(function(){ chrome.tabs.create({"url":"http://www.google.com"}); }); When i open facebook, console reports an error Uncaught TypeError: Cannot call method 'create' of undefined at chrome-extension://whateveristhisweirdcode/js

jQuery livequery plug equivalent in jQuery 1.7+

血红的双手。 提交于 2019-12-07 03:55:46
问题 Is there the equivalent of the jQuery livequery plugin for jQuery 1.7+ ? Im trying to dynamically bind events, reading the events a DOM element should bind on based on data-* elements. <a href="#" class="js-test" data-events="click">Test 1</a> <a href="#" class="js-test" data-events="mouseover">Test 2</a> .. etc .. I want to bind all elements with class .js-test but only on the events listed in their data-events attribute. jQuery.on/live/bind/delegate all require the events to be passed in as