jquery - Loading details on the index page -


i'm developing app in load pages in index.html using jquery. on loaded pages, there 1 particular page comes along links when clicked takes page give details link clicked. want able load details of clicked link particular div in index.html called news_details. how do that?

this code i'm using links:

<a href="index.html#news_details?<%= server.htmlencode(mm_keepurl) & mm_joinchar(mm_keepurl) & "news_id=" & rs_news.fields.item("news_id").value %>"><%=(rs_news.fields.item("headline").value)%> 

and here jquery loading page url div:

 <script language="javascript"> $('#news_details').bind('pageshow', function (){       var url = window.location.search.substring(1);      $('#news_details').load('news.asp'+ url); }); </script> 

do mean

$(function () {   var url = window.location.search.substring(1);   $('#news_details').load('news.asp?page='+ url);    $(document).on("click",".classofnewlink",function(e) {     e.preventdefault();     $("#news_details").load('news.asp?page='+encodeuricomponent(this.href));   }); }); 

Comments