View Single Post
Old 11-11-2012, 07:56 AM   PM User | #2
devnull69
Senior Coder

 
Join Date: Dec 2010
Posts: 2,245
Thanks: 10
Thanked 530 Times in 524 Posts
devnull69 will become famous soon enough
Is the current page (the page from which you showed the Javascript code) on the exact same server as the requested information? So has the current page been served from http://win2012svr:8080?

If not, you will most probably get a security exception because of violation of the same origin policy of your browser.

If you have full access to this server you could set the response header to allow other origins. In PHP for example you can do it like this (if the current page is from http://www.example.com)
Code:
header('Access-Control-Allow-Origin: http://www.example.com');
devnull69 is offline   Reply With Quote