Load function Error in jquery

Posted by Klbaiju under jQuery on 6/25/2014 | Points: 10 | Views : 468 | Status : [Member] | Replies : 1
Hi,following code is for loading a page in current page

$('#profit').click(function (e) {
e.preventDefault();
$('#disp').load("Profit.aspx");
});

the problem is ,in Profit.aspx there is client side paging.but paging is not working.when i run Profit.aspx independly paging is working.

How to solve this problem.

Regards

Baiju




Responses

Posted by: kgovindarao523-21772 on: 6/25/2014 [Member] [MVP] Bronze | Points: 25

Up
0
Down
Hi,
jQuery load function Load data from the server/path and place the returned HTML into the matched element.(here #dsp)
but the problem in your case is, it loads only html content and not the scripts .
if your pagination logic is written in a script, it wont work here.
write your pagination logic in external js file and refer in this page also. it may work

Thank you,
Govind

Klbaiju, if this helps please login to Mark As Answer. | Alert Moderator

Login to post response