Forum Moderators: open

Message Too Old, No Replies

I need to repeat js insctruction

         

cameraguy

6:12 pm on Jul 9, 2005 (gmt 0)

10+ Year Member



Hi,

I have this script in my page that displays a counter:

<script language="javascript" src="http://.../counter.php?user_counter=12345">
</script>

I would like the counter to refresh automatically, say every 60 seconds. Right now I need to refresh the whole page to achieve this. How can I modify this line of code to achieve the same result?

Thank you very mucg for your help!

Roberto

cameraguy

11:01 pm on Jul 9, 2005 (gmt 0)

10+ Year Member



OK, I think I know how to achieve this with timeout. What I do not know how to do is to insert this:

<script language="javascript" src="http://.../counter.php?user_counter=12345">
</script>

into a function like this:

function Update() {
...
}

cameraguy

1:16 pm on Jul 10, 2005 (gmt 0)

10+ Year Member



Sorry if my query is not very clear.

I am now trying to convert this:

<script language="javascript" src="http://.../counter.php?user_counter=12345">

into this:

<script language="javascript"> src="http://.../counter.php?user_counter=12345"
</script>

But it's not working.