Pulling and displaying text using the backend services and the kendo UI

3 posts, 0 answers
  1. Paul
    Paul avatar
    8 posts
    Member since:
    Dec 2013

    Posted 26 Mar 2014 Link to this post

    I am trying to figure how you would allow a person to add content into the "Homepage Content" field in a table in the back end and display on the index.html page of my app? I have looked at some of them sample apps but cant make them out?

  2. Anton Dobrev
    Anton Dobrev avatar
    532 posts

    Posted 27 Mar 2014 Link to this post

    Hello Paul,

    We assume that you want to render a specific HTML into your 'index' page with the hmtl string retrieved from a Backend Services content type. Here is a code snippet that will to this (presuming that the HomePageContent is a field of type "Text" and contains a valid html string).

    <div id="container"></div>
        var b = document.getElementById("container");
        var el = new Everlive("your-api-key-here");
        var myHtml;
        el.data("Content type name").getById("id of the item", function (data) {
            myHtml = data.result.HomePageContent;
            b.innerHTML = myHtml;
        }, function (err) {

    Hopefully, the Kendo UI Editor widget and Backend Services JavaScript SDK (along with its dedicated Kendo UI integration) will be helpful in accomplishing more complex scenarios.

    Anton Dobrev

    Build cross-platform mobile apps using Visual Studio and .NET. Register for the online webinar on 03/27/2014, 11:00AM US ET.. Seats are limited.

  3. Paul
    Paul avatar
    8 posts
    Member since:
    Dec 2013

    Posted 28 Mar 2014 in reply to Anton Dobrev Link to this post

    Nice, I got it to work.

    Thank you  ,
Back to Top