{"id":797,"date":"2012-02-10T20:16:35","date_gmt":"2012-02-10T20:16:35","guid":{"rendered":"http:\/\/www.stuartroberts.net\/?p=797"},"modified":"2012-02-24T09:28:53","modified_gmt":"2012-02-24T09:28:53","slug":"quick-tip-1","status":"publish","type":"post","link":"http:\/\/www.stuartroberts.net\/index.php\/2012\/02\/10\/quick-tip-1\/","title":{"rendered":"Set Status Bar Colour"},"content":{"rendered":"<p><strong>SharePoint Short #1<\/strong><br \/>\nTo set the colour of a SharePoint 2010 status message, it&#8217;s important to specify it in lower-case and not start with an upper-case letter.<\/p>\n<p>The MSDN page for setStatusPriColor, found <a href=\"http:\/\/msdn.microsoft.com\/en-us\/library\/ff408240.aspx\" title=\"setStatusPriColor\" target=\"_blank\">here<\/a>, shows the colour values starting with an upper-case letter.<\/p>\n<p>So, instead of:<\/p>\n<pre lang=\"javascript\">\r\nthis.statusId = SP.UI.Status.addStatus(\"Custom error message\", true);\r\nSP.UI.Status.setStatusPriColor(this.statusId, \"Red\");\r\n<\/pre>\n<p>you need to do:<\/p>\n<pre lang=\"javascript\">\r\nthis.statusId = SP.UI.Status.addStatus(\"Custom error message\", true);\r\nSP.UI.Status.setStatusPriColor(this.statusId, \"red\");\r\n<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>SharePoint Short #1 To set the colour of a SharePoint 2010 status message, it&#8217;s important to specify it in lower-case and not start with an upper-case letter. The MSDN page for setStatusPriColor, found here, shows the colour values starting with &hellip; <a href=\"http:\/\/www.stuartroberts.net\/index.php\/2012\/02\/10\/quick-tip-1\/\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_mi_skip_tracking":false,"jetpack_post_was_ever_published":false,"jetpack_publicize_message":"","jetpack_is_tweetstorm":false,"jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":false,"jetpack_social_options":[]},"categories":[44],"tags":[81,45],"jetpack_publicize_connections":[],"aioseo_notices":[],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/plx2I-cR","_links":{"self":[{"href":"http:\/\/www.stuartroberts.net\/index.php\/wp-json\/wp\/v2\/posts\/797"}],"collection":[{"href":"http:\/\/www.stuartroberts.net\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.stuartroberts.net\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.stuartroberts.net\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/www.stuartroberts.net\/index.php\/wp-json\/wp\/v2\/comments?post=797"}],"version-history":[{"count":13,"href":"http:\/\/www.stuartroberts.net\/index.php\/wp-json\/wp\/v2\/posts\/797\/revisions"}],"predecessor-version":[{"id":862,"href":"http:\/\/www.stuartroberts.net\/index.php\/wp-json\/wp\/v2\/posts\/797\/revisions\/862"}],"wp:attachment":[{"href":"http:\/\/www.stuartroberts.net\/index.php\/wp-json\/wp\/v2\/media?parent=797"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.stuartroberts.net\/index.php\/wp-json\/wp\/v2\/categories?post=797"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.stuartroberts.net\/index.php\/wp-json\/wp\/v2\/tags?post=797"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}