Monthly Archives: March 2011

Minimum allowed date and maximum allowed date in jQuery

this.RegisterCustomValidationMethod(MAXALLOWEDDATE_METHODNAME, “function(value, element, param) { var newDate = $(element).datepicker(‘getDate’); var checkDate = $.glob.format(newDate, ‘yyyyMMdd’); return this.optional(element) || parseInt(param) > parseInt(checkDate);});”); this.RegisterCustomValidationMethod(MINALLOWEDDATE_METHODNAME, “function(value, element, param) { var newDate = $(element).datepicker(‘getDate’); var checkDate = $.glob.format(newDate, ‘yyyyMMdd’); return this.optional(element) || parseInt(param) < parseInt(checkDate);});”); … Continue reading

Posted in Jquery | 1 Comment

Creating Custom sharepoint alert template

<?xml version=”1.0″ encoding=”utf-8″?> <AlertTemplates> <AlertTemplate Type=”List” Default=”true” Name=”SPAlertTemplateType.GenericList”> <EventTypes IsVisible=”True”/> <Format> <Digest> <Header><HTML><![CDATA[<html dir = $Resources:core,PageDirection;> <head> <base href=”]]></HTML><GetVar Name=”SiteUrl” URLEncodeAsURL=”TRUE” /><HTML><![CDATA[“> <style> <!– .headertop1 { width: 100%; } .headercontent { color: #000000; font-family: $Resources:core,Alert_headercontent_font;; font-size: $Resources:core,Alert_headercontent_fontsize;; } .headercontent em … Continue reading

Posted in sharepoint | 2 Comments

Problem with Core.resx file in sharepoint

Use of core.en-GB.resx file with core.resx file creates an issue like the resource key won’t get replaced by the resource string value. You can either copy all the content into core.en-GB.resx or just removing the resx file with the current … Continue reading

Posted in sharepoint | 2 Comments

Hello world!

Welcome to WordPress.com. This is your first post. Edit or delete it and start blogging!

Posted in Uncategorized | 1 Comment