Hi,
I want to implement macro that refresh every, let say, 5 seconds. How can I achive?
For example. Is there anyway to periodically call specifi macro execute?
Community moderators have prevented the ability to post new answers.
Easiet way is to create a user macro.
Then for the macro contents use:
<script type="text/JavaScript">
<!--
setTimeout("location.reload(true);",$param0);
// -->
</script>
Reload page: $param0 ms.
Usage:
{refresh-page:2000}
If you want, you could put some more code in so the parameter is in seconds, let me know & I can update it.
That reloads the whole page and I want to only refresh my macro area. Besides I cant predict on which page that macro would be needed.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
What are yolu trying to get to refresh? The results of some other macro? If you can give some more details it might be easier to work out. You could use this with an iframe macro to refresh a section of a page?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.