0
Experimental ajax in SL PHP
hey, i will testing ajax on SL. i think that is possible with the php editor. it is possible to refer to the own page in the code? I tried the complete url and the file name. but it doesnt work :/ thank you! https://code.sololearn.com/wGD1TB3e1Dar/?ref=app
3 ответов
+ 1
As far as I know, you can't. When you refer the the page of your code, you're referring to sololearn's PHP file. Your code is in a frame inside that php, this means it's sealed, you can't access it from outside the frame.
+ 1
The file where you do the Ajax request MUST be in the same domain than the PHP that handles it. Meaning, you can't access your server from sololearn. at least not that easily
0
ah okay.. thank you, maybe i try to load the file on my own server and refer it..