I am really new to Umbraco, currently working on my first project. I am trying to do an ajax call to retrieve a set of data that belongs to a doctype.
My mind is wired to work through the conventional way of calling a method(id) and returning the relevant data. But i haven got a clue how to do it, most of my googling effort lands me on AJAX form, it doesnt help with the data retrieving part.
How to AJAX Post/Get...
Hi Guys,
I am really new to Umbraco, currently working on my first project. I am trying to do an ajax call to retrieve a set of data that belongs to a doctype.
My mind is wired to work through the conventional way of calling a method(id) and returning the relevant data. But i haven got a clue how to do it, most of my googling effort lands me on AJAX form, it doesnt help with the data retrieving part.
Is there any Kindsoul outthere that can guide me?
Thanks in advance!
There are 2 ways you can solve this.
Create a surface controller and call a action on that :
https://our.umbraco.org/documentation/Reference/Templating/Mvc/surface-controllers
Or create a web api controller :
https://our.umbraco.org/documentation/Reference/WebApi/
Dave
is working on a reply...