Click here to Skip to main content
15,886,773 members
Home / Discussions / JavaScript
   

JavaScript

 
Questiondynamic progress bar with respect to time Pin
amjadali25516-Aug-11 18:27
amjadali25516-Aug-11 18:27 
AnswerRe: dynamic progress bar with respect to time Pin
Richard MacCutchan16-Aug-11 22:39
mveRichard MacCutchan16-Aug-11 22:39 
QuestionValidation groups with jQuery validation plugin on ASP.NET webforms? Pin
zeego14-Aug-11 19:32
zeego14-Aug-11 19:32 
AnswerCROSS POST Pin
Not Active14-Aug-11 19:40
mentorNot Active14-Aug-11 19:40 
GeneralRe: CROSS POST Pin
zeego14-Aug-11 20:06
zeego14-Aug-11 20:06 
QuestionHow to Know The Selected Date is Previous in javascript Pin
Arunkumar.Koloth13-Aug-11 20:28
Arunkumar.Koloth13-Aug-11 20:28 
AnswerRe: How to Know The Selected Date is Previous in javascript Pin
DaveAuld13-Aug-11 22:21
professionalDaveAuld13-Aug-11 22:21 
AnswerRe: How to Know The Selected Date is Previous in javascript Pin
Niral Soni24-Aug-11 2:19
Niral Soni24-Aug-11 2:19 
/************************************************
function: CompareDates
Arguments: fromdate : type 'String' : format : DD/MM/YYYY
Arguments: todate : type 'String' : format : DD/MM/YYYY
Returns: Number value 
	if value = 1  : fromdate comes before todate
	if value = 0  : fromdate and todate are same
	if value = -1 : fromdate comes after todate
*************************************************/
function CompareDates(fromdate,todate) {
	// Assuming the date format = DD/MM/YYYY
	// modify following block if your date format is different
	// new Date(year,month,day)
	frmdt = new Date(fromdate.substring(6,10),fromdate.substring(3,5)-1,fromdate.substring(0,2));
	todt  = new Date(todate.substring(6,10),todate.substring(3,5)-1,todate.substring(0,2));

	if ( todt.getTime() > frmdt.getTime() ) {
		return 1;
	}
	else if( todt.getTime() == frmdt.getTime() ) {
		return 0;
	}
	return -1;
}

Thanks & Regards,
Niral Soni

Questioncodeprojectforums.com [modified] Pin
sivakumat11-Aug-11 1:27
sivakumat11-Aug-11 1:27 
Questionjquery (unknown) Pin
AndyInUK11-Aug-11 0:05
AndyInUK11-Aug-11 0:05 
AnswerRe: jquery (unknown) Pin
Pete O'Hanlon11-Aug-11 0:17
mvePete O'Hanlon11-Aug-11 0:17 
AnswerRe: jquery (unknown) Pin
BobJanova11-Aug-11 2:42
BobJanova11-Aug-11 2:42 
GeneralRe: jquery (unknown) Pin
AndyInUK11-Aug-11 5:43
AndyInUK11-Aug-11 5:43 
GeneralRe: jquery (unknown) PinPopular
BobJanova11-Aug-11 7:28
BobJanova11-Aug-11 7:28 
GeneralRe: jquery (unknown) Pin
AndyInUK12-Aug-11 1:53
AndyInUK12-Aug-11 1:53 
GeneralRe: jquery (unknown) Pin
Not Active12-Aug-11 2:32
mentorNot Active12-Aug-11 2:32 
GeneralRe: jquery (unknown) Pin
BobJanova12-Aug-11 6:53
BobJanova12-Aug-11 6:53 
AnswerRe: jquery (unknown) Pin
markjoseph123218-Aug-11 2:23
markjoseph123218-Aug-11 2:23 
QuestionMeaning of a syntax in jQuery Pin
CodingLover9-Aug-11 1:43
CodingLover9-Aug-11 1:43 
AnswerRe: Meaning of a syntax in jQuery [modified] PinPopular
Not Active9-Aug-11 1:55
mentorNot Active9-Aug-11 1:55 
GeneralRe: Meaning of a syntax in jQuery Pin
Manfred Rudolf Bihy9-Aug-11 2:38
professionalManfred Rudolf Bihy9-Aug-11 2:38 
GeneralRe: Meaning of a syntax in jQuery Pin
Not Active9-Aug-11 3:01
mentorNot Active9-Aug-11 3:01 
GeneralRe: Meaning of a syntax in jQuery Pin
Shameel9-Aug-11 4:30
professionalShameel9-Aug-11 4:30 
GeneralRe: Meaning of a syntax in jQuery Pin
Not Active9-Aug-11 5:29
mentorNot Active9-Aug-11 5:29 
GeneralRe: Meaning of a syntax in jQuery Pin
Wjousts9-Aug-11 8:28
Wjousts9-Aug-11 8:28 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.