Copied to clipboard

Flag this post as spam?

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


  • Ric Carey 50 posts 93 karma points
    Jan 24, 2012 @ 12:26
    Ric Carey
    1

    Live Update?

    Pretty new to asp.net.

    Coming from a php background, razor isnt to dissimilar for me.

    Ive got a macro rending out some images. How can i get then to automatically update on the rendered page? Some sort of Ajax?

     

    So the user updates them and then the website updates as it happens. I also want to control the change with Jquery.

     

    Is this possible? Any help is apprectiated.

     

     

  • Ismail Mayat 4511 posts 10090 karma points MVP 2x admin c-trib
    Jan 24, 2012 @ 12:42
    Ismail Mayat
    0

    Ric,

    By default when new image is added the website will update however it would need a page refresh.  Do you mean page update without refresh? If so then you need to take a look at SignalR see http://joeriks.com/2011/11/21/using-signalr-with-umbraco-to-broadcast-messages-or-chat-15-minutes/ also the page http://our.umbraco.org/now is built using signalR.

    Regards

     

    Ismail

  • Ric Carey 50 posts 93 karma points
    Jan 24, 2012 @ 12:47
    Ric Carey
    0

    Ahh Nice One

  • Jonas Eriksson 930 posts 1825 karma points
    Jan 25, 2012 @ 12:16
    Jonas Eriksson
    0

    Hi Ric,

    following up on our short twitter discussion

    so you're doing live image updates on publish with the help of signalR? That is really cool, I would love to read more about how you progress.

    cheers

    Jonas

    /the link to doc about hooking to publish event http://umbraco.com/follow-us/blog-archive/2008/12/10/working-with-events-in-umbraco-version-4.aspx

  • Simon Dingley 1470 posts 3427 karma points c-trib
    Jan 26, 2012 @ 12:38
    Simon Dingley
    0

    I have simialr requirements for a live updates system to roll out and this looks quite interesting, Ric did you get anywhere with your solution - anything to look out for?

  • Ric Carey 50 posts 93 karma points
    Jan 27, 2012 @ 10:11
    Ric Carey
    0

    I used Jonas' example (http://joeriks.com/2011/11/21/using-signalr-with-umbraco-to-broadcast-messages-or-chat-15-minutes/) and then edited the MyConnections.cs file to send the broadcast on publish. Its really quite a simple plug-in and play kind of system when youve got an example to play with.

    Ill tweet you an example of it in action when im done Jonas.

Please Sign in or register to post replies

Write your reply to:

Draft