how to set the facebook style number notification?

I have a function named getnotification which is a json Ajax call.what i need is that the value returning from this Ajax call is “data.approvalSizelist”.This contains a value for the notification value,lets say “95” ,i want this value to be displayed as a notification number like we see in facebook,how can i do this?

     function getNotificationNumber(){
            $.ajax({
                dataType: "json",
                url: "retrieveApprovalNotificationNumber.action",
                data: null,
                success: function(data) {

                   alert(data.approvalSizelist);
                       },
                error: function() {
                    alert("error");
                }
            });
            }  

  • Approvals
  • I want to display the value in the top of approvals,how to do this?


    Source: json

    Leave a Reply

    This site uses Akismet to reduce spam. Learn how your comment data is processed.