开发者

jQuery .load page without extension

Is it possible to .get or .load from a page without php/html extension? I meant the following:

I have this URL domain.com/page/3 and I want to get the contents of this page displayed on some other page.

I use

$('#div').load('/page/3');

But it doesn't work. Any suggestions? 开发者_如何学PythonThanks


UPD: The problem is solved using load of exact portion of the page. It worked with the following:

$('#div').load('/page/3 #container');


Try this (expecting your folder "page" exists, with a document called "3" inside) :

$('#div').load('page/3');


The problem is solved using load of exact portion of the page. It worked with the following:

$('#div').load('/page/3 #container');

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜