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');
精彩评论