Discussion:
jQuery 1.4 & LiveQuery
Jon Bennett
2010-01-15 00:35:40 UTC
Permalink
hi,

I've been using LiveQuery a fair bit in my projects, I've just tried
updating to 1.4, and it appears to have broken it. This
http://pastie.org/778941 is the kind of thing I'm doing.

Is there a way around this with 1.4?

Thanks in advance,

Jon
--
jon bennett - www.jben.net - blog.jben.net
Dave Methvin
2010-01-15 03:00:19 UTC
Permalink
Post by Jon Bennett
I've been using LiveQuery a fair bit in my projects, I've just tried
updating to 1.4, and it appears to have broken it.
Can you post a link to the simplest test case that shows the problem?
It is probably a simple fix.
krisna
2010-01-15 03:45:18 UTC
Permalink
everything fine with jquery 1.3.2 .... but when i updating to 1.4

here's firebug console:
TypeError: Result of expression 'node' [undefined] is not an object.
[jquery.blockui.js: 195]

js code when i click the button:
$.blockUI(
{
message: $('#popup_correction'),
css: {
'-webkit-border-radius': '5px',
'-moz-border-radius': '5px',
top: ($(window).height() - 550) / 2 + 'px',
left: ($(window).width() - 800) / 2 + 'px',
width: '800px',
height: '500px',
padding: '20px',
opacity: '1',
border: '7px solid #000',
cursor: 'default'
}
}
);
Post by Dave Methvin
Post by Jon Bennett
I've been using LiveQuery a fair bit in my projects, I've just tried
updating to 1.4, and it appears to have broken it.
Can you post a link to the simplest test case that shows the problem?
It is probably a simple fix.
Gordon
2010-01-15 09:53:03 UTC
Permalink
In 1.4 the built in live() function has been heavily extended, so
perhaps you can switch to using that instead?
Post by Jon Bennett
hi,
I've been using LiveQuery a fair bit in my projects, I've just tried
updating to 1.4, and it appears to have broken it. Thishttp://pastie.org/778941is the kind of thing I'm doing.
Is there a way around this with 1.4?
Thanks in advance,
Jon
--
jon bennett -www.jben.net- blog.jben.net
Dave Methvin
2010-01-15 14:00:16 UTC
Permalink
Post by Gordon
In 1.4 the built in live() function has been heavily extended, so
perhaps you can switch to using that instead?
Agreed, but I think livequery should still work. The error posted
there is in blockUI and not livequery anyway. Jon Bennett, can you put
up a simple page that is a complete test case? It will probably be
simple to diagnose using Firebug.
Steven Yang
2010-01-16 01:41:40 UTC
Permalink
Jon what version of blockUI are you using? I think i just ran into similar
problem yesterday when i upgraded jQuery to 1.4 and blockUI stopped working.
but i solved it by upgrading blockUI to the newest version then everything
worked again. i think the newest version was updated some time in Jan 2010
Post by Dave Methvin
Post by Gordon
In 1.4 the built in live() function has been heavily extended, so
perhaps you can switch to using that instead?
Agreed, but I think livequery should still work. The error posted
there is in blockUI and not livequery anyway. Jon Bennett, can you put
up a simple page that is a complete test case? It will probably be
simple to diagnose using Firebug.
pastel.pro
2010-01-17 14:00:59 UTC
Permalink
I'm not using blockUI and livequery doesn't work well with jquery 1.4
(with 1.3 it's perfect).
Livequery often work activates when I lunch firebug (strange...). So
impossible to understand why it doesn't work with firebug...

live() function needs an event, whereas livequery just execute the
function when the selector appear.
So for me it's not possible to switch to live() function.
Post by Steven Yang
Jon what version of blockUI are you using? I think i just ran into similar
problem yesterday when i upgraded jQuery to 1.4 and blockUI stopped working.
but i solved it by upgrading blockUI to the newest version then everything
worked again. i think the newest version was updated some time in Jan 2010
Post by Dave Methvin
Post by Gordon
In 1.4 the built in live() function has been heavily extended, so
perhaps you can switch to using that instead?
Agreed, but I think livequery should still work. The error posted
there is in blockUI and not livequery anyway. Jon Bennett, can you put
up a simple page that is a complete test case? It will probably be
simple to diagnose using Firebug.
pastel.pro
2010-02-02 09:38:31 UTC
Permalink
A fix has been posted here :
http://github.com/brandonaaron/livequery/issues/#issue/2
Post by pastel.pro
I'm not using blockUI and livequery doesn't work well with jquery 1.4
(with 1.3 it's perfect).
Livequery often work activates when I lunch firebug (strange...). So
impossible to understand why it doesn't work with firebug...
live() function needs an event, whereas livequery just execute the
function when the selector appear.
So for me it's not possible to switch to live() function.
Post by Steven Yang
Jon what version of blockUI are you using? I think i just ran into similar
problem yesterday when i upgraded jQuery to 1.4 and blockUI stopped working.
but i solved it by upgrading blockUI to the newest version then everything
worked again. i think the newest version was updated some time in Jan 2010
Post by Dave Methvin
Post by Gordon
In 1.4 the built in live() function has been heavily extended, so
perhaps you can switch to using that instead?
Agreed, but I think livequery should still work. The error posted
there is in blockUI and not livequery anyway. Jon Bennett, can you put
up a simple page that is a complete test case? It will probably be
simple to diagnose using Firebug.
Loading...