Putting them fancy AJAX alerts at the top of the screen

Sugar Dev Team —  June 19, 2012 — 6 Comments

I came across a forums question like this the other day.

I see all those super flashy AJAX alerts that appear at the top of the screen while I’m using Sugar that look like this…

How can I use that same thing in my app?

This is really easy to do, and something you can trigger via javascript anywhere in your code. Here’s a small snippet on how to do this:

6 responses to Putting them fancy AJAX alerts at the top of the screen

  1. 

    can any one tell me where should i write this code

  2. 
    Markus Ziegler June 21, 2012 at 6:05 am

    Thanks again john :-)

  3. 

    How do you implement this in Sugar7?

    • 

      nvm, found it

      app.alert.show(‘message-id’, {
      level: ‘process’,
      });

      app.alert.dismiss(‘message-id’);

      thanks

Trackbacks and Pingbacks:

  1. Altering the SugarCRM UI to highlight areas – The Aust Gate - March 14, 2013

    […] on screen load. The SugarCRM post had an example of doing this with a very simple addition using ajaxStatus which prints out a brief message on the top of a screen.The code itself is really rather simple (in the best way of doing somethings […]

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s