[jQuery] Re: Jquery noconflict not working

2010-01-17 Thread Mike Alsup
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 chatHeartbeat fn is not defined in the global context.  And as a
matter of style and performance, it is better to pass the fn ref
anyway.

Mike



On Jan 17, 6:28 pm, Alex Crooks  wrote:
> If you look at the page;
>
> http://www.sars-clan.co.uk/forums/(ignore styling etc as its a work
> in progress)
>
> In the header source the forum system myBB calls prototype and then I
> call jquery and the noconflict;
>
> 
>   jQuery.noConflict();
>
>      jQuery(document).ready(function($){
>
>    //my jquery stuff
>
> });
>
> 
>
> with all my jquery code inside those tags. However I still get
> warnings about unknown functions although they are clearly defined in
> the header, any thoughts?


[jQuery] JQuery Star Rating Plugin not calling Callback?

2010-01-17 Thread Yoni Nijs
Hello all,

I installed the star rating plugin, which works great.
Except for one, that my callback is never called. I tried everything,
but still no relief :(

This is my HTML code:

Stem zelf:








Don't mind the smarty code.

Now, for a callback, I use this:

$(document).ready(function() {

$('.auto-submit-star').rating(callback: function(){
alert('OK');
})
});

But still, nothing happens when clicking the stars.

Help appreciated!


[jQuery] Re: Superfish - Arrows don't display on dropdown

2010-01-17 Thread initialsbr
Also, it appears that the menu works fine on the home page but not on
any of the individual pages. Any suggestions there?

On Jan 17, 7:57 pm, initialsbr  wrote:
> I'm really excited to use this bu the arrows aren't displaying on my
> menu. Here's the code I've got in the ...
>
> 
>
>  script>
>