How to UPdate the existing JQuery assigned to Content Editor WebPart? RRS feed

  • Question

  • Hello All,

    I have a CEWP with Javascript assigend to it..how to modify the script assigned to?

    • Moved by Mike Walsh FIN Thursday, May 19, 2011 12:34 PM not general (From:SharePoint - General Question and Answers and Discussion (pre-SharePoint 2010))
    Thursday, May 19, 2011 12:14 PM


  • Put the page in edit mode, go to Web Part Properties for the CEWP (click on 'Modify Shared Web Parts' from the menu in the upper right part of web part).

    From here the jQuery can be loaded two ways:

    1) In the Source Editor - click the "Source Editor" button, a pop window will appear with the source in the pop up, change it as you need to and press OK

    2) if the Source is not in the Source Editor, then the Content is linked from a different file.. look in the "Content Link" text box, this should contain a path to the script if there is no script in the Source Editor.

    For maintainability, reuse, deployment, etc... The use of a Content Link is preferred over putting script directly into the CEWP.

    The SharePoint Hillbilly
    Fewer Big Words... More Pretty Pictures... http://www.SharePointHillbilly.com
    • Marked as answer by Leoyi Sun Thursday, May 26, 2011 9:37 AM
    Thursday, May 19, 2011 1:14 PM