A Practical Guide to SharePoint 2013

A Practical Guide to SharePoint 2013
A Practical Guide to SharePoint 2013 - Book by Saifullah Shafiq
Showing posts with label jquery. Show all posts
Showing posts with label jquery. Show all posts

Thursday, February 28, 2013

JQuery functionality does not work in your SharePoint pages!!

Scenario: You develop something using JQuery in a SharePoint page. The page loads fine on your machine but when you deploy it, users are not able to use the functionality. Page loads fine and users see it so you think it's not permissions related. Here are some tips you should try to resolve the issue:

1. Most common mistake that people make is that they forget to publish the jquery library file. Of course, this happens only if you store jquery library file in your SharePoint site. Some people store the file in the _layouts folder. Some access it directly from a CDN. In case, you are storing in SharePoint site, make sure all users have read access to that site or library. Then make sure, you have published the jquery file as a major version. Right click jquery file and click "publish a major version". Now all users should be able to use the jquery functionality

More detail: If you the jquery file has not been published as a major version, users can still use it but you will have to give them contribute permissions. Read permissions will not work. If you want users to be able to use jquery with the read permissions, then publish the jquery library file as a major version.

2. If you are storing jquery library file in "Styles Library", make sure all users have at least read access to this library.

3. Recheck the jquery path in your code. It may be pointing to your test or development environment. Make sure the path is correct.

Sunday, October 2, 2011

JQuery For SharePoint Calendar(Via ken zheng )

Extracted

Recently I spent some time on developing a resource booking calendar. Use quite lot of JQuery to color the screen, change the feel.

One key find is in the JavaScript you need to be careful about the time for the script to run.

For example, one of the challenges I have is when user double click the calendar, a new event window pop up. but because I have allowed all resources showing. All resources are in the right select box.

You can read complete post by clicking here.


Thursday, September 22, 2011

jQuery is “Fast Food” Development – SPC314 Session Teaser #SPC11 (Via geeks with blog)

Extracted from the original post

“You ever have an epiphany? Have you ever tried to spell “epiphany” without spell check? So, today I was working on my slide deck for the SharePoint Conference in Anaheim on Best Practices with jQuery and SharePoint and I had a little light bulb moment. jQuery is “Fast Food” development. In those three little words you get an immediate understanding and visual that pretty much hits the nail on the head for what you are getting into with jQuery.

I then threw together the following two slides to flesh out the idea more. I have no idea if they will end up in the final deck, but I think it’s a great conversation starter.”

For complete article click here.


Tuesday, August 23, 2011

Taming Long SharePoint List Forms Using jQuery to Break Them into Sections (Via Marc)

Extract from the original post “Do you have any lists in SharePoint where the forms seem to go on and on, marching down the page, seemingly ad infinitum? I’ve seen lists which have over a hundred, even over 300 columns. This is a horrible thing to do to your users for so many reasons, but one of the primary reasons is that the list forms are simply unmanageable and in many cases unfathomable.

If you do have that many columns in a list and they really do need to be there, consider building custom “sub-forms” which take a more wizard-like approach. What I mean by this is that you might have a relatively short initial, customized version of the New Form which collects all of the required information. When your user saves that form, you can use SPRedirectWithID from SPServices to go to the next form in the sequence, and so on. You could, of course, develop totally custom forms, whether by using traditional .NET development or by using jQuery, and probably jQueryUI plus other plugins, and the SPServices and the Web Services to write the data into your list(s).

Complere blog post here.

Wednesday, April 27, 2011

Adding jQuery to Every Page in a SharePoint (Via andrewconnell)

Newer and much more elegant solution presented by Andrew to add jQuery to every page in SharePoint.

For complete post please visit here.