You probably don't want to use periodical since you'll be reloading the page
anyway.
Perhaps you want to use delay instead.
​window.addEvent("domready", function() {
(function(){
window.location.href = window.location.href;
}).delay(5000);
});
But if you're just refreshing the page, you may want to use a meta tag or a
header anyway.
On Tue, Feb 9, 2010 at 12:23 AM, Deepali <[email protected]> wrote:
> Hello,
> I want to refresh my test.php page after each and every 5 seconds. I
> was playing around with periodical function but it seems i am not
> writing it properly.
>
> here is my code-
>
> <script type="text/javascript">
> window.addEvent('domready', function(){
> $('content').load('test.php').
> periodical(5000);
>
> });
> </script>
> </head>
> <body>
> <div id="content">
> Loading content...</div>
>
> Can anyone please tell me how can i refresh(auto) my page with
> mootools?
>
> Thanks in advance.
>
>
>
--
Ryan Rampersad
www.ifupdown.com