DWR: IE Page Refresh Very Slow

View: New views
6 Messages — Rating Filter:   Alert me  

DWR: IE Page Refresh Very Slow

by Nitin Thakur :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

I am using DWR for developing a web-based chat application. Everything works great except one. This problem occurs only in IE. when i refresh the page (on which my chat application is running), the browser becomes very slow. The navigation icon on top right corner keeps on moving and status bar shows that 7 (or so...) items are remaining. But, here comes something more confusing- while IE is navigating like i just explained, if i send a message from a different browser to this particular user who has been stuck in with IE for some time, it suddenly stops its navigation and shows a Done status on the status bar. The message sent to this IE user, though, has not been received. This is noticeable. Though, sending a message to the IE user, escape him from a long continues navigation, he does not actually receive that message. After this, IE is in a good state and can send and receive messages without any problem.  
I am using Util's addFunctionCall for notifying clients about any messages sent to them.

Re: DWR: IE Page Refresh Very Slow

by Joe Walker-3 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


What version of DWR are you using?
Joe.

On Tue, Apr 15, 2008 at 9:54 AM, Nitin Thakur <myegotrip@...> wrote:

I am using DWR for developing a web-based chat application. Everything works
great except one. This problem occurs only in IE. when i refresh the page
(on which my chat application is running), the browser becomes very slow.
The navigation icon on top right corner keeps on moving and status bar shows
that 7 (or so...) items are remaining. But, here comes something more
confusing- while IE is navigating like i just explained, if i send a message
from a different browser to this particular user who has been stuck in with
IE for some time, it suddenly stops its navigation and shows a Done status
on the status bar. The message sent to this IE user, though, has not been
received. This is noticeable. Though, sending a message to the IE user,
escape him from a long continues navigation, he does not actually receive
that message. After this, IE is in a good state and can send and receive
messages without any problem.
I am using Util's addFunctionCall for notifying clients about any messages
sent to them.
--
View this message in context: http://www.nabble.com/DWR%3A-IE-Page-Refresh-Very-Slow-tp16697806p16697806.html
Sent from the DWR - Users mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@...
For additional commands, e-mail: users-help@...



Re: DWR: IE Page Refresh Very Slow

by Nitin Thakur :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

I have done with this problem. It was occuring because i was not disabling ActiveReverseAjax on page unload. So, just like i do dwr.engine.setActiveReverseAjax(true) on page load, i did dwr.engine.setActiveReverseAjax(false) on page unload and that sort out the problem. by the way, i am using dwr-2.0.3

Re: DWR: IE Page Refresh Very Slow

by ddduuu :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

I got confused here, why should you call dwr.engine.setActiveReverseAjax(false) on page unload? if you do that, can users still receiving chatting messages? since after you set it to false, you turn off the ReverseAjax.

Am I missing anything?

Thanks
Dave

Nitin Thakur wrote:
I have done with this problem. It was occuring because i was not disabling ActiveReverseAjax on page unload. So, just like i do dwr.engine.setActiveReverseAjax(true) on page load, i did dwr.engine.setActiveReverseAjax(false) on page unload and that sort out the problem. by the way, i am using dwr-2.0.3

Re: DWR: IE Page Refresh Very Slow

by Nitin Thakur :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

I do not think that such problem will occur. when i set reverse-ajax false, that affects MY browser only. remember, an instance of the same javascript is running somewhere on the client who is about to recieve the message. and he has not set his reverse-ajax false. so, technically he should recieve the message pushed by the server.
If i am about to recieve any message sent from other chatters, and in case i set the reverse-ajax false just before server tries to push the message. Than yes, i definitely not recieve the message. But, in my application, it does not going to affect. Because, i am setting it false only for the duration when the javascript function is not ready to be called from the server. so, whether reverse-ajax is true or false is of no concern between the time when a page unloads itself and than reload.

Re: DWR: IE Page Refresh Very Slow

by ddduuu :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Ok, got you, thanks for your detailed explanation.

Dave

Nitin Thakur wrote:
I do not think that such problem will occur. when i set reverse-ajax false, that affects MY browser only. remember, an instance of the same javascript is running somewhere on the client who is about to recieve the message. and he has not set his reverse-ajax false. so, technically he should recieve the message pushed by the server.
If i am about to recieve any message sent from other chatters, and in case i set the reverse-ajax false just before server tries to push the message. Than yes, i definitely not recieve the message. But, in my application, it does not going to affect. Because, i am setting it false only for the duration when the javascript function is not ready to be called from the server. so, whether reverse-ajax is true or false is of no concern between the time when a page unloads itself and than reload.