How would I run this script on a timed basis?

  • Bolobotz
  • Newbie
  • Newbie
  • Bolobotz
  • Posts: 5

Post 3+ Months Ago

How would I run this html on a timed basis?. It runs on every refresh and I want to run it on a timed basis:

Code: [ Select ]
<div class="blockContent"><em><{$block.texto}></em><br/><br /><strong><{$block.autor}></strong><br /></div>


The PHP is located in another file. This is part of a Block template in Xoops.

Should I use Javascript or DHTML.
How do I do it?

Thanks
  • Anonymous
  • Bot
  • No Avatar
  • Posts: ?
  • Loc: Ozzuland
  • Status: Online

Post 3+ Months Ago

  • digitalMedia
  • a.k.a. dM
  • Genius
  • User avatar
  • Posts: 5149
  • Loc: SC-USA

Post 3+ Months Ago

//moved
  • joebert
  • Fart Bubbles
  • Genius
  • User avatar
  • Posts: 13502
  • Loc: Florida

Post 3+ Months Ago

Timed Javascript Refresh

//Duplicate thread Deleted
  • Cafu
  • Student
  • Student
  • Cafu
  • Posts: 97

Post 3+ Months Ago

Quote:
How would I run this html on a timed basis?. It runs on every refresh and I want to run it on a timed basis:



Technically, you don't "run" html. That seems to be html with dynamic content that comes from the webserver.

To make it refresh on a timed basis, you may want to put it into its own document and load it into an iframe. Then, use setTimeout() to reload the iframe content.
  • Bolobotz
  • Newbie
  • Newbie
  • Bolobotz
  • Posts: 5

Post 3+ Months Ago

Can ypu post script for that? Thanks! Also this is a part of a block HTML template in Xoops.
  • Bolobotz
  • Newbie
  • Newbie
  • Bolobotz
  • Posts: 5

Post 3+ Months Ago

Also, I am a newbie in this codeing arena.
  • Bolobotz
  • Newbie
  • Newbie
  • Bolobotz
  • Posts: 5

Post 3+ Months Ago

Is there anyway to initiate HTML without refreshing? I will try the IFRAME method in my block becauee I don't want the users to control the timer using the browser refresh.

Post Information

  • Total Posts in this topic: 7 posts
  • Users browsing this forum: No registered users and 118 guests
  • You cannot post new topics in this forum
  • You cannot reply to topics in this forum
  • You cannot edit your posts in this forum
  • You cannot delete your posts in this forum
  • You cannot post attachments in this forum
 
 

© 1998-2014. Ozzu® is a registered trademark of Unmelted, LLC.