List Info

Thread: Why PeriodicalUpdater doesn't work on Internet Explorer?




Why PeriodicalUpdater doesn't work on Internet Explorer?
country flaguser name
United States
2007-09-28 14:52:14
I have the following code:

<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:

htt
p://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


--~--~---------~--~----~------------~-------~--~----~
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
rubyonrails-spinoffsgooglegroups.com
To unsubscribe from this group, send email to
rubyonrails-spinoffs-unsubscribegooglegroups.com
For more options, visit this group at http://groups.google.com/group/rubyonrails-spinoffs?hl=
en
-~----------~----~----~----~------~----~------~--~---


Re: Why PeriodicalUpdater doesn't work on Internet Explorer?
country flaguser name
Germany
2007-09-28 14:59:35

> Please help me, i think that IE only refresh the DIV
('chatbox') one
> time and no more.

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-re
st

Jonathan

-- 
Jonathan Weiss
http://blog.innerewut.de


--~--~---------~--~----~------------~-------~--~----~
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
rubyonrails-spinoffsgooglegroups.com
To unsubscribe from this group, send email to
rubyonrails-spinoffs-unsubscribegooglegroups.com
For more options, visit this group at http://groups.google.com/group/rubyonrails-spinoffs?hl=
en
-~----------~----~----~----~------~----~------~--~---


Re: Why PeriodicalUpdater doesn't work on Internet Explorer?
country flaguser name
United States
2007-10-03 09:42:14
men... how can i give you a big T H A N K S !!!!!
you were great

thanks and good luck
nico

On 28 sep, 16:59, Jonathan Weiss <j...innerewut.de> wrote:
> > Please help me, i think that IE only refresh the
DIV ('chatbox') one
> > time and no more.
>
> 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-re
st
>
> Jonathan
>
> --
> Jonathan Weisshttp://blog.innerewut.de



--~--~---------~--~----~------------~-------~--~----~
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
rubyonrails-spinoffsgooglegroups.com
To unsubscribe from this group, send email to
rubyonrails-spinoffs-unsubscribegooglegroups.com
For more options, visit this group at http://groups.google.com/group/rubyonrails-spinoffs?hl=
en
-~----------~----~----~----~------~----~------~--~---


Re: Why PeriodicalUpdater doesn't work on Internet Explorer?
user name
2007-10-03 09:54:10
On 28/09/2007, Jonathan Weiss <jwinnerewut.de> wrote:
>
>
> > Please help me, i think that IE only refresh the
DIV ('chatbox') one
> > time and no more.
>
> 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-re
st
>
> Jonathan

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!"

--~--~---------~--~----~------------~-------~--~----~
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
rubyonrails-spinoffsgooglegroups.com
To unsubscribe from this group, send email to
rubyonrails-spinoffs-unsubscribegooglegroups.com
For more options, visit this group at http://groups.google.com/group/rubyonrails-spinoffs?hl=
en
-~----------~----~----~----~------~----~------~--~---


[1-4]

about | contact  Other archives ( Real Estate discussion Medical topics )