1. Pat Vanden Bosche
  2. General
  3. Thursday, 22 October 2015
  4.  Subscribe via email
 My client uses a Mac and the calendar I built on her site doesn't populate. I did my research online and discovered this is because Mac expects relative path, not absolute. Can this be fixed soon? Or is this a problem in Lion, and therefore it can't be done? I hope not! I've spent a lot of time entering the next three months of events, and I have to make sure everyone can see it, not just those with a Windows system.

Here is what I found:

Answer:

I have a colleague with a similar problem on his OS Lion machine, but not a problem on our Snow Leopard machines. I stumbled across a solution that worked for me and may work for you. I can't see this portion of your code, but the URL that you are requesting is most likely an absolute path:

http://yourwebsite.com/someFolder/somePage.html

but what you want is a relative path:

someFolder/somePage.html

AJAX requires that all requests come from the same website. This is a principle of Same Origin Policy and is done for security reasons.

If you are requesting an absolute path to a link on the same website (as you probably are doing), the system should look and see that the request is from the same domain, in which case does not break Same Origin Policy. However, the person in charge of coding Lion's AJAX Same Origin Policy has a problem with their code that does not realize this is the case, causing the browser to think you are trying to run a Cross Domain Script. Hopefully they will realize this soon and fix it in the next update.
Responses (2)


There are %s replies to this question. If you want to see them you need a valid subscription.
If you have a valid subscription, please login now.
Visit store now
Powered by EasyDiscuss for Joomla!