Thursday, 15 July 2010

Where to place the JavaScript in SharePoint Foundation 2010's list form? -


We are new to SharePoint 2010 so that we would like to ask these questions.

  1. We are using SharePoint Designer 2010 for editing a list form (Newform, Edit and Disform) in SharePoint Foundation 2010. From the block of code behind a form, where should we place the javascript or javascript function (perhaps before or after a certain tag) at all places?

  2. I have heard that we can also include the script on a Content Editor Web Part. Will this be the same if we want to keep it on the code behind the form?

  3. How to call functions properly in the code behind the form? Call on a button click. Can you give an example code?

  4. In addition, can it call a function by creating a script in Notepad, save it to a shared document library, and write in the code you want

    thanks,

    Arnil

    If you use the script in each page, you can call it directly on the master page v4.master.

    If you use it on a particular page only on a content editor web part, you can call it in the same way

    I will give you additional JS files under csatalogs. Be sure to check in the script, make sure that you always check in the script, otherwise it will only be visible to the user who uploaded / changed it

No comments:

Post a Comment