Want to become a Vibe Coder? Join Vibe Coding Training here
x
C# Corner
Tech
News
Videos
Forums
Jobs
Books
Events
More
Interviews
Live
Learn
Training
Career
Members
Blogs
Challenges
Certification
Contribute
Article
Blog
Video
Ebook
Interview Question
Collapse
Feed
Dashboard
Wallet
Learn
Achievements
Network
Refer
Rewards
SharpGPT
Premium
Contribute
Article
Blog
Video
Ebook
Interview Question
Register
Login
SharePoint Progress Alert Code
WhatsApp
Sagar Pardeshi
Oct 06
2014
1.3
k
0
0
<script type=
"text/ecmascript"
language=
"ecmascript"
>
var
statusId =
''
;
var
notifyId =
''
;
function
AddNotification()
{
notifyId = SP.UI.Notify.addNotification(
"Hello World!"
,
true
);
}
function
RemoveNotification()
{
SP.UI.Notify.removeNotification(notifyId);
notifyId =
''
;
}
function
AddStatus()
{
statusId = SP.UI.Status.addStatus(
"Status good!"
);
SP.UI.Status.setStatusPriColor(statusId,
'Blue'
);
}
function
RemoveLastStatus()
{
SP.UI.Status.removeStatus(statusId);
statusId =
''
;
}
function
RemoveAllStatus()
{
SP.UI.Status.removeAllStatus(
true
);
}
</script>
<
input
id
=
"Button1"
type
=
"button"
value
=
"Add Notification"
onclick
=
"AddNotification()"
/>
<
input
id
=
"Button2"
type
=
"button"
value
=
"Remove Notification"
onclick
=
"RemoveNotification()"
/>
<
p
>
</
p
>
<
input
id
=
"Button3"
type
=
"button"
value
=
"Add Status"
onclick
=
"AddStatus()"
/>
<
input
id
=
"Button4"
type
=
"button"
value
=
"Remove Last Status"
onclick
=
"RemoveLastStatus()"
/>
<
input
id
=
"Button5"
type
=
"button"
value
=
"Remove All Status"
onclick
=
"RemoveAllStatus()"
/>
SharePoin
client object model in SharePoint
Progress Code in SharePoint
Up Next
SharePoint Progress Alert Code