Amnezia Professional MonkeyEstablished Member ★ 20 ★ Impact 15 Apr 9, 2006 824 views 4 replies #1 I kinda new to AJAX It seems i can call php scripts on my own server using XMLHttpRequest but i cant query php scripts on other peoples sites? Is this possible? if so how?
I kinda new to AJAX It seems i can call php scripts on my own server using XMLHttpRequest but i cant query php scripts on other peoples sites? Is this possible? if so how?
Y yeppers VIP Member VIP ★ 20 ★ Impact 109 Apr 11, 2006 #2 Amnezia said: I kinda new to AJAX It seems i can call php scripts on my own server using XMLHttpRequest but i cant query php scripts on other peoples sites? Is this possible? if so how? Click to expand... I dont think this is possible, with php you can alter the settings to allow it, but not with AJAX. I've never used it myself, yet, but you might want to read this about it: http://www.xml.com/pub/a/2005/11/09/fixing-ajax-xmlhttprequest-considered-harmful.html Around the 2nd or 3rd paragraph down Rhett.
Amnezia said: I kinda new to AJAX It seems i can call php scripts on my own server using XMLHttpRequest but i cant query php scripts on other peoples sites? Is this possible? if so how? Click to expand... I dont think this is possible, with php you can alter the settings to allow it, but not with AJAX. I've never used it myself, yet, but you might want to read this about it: http://www.xml.com/pub/a/2005/11/09/fixing-ajax-xmlhttprequest-considered-harmful.html Around the 2nd or 3rd paragraph down Rhett.
Jim_ Established Member ★ 20 ★ Impact 33 Apr 12, 2006 #3 If you want to query another page, create a php script on your server that loads the external page (include() maybe?) and load it with ajax.
If you want to query another page, create a php script on your server that loads the external page (include() maybe?) and load it with ajax.
Amnezia Professional MonkeyEstablished Member ★ 20 ★ Impact 15 Apr 12, 2006 #4 thanks guys, i managed to get around it by using AJAX to call a php curl() function
Y yeppers VIP Member VIP ★ 20 ★ Impact 109 Apr 12, 2006 #5 Jim_ said: If you want to query another page, create a php script on your server that loads the external page (include() maybe?) and load it with ajax. Click to expand... Smart! Amnezia said: thanks guys, i managed to get around it by using AJAX to call a php curl() function Click to expand... Glad to hear it
Jim_ said: If you want to query another page, create a php script on your server that loads the external page (include() maybe?) and load it with ajax. Click to expand... Smart! Amnezia said: thanks guys, i managed to get around it by using AJAX to call a php curl() function Click to expand... Glad to hear it