{"id":5281,"date":"2014-03-30T20:19:08","date_gmt":"2014-03-30T20:19:08","guid":{"rendered":"https:\/\/unknownerror.org\/index.php\/2014\/03\/30\/sharepoint2010-javascript-in-sharepoint-2010-using-visual-studio-2010-collection-of-common-programming-errors\/"},"modified":"2014-03-30T20:19:08","modified_gmt":"2014-03-30T20:19:08","slug":"sharepoint2010-javascript-in-sharepoint-2010-using-visual-studio-2010-collection-of-common-programming-errors","status":"publish","type":"post","link":"https:\/\/unknownerror.org\/index.php\/2014\/03\/30\/sharepoint2010-javascript-in-sharepoint-2010-using-visual-studio-2010-collection-of-common-programming-errors\/","title":{"rendered":"sharepoint2010 : javascript in Sharepoint 2010 using visual studio 2010-Collection of common programming errors"},"content":{"rendered":"<p>You can utilize JavaScript in your web parts just as you would HTML or CSS. As for it&#8217;s location, a common place to store these files is in the Style Library. You would then create a reference to the JavaScript file in your masterpage or page layout (depending on your needs) where it would be available at runtime.<\/p>\n<p>I would recommend using SharePoint Designer for managing and versioning these style-related files.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>You can utilize JavaScript in your web parts just as you would HTML or CSS. As for it&#8217;s location, a common place to store these files is in the Style Library. You would then create a reference to the JavaScript file in your masterpage or page layout (depending on your needs) where it would be [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-5281","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/5281","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/comments?post=5281"}],"version-history":[{"count":0,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/5281\/revisions"}],"wp:attachment":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/media?parent=5281"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/categories?post=5281"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/tags?post=5281"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}