I want to perform an Ajax request to a page's content. The content is a list of content items I custom created. I want to display the next 5 items on an onclick event.
To do this do I have to use /base? Or is there another way. Is it possible to directly call the content using Javascript/ Ajax?
You are on v7 hence use webapi controllers that inherit from UmbracoApiController i believe in 7.3 you will get a layer to do this kind of stuff so you dont have to write it.
Ajax call to Umbraco content
Hi,
I want to perform an Ajax request to a page's content. The content is a list of content items I custom created. I want to display the next 5 items on an onclick event.
To do this do I have to use /base? Or is there another way. Is it possible to directly call the content using Javascript/ Ajax?
Thanks,
Damon,
You are on v7 hence use webapi controllers that inherit from UmbracoApiController i believe in 7.3 you will get a layer to do this kind of stuff so you dont have to write it.
Regards
Ismail
Damon,
Github link to the new umbraco rest api https://github.com/umbraco/UmbracoRestApi
is working on a reply...