The error I see is on this line:
setTimeout('chatHeartbeat();',chatHeartbeatTime);
Instead of passing a string as the first arg to setTimeout, pass the
actual fn reference:
setTimeout(chatHeartbeat, chatHeartbeatTime);
When passing a string it will be evaluated in the global context. But
your
No, that isn't required at all. See the examples on this page:
http://docs.jquery.com/Using_jQuery_with_Other_Libraries
-Mike
From: Sparky12
Hey Matt,
Thanks for the response.
OK - little confused. So basically what this is saying is I
need to call the jquery javascript library
Hey Mike,
I think it is ? Its the only way that is resolving this error -
http://docs.jquery.com/Using_jQuery_with_Other_Libraries#Including_jQuery_before_Other_Libraries
Otherwise I just keep getting the error above - btw I am using jQuery
and not the $ and without calling the jquery script
Hi Guys,
Any one have any ideas about this ? I am really stuck ?
Straight from the docs
http://docs.jquery.com/Core/jQuery.noConflict
*NOTE:* This function must be called after including the jQuery javascript
file, but *before* including any other conflicting library, and also before
actually that other conflicting library gets used, in case jQuery is
Hey Matt,
Thanks for the response.
OK - little confused. So basically what this is saying is I need to
call the jquery javascript library BEFORE any other library on the
page ? i.e. always ensure that the jquery library is the first
script listed in my scripts ?
Thanks
That is exactly what it means.
hey guys - i am getting this same error on my blog (error below)?
Any one have any ideas what would be causing it ? I am
using .noconflict 100% ?
Thanks
[Exception... Component returned failure code: 0x80070057
(NS_ERROR_ILLEGAL_VALUE) [nsIDOMXPathEvaluator.evaluate] nsresult:
You can shorten that to
(function($) {
$(function() {
//my stuff here
});
})(jQuery.noConflict());
or
jQuery.noConflict()(function($){
//code for dom ready here
});
Plugins should already being protected by using a (function($){}
(jQuery), so, as long as you only use the '$'
Any idea on this issue at all?
It works if NO no-conflict is used: http://teesworks.com/testIE.html
It breaks if no-conflict is used:
http://teesworks.com/testIE-with-noconflict.html
10 matches
Mail list logo