jquery plugins with sharepoint 2010
Hi Guys,
I get the basic concept of jquery like how to load the jquery module in sharepoint (whether you do it via a masterpage or on each individual page). What I don't understand is how to actually get a jquery plugin to work on sharepoint. I went online
and found some and when I download them and unzip the plugin there is normally a few folders (css, html folder, etc) and then one or two .js files in there. I tried putting that folder in a document library and then used a content editor webpage to point
to it, but it never does anything. What am I missing here? Thank in advance
February 27th, 2015 11:27am
hi,
Where have you put the jquery refrence?
the below url could help you with jquery and sharepoint.
http://www.codeproject.com/Articles/544538/JQuery-with-SharePoint
Let me know if this help.
Thanks
Bhism
February 27th, 2015 12:34pm
I've just placed it inside a CEWP so that it loads the module. My question I guess really is what do you do with the plugins once you download them? Do you just put the folder in a document library, create a CEWP and point the link to the .js
file in the library?
February 27th, 2015 12:52pm
I tried creating a file called jquery.js and placing this inside it:
<script language="javascript" type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.6.4/jquery.min.js"> </script>
<script language="javascript" type="text/javascript">
I then uploaded this file to a document library, created a new content editor web part and pointed the link to the .js file listed above. But whenever I got o save the page after that I just get an error that pops-up. So frustrating when I know
this is something simple I'm sure.
February 27th, 2015 1:28pm
hi,
refer the below articles to achieve what you want
http://www.codeproject.com/Articles/544538/JQuery-with-SharePoint
http://fitandfinish.ironworks.com/2010/01/the-best-way-to-add-custom-javascript-and-jquery-to-sharepoint.html
February 27th, 2015 2:24pm
I dont want to add it to my entire site, I'm just trying to add it to a page my a content editor web part. I've found several websites discussing how to do that, but they never work. It just gives me an error. Not sure why
February 27th, 2015 2:35pm
OK So I finally got jquery loaded for my single site, but I'm still confused as to how do I load an actual plugin. For instance, I just downloaded the slidebar jquery plugin (http://plugins.adchsm.me/slidebars/). When I download it there are
the following files:
slidebars.css
slidebars.js
slidebars.min.css
slidebars.min.js
slidebars.jquery.json
I'm confused now as to what I am supposed to do with these files in order to get them to run on my sharepoint page. I've tried everything and it never displays anything. I tried putting them all in a document library in a folder called "slidebar"
and then I created a new CEWP and in the link I tried linking it to each one of the files and it never works. I'm sure this is something extremely simple, but I just dont know what to do with them.
February 27th, 2015 4:47pm