[jQuery] Re: request for comments - a periodic execution plugin/function for jQuery

2007-08-18 Thread westamastaflash
Looks like a lot of what I've done was done before with jQuery Timers - so take a look at that as well. On Aug 18, 9:40 am, westamastaflash <[EMAIL PROTECTED]> wrote: > Sorry about not replying sooner, I was offline after I posted last > night. > > Pops: > About passing parameters: > I tried to

[jQuery] Re: request for comments - a periodic execution plugin/function for jQuery

2007-08-18 Thread westamastaflash
Sorry about not replying sooner, I was offline after I posted last night. Pops: About passing parameters: I tried to follow the example in the jQuery docs of using jQuery.extend to handle optional parameters to functions - I think it's like using named notation for parameters in PL/SQL - i.e. foo

[jQuery] Re: request for comments - a periodic execution plugin/function for jQuery

2007-08-18 Thread Pops
On Aug 18, 5:59 am, "Ganeshji Marwaha" <[EMAIL PROTECTED]> wrote: > I am sure westamastaflash will reply to ur query, but in the meantime, since > i am still awake (3 PM here), i thought i will do a good deed before i goto > bed. > > try $.periodic(callback, {frequency: 5}); > > You were using q

[jQuery] Re: request for comments - a periodic execution plugin/function for jQuery

2007-08-18 Thread Pops
> I'm trying to find a solution to a bug in firefox (but NOT internet > explorer) where the parallel execution of the callback function is not > shielded by the code (prototype's PeriodicExecuter has the same > problem - their example code *does not work* in firefox (firebug & web > developer plug

[jQuery] Re: request for comments - a periodic execution plugin/function for jQuery

2007-08-18 Thread Ganeshji Marwaha
I am sure westamastaflash will reply to ur query, but in the meantime, since i am still awake (3 PM here), i thought i will do a good deed before i goto bed. try $.periodic(callback, {frequency: 5}); You were using quotes for the options object. That was probably the cause of the problem And you

[jQuery] Re: request for comments - a periodic execution plugin/function for jQuery

2007-08-18 Thread Pops
My Bad, your inline comments did imply to return false to stop the callback, other TRUE to continue. But how to you pass the options, specifically, changing the frequency? Thanks On Aug 18, 5:45 am, Pops <[EMAIL PROTECTED]> wrote: > On Aug 17, 5:43 pm, westamastaflash <[EMAIL PROTECTED]> wrote:

[jQuery] Re: request for comments - a periodic execution plugin/function for jQuery

2007-08-18 Thread Pops
On Aug 17, 5:43 pm, westamastaflash <[EMAIL PROTECTED]> wrote: > So I wrote a periodic execution function for jQuery, similar to the > PeriodicExecuter function of prototype. I'd like some feedback as to > it's usefulness (or non-usefullness). This is my first plugin, so any > suggestions as to w

[jQuery] Re: request for comments - a periodic execution plugin/function for jQuery

2007-08-17 Thread Ganeshji Marwaha
This is a neat utility plugin that i will definitely use... There are a few suggestions - just thinking out loud though First, to answer your question, i dont think u need to use $.extend, there isn't a function called periodic in the core, so it should be fine... My suggestion is, typically