Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Thomas Lee 38 posts 79 karma points
    May 19, 2015 @ 14:57
    Thomas Lee
    0

    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!

  • Dave Woestenborghs 3504 posts 12135 karma points MVP 9x admin c-trib
    May 20, 2015 @ 09:47
    Dave Woestenborghs
    0

    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

  • This forum is in read-only mode while we transition to the new forum.

    You can continue this topic on the new forum by tapping the "Continue discussion" link below.

Please Sign in or register to post replies