rashmi_k28 Posted July 31, 2008 Share Posted July 31, 2008 function CP_addDisabledDates(start, end){ if(arguments.length==1){ end=start; } if(start==null && end==null){return;} if(this.disabledDatesExpression!=""){ this.disabledDatesExpression+= "||"; } if(start!=null){ start = parseDate(start); start=""+start.getFullYear()+LZ(start.getMonth()+1)+LZ(start.getDate()); } if(end!=null){ end=parseDate(end); end=""+end.getFullYear()+LZ(end.getMonth()+1)+LZ(end.getDate()); } if(start==null){ this.disabledDatesExpression+="(ds<="+end+")"; } else if(end ==null){ this.disabledDatesExpression+="(ds>="+start+")"; } else{ this.disabledDatesExpression+="(ds>="+start+"&&ds<="+end+")"; } } I am getting an error as NULL is null or not an object Quote Link to comment Share on other sites More sharing options...
paul2463 Posted July 31, 2008 Share Posted July 31, 2008 Have a look <a href="http://lists.evolt.org/archive/Week-of-Mon-20050214/169524.html"> Here </A> Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.