locked
java script with share point list RRS feed

  • Question

  • hi,

    I am using share point 2007.

    is it possible to add some java script to a share point list /document library ?

    Tuesday, April 12, 2011 7:13 AM

Answers

  • Hi Prashanth,

    Yes you can upload .js file to any of the Doc Lib and implement a script on Doc lib / list.

    The reason behind uploading .JS file in doc lib is for reference because when Java script run it will find for the .js reference file.

    hth


    Warm Regards, Pratik Vyas | SharePoint Consultant | http://sharepointpratik.blogspot.com/
    • Marked as answer by Prashanth.net Wednesday, April 20, 2011 11:22 AM
    Wednesday, April 13, 2011 11:55 AM
  • you should notice that when you upload js in doc library, you write <script type="text/javascript" src="[doc library url]/[js name].js"></script> in master page or aspx .
     
    • Marked as answer by Prashanth.net Wednesday, April 20, 2011 11:22 AM
    Wednesday, April 13, 2011 3:45 PM

All replies

  • Hi Prashanth,

    What would you like to achieve with Java script ? (would you like to run any event with the script ?)

    or you just want to upload .js files to SharePoint doc lib ?


    Warm Regards, Pratik Vyas | SharePoint Consultant | http://sharepointpratik.blogspot.com/
    Tuesday, April 12, 2011 7:59 AM
  • hi partik,

    Thanks for ur replay,

    i want to cal some functions from .JS  files on mouseover of a field data of the list

    Thanks

    Prashanth J

    Wednesday, April 13, 2011 11:09 AM
  • Hi Prashanth,

    Yes you can upload .js file to any of the Doc Lib and implement a script on Doc lib / list.

    The reason behind uploading .JS file in doc lib is for reference because when Java script run it will find for the .js reference file.

    hth


    Warm Regards, Pratik Vyas | SharePoint Consultant | http://sharepointpratik.blogspot.com/
    • Marked as answer by Prashanth.net Wednesday, April 20, 2011 11:22 AM
    Wednesday, April 13, 2011 11:55 AM
  • you should notice that when you upload js in doc library, you write <script type="text/javascript" src="[doc library url]/[js name].js"></script> in master page or aspx .
     
    • Marked as answer by Prashanth.net Wednesday, April 20, 2011 11:22 AM
    Wednesday, April 13, 2011 3:45 PM