Thanks for your message!
I have changed the html file to your suggestions, but the container
still doesn't get updated in IE.
I have also tried a static text file and changed it while IE was
running but it still showed the old value.
But I have found something else interesting, if you clear IE's cache,
the value gets updated once.
It would be very nice if anybody else could try this and say if it
works or not. I have no further ideas...
Just to make sure I got you right Adam, this is the changed html file:
----------------------------
<html>
<head>
<title>test</title>
<META HTTP-EQUIV="Expires" CONTENT="Tue, 01 Jan 1980 1:00:00 GMT">
<META HTTP-EQUIV="Pragma" CONTENT="no-cache">
<script type="text/javascript" src="prototype.js"></script>
<script type="text/javascript">
Event.observe(window, 'load', doUpdate, false);
function doUpdate() {
new Ajax.PeriodicalUpdater('time', 'test.txt',
/*new Ajax.PeriodicalUpdater('time', 'time.php',*/
{
method: 'get',
frequency: 1
});
}
</script>
</head>
<body>
<div id="time"></div>
</body>
</html>
----------------------------
On 15 Jun., 16:43, Adam McCrea <[EMAIL PROTECTED]> wrote:
> Couple things...
>
> First, in your Event.observe call, remove the parenthesis from
> doUpdate() so you pass the function itself rather than calling it.
>
> Second, you don't actually need to use the load event since your JS
> follows the "time" div. The div has been loaded into the DOM, so you
> can go ahead and reference it. If you put your script in the header
> (which I would), then you need the load event.
>
> All that said, your code should still create the PeriodicalUpdater.
> Make sure you're not getting a security warning in IE, and also try
> retrieving a static text file.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby
on Rails: Spinoffs" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/rubyonrails-spinoffs?hl=en
-~----------~----~----~----~------~----~------~--~---