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
Try:
var $j = jQuery.noConflict();
Then you would use:
$j(document).ready(function() {
doSomething();
});
On Oct 5, 2:14 pm, Dennis Madsen wrote:
> I'm trying to use jQuery inside a CMS which use mootools - therefore I
> use noConflict.
> I have this sample code:
>
>
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
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 libr
That is exactly what it means.
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
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
incl
Hi Guys,
Any one have any ideas about this ? I am really stuck ?
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:
"0x8007
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 '$' a
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
11 matches
Mail list logo