Merhabalar,
Merhabalar elimde "daha fazla içerik yüle"ye tıkladğında content.html i yükleyen bir kod var. Ben her tıklandığında o sayfanın content idsini yüklemesini istiyorum. Bu kodu nasıl modifiye edebilirim? (Javascript bilgim yok denecek kadar azdır.)
<!-- <script type="text/javascript">
$(function(){
$("a[rel='tab']").click(function(e){
//e.preventDefault();
pageurl = $(this).attr('href');
$.ajax({url:pageurl+'?rel=tab',success: function(data){
$('#content').html(data);
}});
//to change the browser URL to the given link location
if(pageurl!=window.location){
window.history.pushState({path:pageurl},'',pageurl);
}
//stop refreshing to the page given in
return false;
});
});
$(window).bind('popstate', function() {
$.ajax({url:location.pathname+'?rel=tab',success: function(data){
$('#content').html(data);
}});
});