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?
...
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... :(
...
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 "...
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 (...
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...
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">
<html xmlns="http://www.w3.org/1999/xhtml"...
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?
...
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...
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...
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...
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.
...
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...
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 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:
; (...
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...
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?
...
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...
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'...
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...
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...