<script type="text/javascript">
Event.observe(window, 'load', function() {
var updater = new Ajax.PeriodicalUpdater('chatbox', 'chat.php',
{method: 'get', asynchronous: true, frequency: 0.55, decay: 2,
onSuccess: function(){$('chatbox').scrollTop=$
('chatbox').scrollHeight}});
})
</script>
It's for a chat program i'm making, but, the Periodical Refresh
doesn't work on Internet Explorer. If i send a message from Internet
Explorer, i won't see the message displayed but Firefox does see the
message. Anyway, here is the url:
http://www.avecesestoytriste.com.ar/chat/main.php
Please help me, i think that IE only refresh the DIV ('chatbox') one
time and no more.
Thanks
Nico
Use HTTP POST and not GET, IE will othervise case the request, see
http://blog.innerewut.de/2007/9/22/ie-doesn-t-let-us-rest
Jonathan
--
Jonathan Weiss
http://blog.innerewut.de
thanks and good luck
nico
If you wanted to keep your GET then try adding this to your code ...
Ajax.Responders.register ( {
onCreate: function(o_Requester) {
// Timestamp each AJAX action.
var o_Date = new Date();
o_Requester.url =
o_Requester.url +
(o_Requester.url.indexOf('?') == -1 ? '?' : '&') +
'Stamp=' + o_Date.getTime();
}
} );
--
-----
Richard Quadling
Zend Certified Engineer : http://zend.com/zce.php?c=ZEND002498&r=213474731
"Standing on the shoulders of some very clever giants!"