You will always come across customers with interesting requirements and we had one. The SharePoint site has a document library in which content was organized within Document sets (i.e documents were created and stored within document sets). One particular field (say Field 1) was shared between the document set and the document to cascade the values. The requirement was to have unique values in Field 1 within the library. We could not set "Enforce unique values" for Field 1 since it will not allow us to share the value of the field with the documents inside the document set. JQuery as usual was the savior. We had to leverage the SPServices functions to achieve what was expected. SPService has a function SPRequireUnique which did not work well for us since it was large document library with more than hunderd thousand documents. SharePoint has a PreSave function which is invoked prior to saving the item in the Database. This is very handy when you need to perform custom v...
Building a menu using JQuery is too simple. Here the script reads from an XML file to build the menu items. Sample xml <Root> <Menu Text="Home" URL="" ToolTip="Home" ID="m1" > <SubMenu Text="About us" URL="" ToolTip="About us"></SubMenu> <SubMenu Text="Contact us" URL="" ToolTip="About us"></SubMenu> <SubMenu Text="Careers" URL="" ToolTip="About us"></SubMenu> </Menu> <Menu Text="Company" URL="" ToolTip="Home" ID="m2" > <SubMenu Text="Clients" URL="" ToolTip="About us"></SubMenu> <SubMenu Text="Management" URL="" ToolTip="About us"></SubMenu> </Menu> </Root> JQuery $(document).ready(function () { $.ajax({ ...