Ben kullanarak jQuery. Am Benim ana sayfası index.php. Bu sayfanın yük. Nasıl içten başka bir sayfa yüklemek yok. Sayfanın küçük bir blok demek?
Eğer yük komutunu kullanabilirsiniz. Bu gibi basit bir sayfa için:
<html>
<head>
<title>test</title
</head>
<body>
<div id="content"> </div>
</body>
</html>
Eğer böyle id = içerikle Div doldurabilir:
$('#content').load('yourUrl.php');
EDIT: yük (GET) değişti ()
get komutunun sözdizimi olacaktır:
$.get('yourUrl.php', function(data){
$('#content').html(data);
});
Bu gibi: $('.smallBlock').load('targetUnderSameDomain.php .anotherSmallBlock');
In the first part you select the block where you want to insert the block of the targeted file. The load function has two parts: The first part is where you select the targeted file, the second is optional, but there you can select an element within the targeted file's html.