I was wondering if anyone knew how to code a module such that it will automatically refresh itself every so many seconds. I know there is a Block Refresh module out there, but it hasn't been updated to Drupal 6 yet. Anyone have any ideas? Thank you!

Jim

Comments

DynamicLoad

Just as an update, I did some more looking around and found out about the DynamicLoad part of JSTools, but unfortunately that hasn't been updated to Drupal 6 either.

By refresh, do you mean that

By refresh, do you mean that the cache is dumped and then rebuilt?

Whichever works, really. The

Whichever works, really.

The module I'm creating is very basic. All it does is check a specific database table for entries, and if it finds any, displays those entries as links. So basically I need that database query to happen every 15 seconds or so. Refreshing the page obviously works, but I don't want it refreshing the whole page every 15 seconds, just the block.

Jim

Ahh ok, that's interesting.

Ahh ok, that's interesting. I would probably just make a javascript function that counts down, then calls a AJAX or AHAH function to refresh everything in the block's div tags.

nobody click here