Page 1 of 1

tagboard refresh

Posted: Fri Jan 23, 2004 11:25 pm
by Illusionist
i made a tagboard, but at the moment i hae it refresh every 15 seconds... Does anyone know a way that i can only refresh when someone adds a comment? Like on tag-board.com?

Posted: Fri Jan 23, 2004 11:54 pm
by dull1554
maybe a cron to check if there have been any updates to the tagboard

Posted: Sat Jan 24, 2004 12:02 am
by Illusionist
whata you mean by cron?

Posted: Sat Jan 24, 2004 3:26 am
by microthick
A cron job is a task that your computer runs at times you set. You can set a cron job to run every 15 seconds for example. Or every 10 minutes.

What you could do is have a small frame (maybe even a 0px height frame) that refreshes every 15 seconds and checks to see if a new entry is added. If one has, then refresh the main tag board page.

Since the frame is 0px in height, the user might not even notice the refreshing every 15 seconds.

Posted: Sat Jan 24, 2004 12:47 pm
by Illusionist
well, tahts sorta what i'm doing now... my tagboard is inside a frame that is refreshing every 15 seconds and it is noticeable....

Posted: Sat Jan 24, 2004 2:25 pm
by d3ad1ysp0rk
thats not what he meant

you need 2 iframes, one called "check" and one called "main"

then have check refresh every 15 seconds or so and run a query to see if there are anymore comments, if there are, it refreshes the "main" frame too

Posted: Sat Jan 24, 2004 6:18 pm
by Illusionist
i knwo that, but what i'm saying is the refresh is noticable... do you knwo of a way to refresh it so it wont be noticeable? right now im using meta refreshes...