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 38 posts 79 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 Mayat6629 karma points admin mvp 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 Carey79 karma points
    Jan 24, 2012 @ 12:47
    Ric Carey
    0

    Ahh Nice One

  • Jonas Eriksson1787 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 Dingley1684 karma points
    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 Carey79 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
Our.umbraco.org is the community mothership for Umbraco, the open source asp.net cms. With a friendly forum for all your questions, a comprehensive documentation and a ton of packages from the community. This site is running Umbraco version 7.3.0-RC