Steven JW Kennedy

My Blog

Archive for April 18th, 2011

SP&GM: Step Four – Upload the JavaScript file

Posted by Steven Kennedy on April 18, 2011


Previous post in series: SP& GM: Step Three – Create a new Web Page and add a DataView

Next post in series: SP&GM: Step Five – Add a Content Editor web part [to be posted]

 

At the end of this post is the example JavaScript that I used to generate the Google Map. There’s also a link to a file with the code. Either copy or download the code and create a text file with it in. Don’t forget to replace the text, in the example code, ‘<insert your own Google Maps API key here>’ with your own Google Maps API key.

Upload the resulting text file to SharePoint. You can choose where you want to save this file to, a special Document Library for JavaScripts perhaps? In my case I just put it in the same Document Library as I’d created the web part web page. Once uploaded you’ll need to make a note of the URL for the file. I usually select the file and then select ‘View Properties’ from the dropdown. In the resulting properties display I right click on the name of the file and select ‘Copy shortcut’.

 

 

Previous post in series: SP& GM: Step Three – Create a new Web Page and add a DataView

Next post in series: SP&GM: Step Five – Add a Content Editor web part [to be posted]

Posted in Google, SharePoint 2010 | Tagged: , | Leave a Comment »