Copied to clipboard

Flag this post as spam?

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


  • Boštjan 1 post 21 karma points
    May 31, 2011 @ 15:17
    Boštjan
    0

    Load content with an AJAX call

    Hi,

    I'm new to Umbraco and only started to figure out the ins and outs of it. I've been developing websites for almost 15 years now and have quite a bit of experience but most of it on a PHP platform. I'm trying to broaden my horizons here so please bare with me :)

    Anyway, I've figured out on my own the way document types, macros, templates, xslt files work and am now trying to do some other stuff. Namely I need to load a document content using an AJAX call. It's basically a panel with a menu (dynamic, which I figured out how to load) that loads content depending on the menu item selected (the documents loaded with the menu). What I need to figure out is how to get that content using an AJAX call since I don't want to reload the page.

    Is this done using Umbraco BASE extensions or am I off in my thinking here? If so, how exactly? Do I just write a class and then stitch together an HTML string in a method?

    Thanks for the help

     

  • James Drever 118 posts 149 karma points
    Jun 04, 2011 @ 22:12
    James Drever
    0

    Personally, yes I'd use BASE to achieve this.  See the documentation at http://our.umbraco.org/wiki/reference/umbraco-base/programming-a-class-for-the-base-system for more details.  Bit hard to advise on the specific of your class not knowing the details, but yes guess you'll end up returning a string.

  • Jeroen Breuer 4908 posts 12265 karma points MVP 5x admin c-trib
    Jun 05, 2011 @ 12:06
Please Sign in or register to post replies

Write your reply to:

Draft