error in load method in jquery

Posted by Klbaiju under jQuery on 3/4/2015 | Points: 10 | Views : 400 | Status : [Member] | Replies : 2
Hi all,

In my application i want to a display a part of another page in current page.using following code

$('#ContentPlaceHolder1_btnaddress').click(function (e) {
e.preventDefault();

$('#display').load("Address.aspx #Address");
});

this is for displaying a div tag Address in the current page.i don't need complete page.

my problem is i want to call a function named display along with above code .

how it is possible.

if i use $('#display').load("Address.aspx") i will get everything .but i don't need the complete page.

i tried following code code

$('#display').load("Address.aspx #Address" ,display);
but not working
how to solve this

Regards
Baiju




Responses

Posted by: Bandi on: 3/4/2015 [Member] [MVP] Platinum | Points: 25

Up
0
Down
refer
http://api.jquery.com/load/
https://css-tricks.com/snippets/jquery/load-only-a-section-of-a-page/

Mark This Response as Answer
--
Chandu
http://www.dotnetfunda.com/images/dnfmvp.gif

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

Posted by: Bandi on: 3/4/2015 [Member] [MVP] Platinum | Points: 25

Up
0
Down
http://stackoverflow.com/questions/3272071/iframe-to-only-show-a-certain-part-of-the-page

Mark This Response as Answer
--
Chandu
http://www.dotnetfunda.com/images/dnfmvp.gif

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

Login to post response