View Single Post
Old 08-26-2012, 05:26 PM   PM User | #1
shaunthomson
New Coder

 
Join Date: May 2012
Posts: 89
Thanks: 51
Thanked 0 Times in 0 Posts
shaunthomson is an unknown quantity at this point
since on SSL, AJAX urls don't work?

Gidday

I have a whole bunch or AJAX calls that were working fine, until I changed my site to https

eg

Code:
type: "POST",
url: "dir1/page1.php"
was working fine, but now it invokes whatever AJAX 'error:' code I have set up.

I tried adding a forward slash before the url, but no good.

However, putting the full https url works:
Code:
https://www.mysite.com/dir1/page1.php
Is there a way to successfully do it with the relative urls, or do I have to use full ones?

Thanks guys
shaunthomson is offline   Reply With Quote