Comments on: Referencing Javascript Files with SharePoint 2010 Custom Actions using SciptSrc http://www.endusersharepoint.com/EUSP2010/2010/03/14/referencing-javascript-files-with-sharepoint-2010-custom-actions-using-sciptsrc/ Just another WordPress weblog Fri, 28 Oct 2011 03:30:47 -0400 http://wordpress.org/?v=2.9.2 hourly 1 By: Naren http://www.endusersharepoint.com/EUSP2010/2010/03/14/referencing-javascript-files-with-sharepoint-2010-custom-actions-using-sciptsrc/comment-page-1/#comment-379 Naren Tue, 12 Apr 2011 15:55:48 +0000 http://www.endusersharepoint.com/EUSP2010/?p=23#comment-379 Hi Jan, I tried your <Custom ScriptSrc="" approach., but i could n't make it, the error is "Cannot make a cache safe URL for "myscript.js", file not found. Please verify that the file exists under the layouts directory. " but i kept the file myscript.js inside SHarepoint Layouts Mapped folder oly of my visual webpart project. please help me to add my custom .js file to SP 2010. Hi Jan, I tried your <Custom ScriptSrc="" approach., but i could n't make it, the error is "Cannot make a cache safe URL for "myscript.js", file not found. Please verify that the file exists under the layouts directory. " but i kept the file myscript.js inside SHarepoint Layouts Mapped folder oly of my visual webpart project. please help me to add my custom .js file to SP 2010.

]]>
By: djeeg http://www.endusersharepoint.com/EUSP2010/2010/03/14/referencing-javascript-files-with-sharepoint-2010-custom-actions-using-sciptsrc/comment-page-1/#comment-325 djeeg Tue, 14 Dec 2010 12:10:29 +0000 http://www.endusersharepoint.com/EUSP2010/?p=23#comment-325 Hi Jan, I have made a sandbox solution that grabs jQuery from either a CDN (Microsoft or Google) or a document library (http://spc3.codeplex.com/). It also attempts to get around the problem of document.ready() not working if you try to dynamically load the library. Regards Hi Jan,

I have made a sandbox solution that grabs jQuery from either a CDN (Microsoft or Google) or a document library (http://spc3.codeplex.com/). It also attempts to get around the problem of document.ready() not working if you try to dynamically load the library.

Regards

]]>
By: farid http://www.endusersharepoint.com/EUSP2010/2010/03/14/referencing-javascript-files-with-sharepoint-2010-custom-actions-using-sciptsrc/comment-page-1/#comment-320 farid Fri, 03 Dec 2010 00:58:00 +0000 http://www.endusersharepoint.com/EUSP2010/?p=23#comment-320 Nice Article. I created a feature to deploy the jquery script and all was working fine but now I can't insert a picture from Sharepoint with the Asset Picker dialog. i got this error: Line: 3377 Char: 5 Error: 'style' is null or not an object' Code: 0 Url: ...../cmssitemanager.js is there a solution for this? Nice Article. I created a feature to deploy the jquery script and all was working fine but now I can’t insert a picture from Sharepoint with the Asset Picker dialog. i got this error:

Line: 3377
Char: 5
Error: ’style’ is null or not an object’
Code: 0
Url: …../cmssitemanager.js

is there a solution for this?

]]>
By: Brandon Anderson http://www.endusersharepoint.com/EUSP2010/2010/03/14/referencing-javascript-files-with-sharepoint-2010-custom-actions-using-sciptsrc/comment-page-1/#comment-19 Brandon Anderson Mon, 22 Mar 2010 23:53:44 +0000 http://www.endusersharepoint.com/EUSP2010/?p=23#comment-19 Nice, Jan. Thanks for investigating this approach. On almost every SharePoint build I've been involved with, I need to create a custom master page, so I just add my script references in the master pgae. However, I think the feature approach could be useful when building no-code solutions that are deployed through a feature. How does this work if the site already includes jQuery--is there a check or does jQuery get loaded twice? Nice, Jan. Thanks for investigating this approach. On almost every SharePoint build I’ve been involved with, I need to create a custom master page, so I just add my script references in the master pgae. However, I think the feature approach could be useful when building no-code solutions that are deployed through a feature.

How does this work if the site already includes jQuery–is there a check or does jQuery get loaded twice?

]]>