posts - 41, comments - 200, trackbacks - 0

My Links

News

These postings are provided "AS IS" with no warranties, and confers no rights.
Locations of visitors to this page virtusa corp sharepoint virtusa.com shehan peruma

Tag Cloud

Archives

Post Categories

javascript

There are 6 entries for the tag javascript
Google Feeds API
I was given with a simple requirement – create an online component that has the ability to pull RSS feeds asynchronously from websites. I could have written a server control, but that would mean I would need to write the logic to read the xml and parse it. Totally doable, but it was late in the day when the requirement came in and I wasn’t about to slave over Visual Studio to write manage code. OK, so long story short I used the Google Feed API to get the job done. Assuming you know jQuery the code...
  • Share This Post:
  • Share on Twitter
  • Share on Facebook
  • Share on Technorati

Posted On Thursday, September 01, 2011 5:31 PM | Feedback (0) |

Rate pictures using a Survey and jQuery
Here’s the scenario: You have a handful of images which you need people to rate. Unlike SharePoint 2010, 2007 does not offer a rating control so you’ll either have to purchase a commercial product or install the open source alternative or even develop something custom. All these are possible if the server ‘belongs’ to your team/department. But (like me) if the SharePoint farm is owned by some other team and is utilized by the whole company for day-to-day activates then admins would frown on such...
  • Share This Post:
  • Share on Twitter
  • Share on Facebook
  • Share on Technorati

Posted On Saturday, July 17, 2010 6:57 AM | Feedback (22) |

jQuery Slideshow
Here are steps on setting up a slideshow on your SharePoint site really fast using a Content Editor WebPart (CEWP), jQuery and a Picture Library. The jQuery for the slide show makes use of the Cycle plug-in located at http://jquery.malsup.com/cy... There are plenty of demos on the site along with instructions on using the API. Here are the steps to implement the slideshow on a SharePoint site: Download the jQuery library and the Cycle plug-in and upload them to a document library Create a picture...
  • Share This Post:
  • Share on Twitter
  • Share on Facebook
  • Share on Technorati

Posted On Tuesday, March 02, 2010 1:02 AM | Feedback (21) |

Pre-populate a textbox using jQuery
Here’s the scenario: I have a form which contains a textbox. This textbox should be populated with a query string value. Users should not be able to edit the value of the textbox while adding the item. Solution: The above can be achieved using a Content Editor Web Part (CEWP) and jQuery. Steps: 1. Append the NewForm.aspx url with the following: &PageView=Shared&To... 2. This will cause the ‘Add Web Part’ tool pane to show up. 3. Add a CEWP to the page. 4. Go the webparts properties...
  • Share This Post:
  • Share on Twitter
  • Share on Facebook
  • Share on Technorati

Posted On Thursday, February 25, 2010 7:23 PM | Feedback (6) |

JavaScript to 'Sign in as a Different User'
Blogging this mainly for my benefit, but if anyone else finds it useful - you're welcome :) In case you're working on a SharePoint site where the branding requires the removal of the Welcome links control then you'll loose the ability to 'Sign in as a Different User' to check the look-and-feel and functionality that different users will experience. One possible solution is to adjust you browser settings to always prompt for credentials and then restart your browser every time you need to sign in...
  • Share This Post:
  • Share on Twitter
  • Share on Facebook
  • Share on Technorati

Posted On Monday, April 06, 2009 2:09 PM | Feedback (1) |

JavaScript to 'E-Mail This Page'
Here is a bit of JavaScript that can be used by a site visitor to email a page. Nothing fancy - just a plain ol' mailto command. 1: <script type="text/javascript"> 2: function mailThisPage() 3: { 4: var link = window.location; 5: var emailSubject = "Check this out: "+ document.title; 6: var emailAddress=prompt("Please enter the recipients email address",""); 7: window.location = "mailto:"+emailAddress+"?Su... 8: } 9: </script> Technorati Tags: javascript...
  • Share This Post:
  • Share on Twitter
  • Share on Facebook
  • Share on Technorati

Posted On Tuesday, November 25, 2008 7:48 PM | Feedback (1) |

Powered by: