开发者

Cross server java scripting

I have an application running in websphere that invokes a new window which is loaded by weblogic server. When I close the child window which is running in weblogic server, I would like to refresh the parent window running in websphere.

I tried the following ways but all of them were throwing permission denied script e开发者_StackOverflow中文版rror.

window.opener.location.reload();
window.parent.functionName();

Please suggest a way to over come the cross server scripting error.


i will assume that the 2 servers are hosted from/referenced via different domain names ie:

server1.com/ and server2.com/

Some browser functions are limited when called from a page with a different top level domain name.

you can use different sub-domains with the same top level domain though ie:

server1.server.com/ server2.server.com/

with this configuration browsers will let you do anything.


I have not tired it out but previously I have seen that Cross domain calls were a problem with regular raw javascript. But was working pretty easily with JQuery APIs. Have a look in that direction.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜