I am in a project where I need to connect to a client's server and retrieve data for some graphs.
The client wants this to be something in real time (they have a script that is listening for connections and feeds data constantly).
My big problem is that I don't think this can be done in IE as easy as it would be done in Firefox or Chrome. Firefox and Chrome both support web sockets so I think I could make something that would do exactly what the client wants.
In IE the only way I could do this is by using a setTimeout with an ajax call.
Is there any other alternative for IE??
For now we're using jquery .ajax() and setting a callback for the onReadystageChanged event that handles the server response when the readyState == 3. But this doesn't work as expected because the connection closes after the first response.
Also, I am using IIS with Application Request Routing module as a proxy and a URL rewriting rule because we're using cross domain services. But this module uses a buffer with at least 1KB that corrupts the server response. The services were created by another company that won't implement CORS specification in their server.
How can I work around this and receive the response without buffering?
Thank you
JavaScript questions and answers, JavaScript questions pdf, JavaScript question bank, JavaScript questions and answers pdf, mcq on JavaScript pdf, JavaScript questions and solutions, JavaScript mcq Test , Interview JavaScript questions, JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)