|
HTTP Streaming testing results
|
|
05-25-2010, 09:13 AM
Post: #11
|
|||
|
|||
|
RE: HTTP Streaming testing results
But the point that you are missing, and the reason why the IFRAME solution is really good for some implementations, is that the XMLHTTPRequest object in IE doesn't raise an event when a chunk of data is sent. That's why originally many people preferred the hidden IFRAME solution.
However, IE has recently come out with X-DomainRequest object. I haven't used it yet, but hopefully it'll take care of it's poor implementation of the XMLHTTPRequest object. |
|||
|
05-25-2010, 09:26 AM
Post: #12
|
|||
|
|||
|
RE: HTTP Streaming testing results
"But the point that you are missing"
Right, I keep on forgetting about the IE XHR implementation. I'm not too familiar with browser differences. |
|||
|
05-25-2010, 11:34 AM
Post: #13
|
|||
|
|||
RE: HTTP Streaming testing results
(05-25-2010 09:26 AM)York Wrote: "But the point that you are missing" Basically, IE 7 and 8 do not raise the onreadystatechanged event for readyState = 3 when it receives data chunks, like most other browsers do and the W3 standard states. |
|||
|
05-25-2010, 12:42 PM
Post: #14
|
|||
|
|||
|
RE: HTTP Streaming testing results
Is it a bug or an intentional problem created by Microsoft as per usual?
|
|||
|
05-25-2010, 02:14 PM
(This post was last modified: 06-05-2010 12:58 PM by York.)
Post: #15
|
|||
|
|||
RE: HTTP Streaming testing results
(05-25-2010 02:35 AM)krem Wrote: In this particular case, it would suffer from the same issue in IE since it would be using IE's XHR and resulting in no event being triggered for ready state 3. Quote:Why not use an existing library like jQuery to handle data transportation? Then you can encode your output as a JSON object (json_encode) and have jQuery handle it natively.Also jquery leaks memory like a sieve leaks water. I think in the end the best option would be to implement multiple solutions into one giant kludge of a library (that will never hopefully need to be touched afterward) and utilize each implementation based on the client's browser. So the general solutions are something along the lines of Iframes, XHR, Flash proxy. |
|||
|
05-28-2010, 03:02 AM
Post: #16
|
|||
|
|||
|
RE: HTTP Streaming testing results
What I have often seen done as well as attempted myself is dynamically loading script files based on the browser. The concept is not new and can be implemented on either the server or the client (browser).
The script files would contain browser specific implementations of the functionality in question. All versions would implement the same interface so cross-dependent JavaScript files wouldn't need to be modified. It's basic Abstraction 101, but with JavaScript |
|||
|
06-24-2010, 11:58 AM
Post: #17
|
|||
|
|||
|
RE: HTTP Streaming testing results
I found an interesting link, although, being unfamiliar with web technologies I am unsure of its usefulness.
http://www.devx.com/DevX/Article/8155 REST versus SOAP. Whats your take on the matter and how it applies to an AJAX-based MUD? |
|||
|
06-25-2010, 12:24 AM
Post: #18
|
|||
|
|||
RE: HTTP Streaming testing results
(06-24-2010 11:58 AM)York Wrote: I found an interesting link, although, being unfamiliar with web technologies I am unsure of its usefulness.Well, in all reality, you will most likely never ever use SOAP in a browser-based game, unless you really like to cause yourself pain. It defines way too much overhead to do simple things. REST, on the other hand, is much more simple and straight forward. I'm not a huge fan of using 'resources' as the target of the action, but I see how and why it defines what it does. A resource is uniquely identified via a URL. [FYI: when referring to a resource, just think of resource being any type of data or information] With REST, you are basically going back to the original definition of the HTTP protocol and using it properly. I try to stay inline with that in my works, but I often don't. REST basically defines that you use the 4 main HTTP actions for a single purpose:
Here's more resources on the subject of SOAP vs REST: http://www.ioncannon.net/meta/117/soap-vs-rest/ |
|||
|
« Next Oldest | Next Newest »
|

Search
Member List
Calendar
Help


