Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
Clear All
new posts

    UploadItem - callback doesn't work under FireFox 3.0 on remote machine

    Hi Isomorphic,

    I have a trouble with UploadItem 6.0v.

    I try avoid reload page after submitForm().
    I have created "IFRAME" on my page into <body> tag:

    <iframe name="server_response" frameborder="0" style="display: none;"/>

    And serverResponse(objName, message) callback method into <head> tag.

    Also, I have added:
    target: "server_response"
    to my DynamicForm into create() method.

    I have added following code into server response:

    response.getWriter().print("<script>window.top.serverResponse(\"FileManagerServiceWindow\", \"" + message + "\");</script>");


    All works fine on my local machine (under Firefox 3.0 and IE 6) using machine name or localhost as server url.

    But It does'n work under Firefox 3.0 when I have deployed this code on remote machine. serverResponse(objName, message) doesn't run!

    I have found that response headers are different from local server and remove server.

    From local server:

    Server Apache-Coyote/1.1
    X-Powered-By Servlet 2.4; JBoss-4.2.2.GA (build: SVNTag=JBoss_4_2_2_GA date=200710221139)/Tomcat-5.5
    Content-Length 97
    Date Wed, 24 Sep 2008 07:35:15 GMT


    From remote server:

    Date Wed, 24 Sep 2008 06:45:31 GMT
    Server Apache-Coyote/1.1
    X-Powered-By Servlet 2.4; JBoss-4.2.2.GA (build: SVNTag=JBoss_4_2_2_GA date=200710221139)/Tomcat-5.5
    Vary Accept-Encoding
    Content-Encoding gzip
    Content-Length 125
    Keep-Alive timeout=5, max=100
    Connection Keep-Alive
    Content-Type text/plain

    Could you please help me with this issue.

    Thank you in advance.
    Anatoliy.

    #2
    Note that there's a built-in uploading subsystem in 6.5 that obviates the need to have to deal with details like this.

    Assuming that the actual contents of the response are identical, I would try getting the Content-Type correct (should be text/html) and, if that doesn't work, disabling Content-Encoding. However Content-Encoding is known to work with the Isomorphic-provided implementation in 6.5.

    Comment


      #3
      Thank you

      After change a content type to "text/html" it works fine.

      Thanks.

      Comment

      Working...
      X