开发者

Ajax load a page like an include

开发者 https://www.devze.com 2023-03-02 04:11 出处:网络
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: 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?

0

精彩评论

暂无评论...
验证码 换一张
取 消