I WANT TO MAKE AN AJAX CALL TO THE CONTROLLER . BECAUSE WHEN I DO
$(".myblogs").load("@Umbraco.NiceUrl(1121)?Gr=@intItemsPerPage", function () {
});
THIS IS RETURNING AN ENTIRE PAGE . a page inside a page . So am thinking maybe i can make an ajax call to the controller and retrieve just the model , pass each model of specific id to my view .
Retrieve Model in surfaceController
Actually i retrieved my model like this in the view
Now i want to use a surfaceController .. Is there a way i can retrieve the mode l please?
Hi Akeem. I'm not sure exactly what you mean but maybe with some more info I can help out:
Why do you want a SurfaceController?
I WANT TO MAKE AN AJAX CALL TO THE CONTROLLER . BECAUSE WHEN I DO
THIS IS RETURNING AN ENTIRE PAGE . a page inside a page . So am thinking maybe i can make an ajax call to the controller and retrieve just the model , pass each model of specific id to my view .
please i hope you understand what i mean
I see, check out this post: https://our.umbraco.org/forum/umbraco-7/using-umbraco-7/75559-pulling-child-node-content-via-ajax-or-some-other-method
is working on a reply...