jquery-live

Unbind event that was binded with .live() jQuery

I have the following code: $('#form1').live('submit.check', function() { //code... }); Now when I try the following: $('#form1').unbind('submit.check'); that event it still bound to the form. Is it not possible to unbind an event the that used .live() to bind it? ...

jQuery: attach .fancybox() to a new element passed by .load() function

When I get new elements from load() function can't find the way to attach the function .fancybox (a lightbox plugin) to elements. I've tried with .live() and .delegate(), but think .fancybox() could not be considered as custom event. I probably miss something... :( ...

Facebook tags dont render when generated dynamically using Jquery

Hey guys, To give you a simple use case - on my website, I display the comments posted by the facebook users. For each comment I display the facebook users photo using the fb:profile-pic tag and a fb like button. This page renders properly and everything displays well. Now when the users want to read older comments, they click on the "...

jQuery Tools Overlay & jQuery.live event

How to get this work with jQuery.live? $("a[rel]").overlay({ mask: '#3B5872', effect: 'apple', api: true, onBeforeLoad: function () { var wrap = this.getOverlay().find(".contentWrap"); wrap.load(this.getTrigger().attr("href")); } }); I tried this with no succes: $("a[rel]").live('click', function (...

jQuery .live() question

I've recently converted my code to produce dynamically generated results. The below code worked fine to toggle the control_hover class. Previous Code $(".control").hover(function () {$(this).addClass("control_hover");},function () {$(this).removeClass("control_hover");}); However, now with the live code, it doesn't seem to execute th...

jquery stopPropagation problem with live method

Hi, Jquery stopPropagation method dosen't work with live method. Below the code is works fine with click instead of live method. Any help greatly appreciated. Code: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"&gt; <html xmlns="http://www.w3.org/1999/xhtml"...

jQuery showing other users on my page.

Hey, I have a page where each logged in user is shown as a <div> at a custom position, is it possible to show where the user's <div> is for other people. I was hoping I could do this in (near) real time. Just a nod in the right direction again would be fine. Cheers edit: is there a way to do this without MySQL? ...

Submitting 'live' content IE7 Jquery

I have some content that is appended to a form when dropped using the 'droppable/draggable' jquery plugins. Once the content has been appended to the form. I have a button to submit the form. The form submits correctly in all browsers but in IE7. In IE7 it will not submit I'm guessing it does not see the appended 'live' content. Is th...

Help with jQuery's .live() method

I have a function that dynamically creates links for a photo gallery. The function also produces a larger image as a background image of a div when and thumbnail is clicked on. What I want to do is have a third event, where if the user clicks the enlarged image in the div, the jQuery Fancybox loads an even bigger version of the image bei...

Bind custom event handler after ajax load

Specifically I'm looking to bind lightbox to a specific element. Normally I would just do this: $('a.lightbox').lightBox(); but that isn't working since I'm doing some loading with AJAX. Looking at the jQuery API I found .bind() and .live() but I'm not getting anything when I do $('a.lightbox').bind('lightBox') after the AJAX .load() cal...

List of supported .live() events in jQuery 1.3

After reading jQuery .live() post and looking through the jQuery API I could not find a full list of events that jQuery 1.3 supports cross-browser. ...

Why jQuery live() does not work ?

I have the following code which work fine: $('.ui-selectmenu-menu a').click(function() { alert('OK'); }); However, if I replace it with: $('.ui-selectmenu-menu a').live('click', function() { alert('OK'); }); it does not work. What could be the reason for that ? (In my case, $('.ui-selectmenu-menu a') elements could be removed and...

Execute custom function on dynamic loaded page in jQuery

I have tab in a web page that loads and displays another page dynamically, using this code: $(document).ready(function(){ $(".tab-content").hide(); $("#one").show(); $("a.tab-name").click(function(){ $(".tab-name-active").removeClass("tab-name-active"); $(this).addClass("tab-name-active"); $(".tab-con...

jQuery focusin and focusout live events are not firing

jQuery Version: 1.4.1 I am attempting to write a simple watermark type plugin and I want to take advantage of live events since not all of the elements I need to use it on will exist during the page load, or they may be added and removed from the DOM. However, for some reason the events never fire. Here is the not working code: ; (...

Get "this" element ID in jQuery live/delegate with timeout

I am trying to get the ID of an element bound with a jQuery delegate() function. I want to pass the element's ID to another function. The ID returned is always "undefined" and I'm not sure why. Here is my code: $(document).ready(function() { var timeout = undefined; $('body').delegate( '#tab-form input[type="text"]', 'keypre...

How to prevent a click event using jQuery.live

When I use the following jquery live function $("a[rel]").live('click', function () { e.preventDefault(); alert('clicked'); }); e.preventDefault(); does not work, because the action behind the a tag is still fired. How do I prevent an event when I use jQuery.live? ...

Disabled button still clickable in IE8 with jQuery.live('click') event

Sigh I keep getting strange problems with IE 8. I have this <input name="Btn_Edit" disabled="disabled" id="Btn_Edit" type="button" value="Edit"/> $(function () { $('#Btn_Edit').live('click', function () { alert('hi'); }); }); So in every other browser this alert would never get trigger as my button is disa...

Issues with jQuery .live() event binding!

Hi, I am facing a very wierd issue with jQuery live event binding. $(document).ready(function (){ $('select').live('change', function () { // works fine }); $('input:checkbox').live('click', function () { // doesn't work! }); }); If I switch the order, $(document).ready(function (){ $('input:checkbox').live('click'...

jQuery: live vs adding events manually

I have a table where I add, remove and resort rows from time to time. They contain two dynamic "things": The row itself need a mouseenter and mouseleave event for a hover effect, and a couple of buttons need a click event attached. What are some arguments for choosing between the jquery.live method and attaching the events when creating...

tiny question about jquery's live()

How would I change the html of a tag like so: $('#someId').html('<p>foo bar</p>'); while using the live() or delegate() function? Just for clarification I don't want this to happen on hover or focus or click... I just want jquery to immediately change the html inside of a certain tag. Basically, I'm trying to change the logo in t...