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.
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.
Comment