Google

21 December 2011

New kalmstrom.com Tip: How To Add JavaScript To SharePoint



To help you get the most out of your SharePoint site, Peter Kalmstrom, Microsoft certified SharePoint expert and CEO of kalmstrom.com Business Solutions, has published another demo to the kalmstrom.com Tips section.

JavaScript + SharePoint = great possibilities
JavaScript used in a SharePoint site creates a powerful combination. You can put JavaScript in the master page of the site, so that it affects all pages, and you may also make a page layout that affects some pages or only one. With his new demo Peter wants to push those in the right direction who know how to use JavaScript but have not yet tried it with SharePoint. There are a lot of instructions on more advanced details available out there but not so much on how to actually do it in the right way from the beginning.

Hello World dialog
As a simple example Peter shows how to integrate a dialog with the text "Hello World" in a SharePoint 2010 site with the help of JavaScript ‒ and how to make it stay there! The trick is to use the Content Editor web part, which allows you to embed any markup right in the page. If you just add the piece of JavaScript to the HTML code of a page, it will not be saved. Peter also demonstrates how you can test and troubleshoot the JavaScript you have created. Welcome to have a look and try it yourself!

Connect Outlook to your SharePoint site
To get the most out of your SharePoint site you should also connect Outlook to it. HelpDesk OSP is a kalmstrom.com Outlook add-on that converts incoming e-mails to items in any SharePoint list. With HelpDesk OSP you may also publish to SharePoint directly from Outlook. This application helps you track, share and distribute issues also within a group that is geographically spread.  HelpDesk OSP is used by many Members of kalmstrom.com Community, and we also utilize it ourselves for the kalmstrom.com support e-mails. 

By Peter Kalmström
CEO and Systems Designer
kalmstrom.com Business Solutions

5 comments:

  1. Request you to let me know how to add JS in WSS3.0

    ReplyDelete
  2. Hi Ranjan,

    Peter has nothing ready for you now, but he recommends this site:

    http://sharepointjavascript.wordpress.com/

    I hope you will find what you are looking for there!

    ReplyDelete
  3. Thanks for the link, above link provided by you has been moved to http://spjsblog.com/

    It worked like a charm. He has demonstrated the JQuery integration as well.

    ReplyDelete
  4. Can you show me how to run an ssis package on SharePoint by clicking a button. Thanks!

    ReplyDelete
    Replies
    1. There are lots of boundaries of what can be done in JavaScript, for good reason. You would get warnings when trying to run a SSID package and also the user would have to have SQL Server Integration Services installed on their machine, which is probably not common.

      JavaScript is meant for client-side code, but you probably want something to run server-side. The technology you should be looking into is application-pages and ASP.NET code in a farm solution - not JavaScript.

      Good luck!
      Peter

      Delete