GWT Frame not working in Mozilla Firefox or in Google chrome, but working fine in IE -


i trying download file server. normal gwt rpc call doesnot allow me that, , hence wrote servlet job me. client side, creating frame object, , set servlet url in it, , add frame object in root panel. when execute in ie, window pops asking save/open file. when execute same in firefox or google chrome browser, nothing happing. not getting request on servlet/server side. here slice of code :-

string servleturl = "http://localhost:13080/browser/ui/dataexportservlet?level=zero";

          frame frame = new frame(servleturl);     frame.setvisible(false);     rootpanel.get().add(frame); 

so, can please me out.

this might related same origin policy. both servlet , webapp running on port 13080? if differ, sop might fail this. if understand correctly, ie has more relaxed policy might work there not in chrome.

see http://en.wikipedia.org/wiki/same_origin_policy , can disable sop (same origin policy) on browser development?


Comments

Popular posts from this blog

python - Scipy curvefit RuntimeError:Optimal parameters not found: Number of calls to function has reached maxfev = 1000 -

c# - How to add a new treeview at the selected node? -

java - netbeans "Please wait - classpath scanning in progress..." -