I have a problem: I need to load a set of includes with ajax, but when I make the ajax and request the current URL, I get the page url.
I have a problem when I call a page via ajax; the problem is when I try to get the request URL in the page which is called with ajax, becau开发者_StackOverflow中文版se it doesn't work like an include.
For example: I have my page "prueba.adp" and "prueba-ajax.adp"
The page prueba.adp calls via ajax to prueba-ajax.adp.
So when I try to get the request URL in prueba-ajax.adp I get prueba-ajax.adp, but if I set an include I get prueba.adp.
Do you know any way to execute the ajax page and get the request url of the page which made the ajax call?
精彩评论