SitePoint Sponsor |
|
User Tag List
Results 1 to 3 of 3
Thread: Ajax Question
-
Oct 13, 2006, 08:17 #1
- Join Date
- Jan 2006
- Location
- England
- Posts
- 34
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
Ajax Question
Just a quick question on ajax, I am working on a script and it works find but what i am trying to do is host the PHP files on my host and but the html/javascript on a different server but linking to the PHP files on my host, will this work or do i have to have all the files on one host?
Andy
-
Oct 13, 2006, 08:19 #2
- Join Date
- May 2003
- Location
- Cambridge, UK
- Posts
- 2,366
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
You can't do cross-domain requests with Ajax (well, there are workarounds/hacks, but it's not easy or recommended). You'd be better off writing the PHP as a web service that exposes an API you can use.
-
Oct 13, 2006, 08:22 #3
- Join Date
- Jan 2006
- Location
- England
- Posts
- 34
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
Ok thanks for your help
Andy
Bookmarks