5

I'm aware of timing issues in Javascript, how its not exact/off by milliseconds etc, but I need something to at least attempt to do browser-based scheduling.

In terms of features, I'm thinking something along the lines of scheduling patterns described here: http://www.sauronsoftware.it/projects/cron4j/manual.php#p02

Anything out there? I've done google searches and haven't found any implementation worth nothing.

Core
  • 840
  • 11
  • 24
  • 2
    What do you really mean by this? Do you want a function on your page to execute every 5 minutes? – Erik Mar 11 '10 at 20:21
  • That Cron4J is pretty slick. I might add that to Myna (http://mynajs.org) – Mark Porter Mar 11 '10 at 21:19
  • @Erik, it means just what it means, I need scheduling like monday through friday, 830 am-2pm, every 5 minutes, execute this function. obviously it only needs to work if the page is loaded. – Core Mar 14 '10 at 02:49

4 Answers4

3

I thought I'd give it a quick go -- obviously this isn't production-code-worthy yet. Have a look.

Hannele
  • 9,301
  • 6
  • 48
  • 68
James
  • 109,676
  • 31
  • 162
  • 175
1

Pimping my own code here, but I'm busy developing cron.js and its ready for general use.

Stefan
  • 9,289
  • 7
  • 38
  • 46
0

As long as js engines live inside a browser, I don t think there's much drive for such a feature. Now.. if one made a server js engine...

Eddy
  • 1,662
  • 2
  • 21
  • 36
  • IIRC Adobe Media Server allows you to write server logic in Actionscript2 which is fairly close to Javascript. It's painful. – spender Mar 11 '10 at 20:55
  • Many, many people have: http://en.wikipedia.org/wiki/Server-side_JavaScript. Myna (http://www.mynajs.org) even has a graphical tool for running scripts every X milliseconds – Mark Porter Mar 11 '10 at 21:17
0

Take a look at scheduler.codeeffects.com. I don't know how it works but it has a js-based interface, so may be their scheduling engine is js-based, too. Just trying to help :)

Regina
  • 41
  • 1