Tag: jQuery
-
Move the “Add new item” to the top of a list page in SharePoint 2010
We did not like how SharePoint 2010’s “Add new item” was on the bottom of the page. we wanted to move it to the top. The following jQuery code moves it to the top of the page: $(“#s4-mainarea”).prepend($(“td.ms-addnew”)) hope that helps someone.
-
How to get the count of items returned in jQuery Autocomplete
In this post I used jQuery to autocomplete an input box with results from CRM 2011. I wanted to give the number of results returned for the particular autocomplete query. I chose to use the autocomplete open: parameter to get the number of results returned, and I put that result in a div with an…
-
SharePoint 2010, Client OM, jQuery Autocomplete and BCS/External lists
In this previous post, I used jQuery/SOAP/SPServices to access a SharePoint BCS list (an external list). I wanted to do the same thing using the Client Object Model (Some call it Clien OM? Or maybe CSOM?). Below is the code to access contact data in a BCS connection to Microsoft CRM 2011, and use it…
-
Accessing SharePoint 2010 BCS lists via SOAP/WebServices for use in a jQuery autocomplete
So it seems that you can’t access BCS list data via REST, according to this article. But it seems that you can access the list data through SOAP. I used the code below to query a BCS list that points to a MSCRM 2011 backend (I know I could go right to CRM via REST,…
-
Pseudo workflow approval with out SharePoint Workflows.
I wanted to have a form that a person would submit (for an example a request of some type) and then it would be approved by the appropriate people. I find the built in workflow functionality too limiting and too difficult for users, so this is what I came up with: I would have one…
-
Using ajax to query XML in SharePoint Doc Lib, for use in a form’s input autocomplete
Long title, but I wanted to get across what I was trying to do. If I had and XML file in a document library (you could mail enable the doc lib, and send XML from a query in SQL server using the “FOR XML” statement!), could I use jquery to add Autocomplete values to an…
-
jQuery, SharePoint Web Services and adding thumbnail to a List
We have a SharePoint list with thumbnails attached to the list items. The request was to show a thumbnail of the image that is attached. I believe this can be done via SharePoint designer, but I thought jQuery would be easier. I added a Content Editor WebPart to the top of the page. Next I…
-
My CEWP JQuery code to play flash files in a Modal
I have Flash files in a Document Library. I wanted to have users click the flash files (swf) and have them open up in a hidden div, rather than opening in a different window. I added the code below to a CEWP:
-
Hide a field in a SharePoint edit form based on other values
We have a form (list) that we want to have everyone edit and give comments. Once everyone has edited the item, we want an “overall status” field to trigger a workflow (send extended email). Be we did not want the overall status to be changed until everyone has chimed in. To achieve this, we created…
-
How to make a field in a SharePoint Edit form readonly
Paul Galvin showed how to hide a field in a SharePoint. I wanted to use this code to make a field “read only” once a from has been submitted. Forgetting about DataSheet view (for now), we can put a Content Editor Webpart on the top of the EditFrom.aspx page (to add a CEWP to the…
