Copied to clipboard

Flag this post as spam?

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


  • greengiant83 88 posts 109 karma points
    Apr 05, 2011 @ 19:40
    greengiant83
    0

    Custom save message balloon from javascript

    You know that little message balloon that pops up when you save a document?  I want to show that in my custom section.  I see that I can make my page inherit from UmbracoEnsuredPage and use ClientTools.ShowSpeechBubble.  The problem is that I need to be able to display it from javascript on the client side.  

     

    Anyone know how to do that?

  • Lee Kelleher 4026 posts 15837 karma points MVP 13x admin c-trib
    Apr 05, 2011 @ 20:55
    Lee Kelleher
    1

    Hi greengiant83,

    You can call the speech bubble using JavaScript with the following...

    UmbClientMgr.mainWindow().UmbSpeechBubble.ShowMessage('info', 'This is the header', 'This is the body text.');

    The values for the first parameter are: "save, info, error, success, warning".

    Cheers, Lee.

  • Giuseppe 34 posts 56 karma points
    Nov 02, 2011 @ 12:42
    Giuseppe
    0

    I don't find "UmbClientMgr". I'm coding in custom class under App_code of type ApplicationBase. In which way I can show a custom message? I must reference something?

    Thanks

  • Tom Fulton 2030 posts 4998 karma points c-trib
    Nov 02, 2011 @ 12:53
    Tom Fulton
    1

    The above is the javascript method I believe, to call it from .NET:

    umbraco.BasePages.BasePage.Current.ClientTools.ShowSpeechBubble(umbraco.BasePages.BasePage.speechBubbleIcon.success, "Title here", "Message here");

    -Tom

  • Giuseppe 34 posts 56 karma points
    Nov 02, 2011 @ 14:03
    Giuseppe
    0

    It works fine!

    Thanks a lot, Tom

  • Keyur Shah 14 posts 44 karma points
    Oct 09, 2014 @ 12:48
    Keyur Shah
    0

    I want to display speech bubble message on Save event

    Any help ?

     

    Thanks,

  • 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