Tuesday 15 February 2011

javascript - Cross Domain application Page display via post call -



javascript - Cross Domain application Page display via post call -

we have 1 issue in displaying other domain page in our application. here issue: consider applications ns , tpt, need display application tpt page in application ns , need pass sensitive info ns tpt.

when tried finish page tpt , display in ns, don't see info in browser though see finish page through view-source (because of same origin policy).

is there anyway can done overcoming 'same origin policy'?

here code used ns:

$.ajax({ url : "http://localhost:8090/tpt-web/jas/dashboard/home.action", type : "post", cache : false, info : "user:raj", datatype : "text", success : function(result) { var newwindow = window.open("http://localhost:8090/tpt-web/jas/dashboard/home.action", "", "height=815,width=680,top=0,right=250,toolbar=no,location=no,directories=no,status=yes,menubar=no,scrollbars=no,resizeable=no"); newwindow.document.write(result) }, error : function(xmlhttprequest, textstatus, errorthrown) { alert('error occured while connecting tpt application'); } });

javascript jquery cross-domain same-origin-policy allow-same-origin

No comments:

Post a Comment