Timeline for Images library view and jquery
Current License: CC BY-SA 3.0
7 events
| when toggle format | what | by | license | comment | |
|---|---|---|---|---|---|
| Jul 1, 2015 at 15:11 | comment | added | TylerH | Can't you just replace $ with jQuery rather than declaring the $j variable? | |
| Jan 9, 2013 at 14:16 | vote | accept | Alexander | ||
| Jan 9, 2013 at 11:27 | comment | added | Fox | Also, dont ever use the Jquery event binding for body onload. Its going to cause problems with Sharepoint. You should always use This Function (built in SP Function) to load your custom scripts: ExecuteOrDelayUntilScriptLoaded(checkJQuery, 'SP.UI.MyLinksRibbon.js'); Read more here : blog.fidelityfactory.com/2012/04/03/when-to-load-my-ecma-script | |
| Jan 9, 2013 at 10:24 | comment | added | Vadim Gremyachev | It actually depends, for the scenario when you create jQuery enabled web parts: 1) deploy JavaScript files for web parts into hive 2) reference it in web parts (provide reference to js file(s) in Render() method for Web Parts, for Visual web parts in ASCX User Control). Regarding code from example, yes, it could be reused, but i suggest not to embed it directly into web part, but to create separate js file and reference it in web part | |
| Jan 9, 2013 at 8:42 | comment | added | Alexander | Thanks! One additional question - could you tell me some best practice how to use jQuery for SharePoint? as I understand the code from your answer have to be included in any custom web part. Am I right? | |
| Jan 8, 2013 at 22:16 | history | edited | Vadim Gremyachev | CC BY-SA 3.0 | added 12 characters in body |
| Jan 8, 2013 at 22:09 | history | answered | Vadim Gremyachev | CC BY-SA 3.0 |