window.open with $.getJSON

时间:2016-02-12 21:08:29

标签: javascript jquery json jsonp same-origin-policy

I am trying to populate the input fields from one web page with the input field values from another page. Since this violates Same Origin Policy, I have decided to try http://www.whateverorigin.org/ as a workaround solution. Here is the code:

find_by

So to clarify, I wish for the '#BorrFirstName' field on the current page to populate the '#UserName' field on calibercl.com.

The code I have seems to work at some level because when I console.log() the #UserName it shows the innerText property set to the value from the other page. So this is good.

But now my questions is how can I get the calibercl.com web page to open and display with this value? Simply doing a window.open does not work. I suspect it has something to do with json async or the window being out of scope but I am lost.

0 个答案:

没有答案