0

I'm trying to do a fairly simple load function with Jquery (at least I think it is), but it simply isn't loading anything.

On this page here (http://new.visibilitysoftware.com/careers/), I am trying to load the div#center-stage from here: http://www.vspublic.com/VSCareers/Careers.aspx. I have tried it with and without the /careers.aspx. I have also tried it with #center-stage and #center-stage.content as jquery parameters for the function.

I'm sure it's something obvious, but I simply can't find it. I appreciate any help. Thanks

3
  • 1
    Please post the relevant code here with your question. Thanks. May 28, 2013 at 4:53
  • Same origin policy means you can only use ajax to load documents from the same domain/origin. You're trying to load content from a different domain May 28, 2013 at 4:54
  • Issue with jquery Easing..use firebug
    – swapnesh
    May 28, 2013 at 4:54

2 Answers 2

1

you will not be able to load data from external site because The Same Origin Policy enforced by the browsers.

Workaround for this is to implement "Access-Control-Allow-Origin", "*" header in the response from http://www.vspublic.com/VSCareers/Careers.aspx

1
  • Thank you for the help! I'll implement that.
    – jphogan
    May 28, 2013 at 23:24
0

Took a quick look at the page. This is happening due to restrictions due to same origin policy.

XMLHttpRequest cannot load http://www.vspublic.com/VSCareers/Careers.aspx. Origin http://new.visibilitysoftware.com is not allowed by Access-Control-Allow-Origin.

One way to use it is JSONP. I know an example would be helpful. Will add it as soon as I get some time.

1
  • Thank you for taking the time to answer. I appreciate it!
    – jphogan
    May 28, 2013 at 23:25

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.