Problems with XMLHttpRequest multipart/x-mixed-replace

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Wilfred Nilsen

    #1

    Problems with XMLHttpRequest multipart/x-mixed-replace



    I am using the Mozilla XMLHttpRequest in multipart/x-mixed-replace mode
    such that the server can push data to the client.

    The problem that I encountered is that the onload event listener does
    not trigger if the server pushes data too frequently to the browser. I
    presume the new data replaces the old data before the JavaScript onload
    event listener gets a chance to execute.

    This is most likely a BUG in the browser. Just thought I should ask here
    before sending a BUG report.


    Thanks,
    Wilfred
  • Martin Honnen

    #2
    Re: Problems with XMLHttpRequest multipart/x-mixed-replace



    Wilfred Nilsen wrote:
    [color=blue]
    > I am using the Mozilla XMLHttpRequest in multipart/x-mixed-replace mode
    > such that the server can push data to the client.
    >
    > The problem that I encountered is that the onload event listener does
    > not trigger if the server pushes data too frequently to the browser. I
    > presume the new data replaces the old data before the JavaScript onload
    > event listener gets a chance to execute.
    >
    > This is most likely a BUG in the browser. Just thought I should ask here
    > before sending a BUG report.[/color]

    You can always file a bug on bugzilla. It will help to get the bug fixed
    if you provide a test case and some more details. How often do you push
    when Mozilla fails to load a response part? Does onerror fire in that case?



    --

    Martin Honnen
    http://JavaScript.FAQTs.com/

    Comment

    • Wilfred Nilsen

      #3
      Re: Problems with XMLHttpRequest multipart/x-mixed-replace



      I am using the XMLHttpRequest object as a way to send asynchronous data
      from a server to the client. The data can be sent at any time, thus the
      time between two packets can therefore be zero. Initially, 4 packets are
      sent with no time delay between the packets. The onload event listener
      triggers for the first packet only.

      /Wilfred



      *** Sent via Developersdex http://www.developersdex.com ***

      Comment

      • Martin Honnen

        #4
        Re: Problems with XMLHttpRequest multipart/x-mixed-replace



        Wilfred Nilsen wrote:
        [color=blue]
        > I am using the XMLHttpRequest object as a way to send asynchronous data
        > from a server to the client. The data can be sent at any time, thus the
        > time between two packets can therefore be zero. Initially, 4 packets are
        > sent with no time delay between the packets. The onload event listener
        > triggers for the first packet only.[/color]

        As said, you can file a bug on bugzilla.mozill a.org.

        --

        Martin Honnen
        http://JavaScript.FAQTs.com/

        Comment

        Working...