Click here to Skip to main content
15,513,143 members
Home / Discussions / JavaScript
   

JavaScript

 
GeneralRe: When IFrame load event is called ? Pin
Tridip Bhattacharjee10-Feb-16 3:09
professionalTridip Bhattacharjee10-Feb-16 3:09 
GeneralRe: When IFrame load event is called ? Pin
F-ES Sitecore10-Feb-16 3:16
professionalF-ES Sitecore10-Feb-16 3:16 
GeneralRe: When IFrame load event is called ? Pin
Tridip Bhattacharjee10-Feb-16 21:44
professionalTridip Bhattacharjee10-Feb-16 21:44 
QuestionJavascript on dynamic gridview textboxs Pin
HGCoolPal2-Feb-16 3:48
HGCoolPal2-Feb-16 3:48 
AnswerRe: Javascript on dynamic gridview textboxs Pin
Keith Barrow8-Feb-16 3:16
professionalKeith Barrow8-Feb-16 3:16 
QuestionNumber of day week in javascript Pin
Mazdak1-Feb-16 5:34
Mazdak1-Feb-16 5:34 
AnswerRe: Number of day week in javascript Pin
Keith Barrow1-Feb-16 5:56
professionalKeith Barrow1-Feb-16 5:56 
GeneralRe: Number of day week in javascript Pin
Mazdak1-Feb-16 6:03
Mazdak1-Feb-16 6:03 
Thanks, Yes it can be for timezone/localisation problem too. Here is my code:

function ff_bfQuickMode7256046_validation(element, message)
{

if(element.value == '' )
return 'Please select a date for your apppointement.\n';

var myday = new Date(element.value) ;
myday.setDate(myday.getDate());
var weekday = myday.getDay();
alert(weekday);
if (weekday == 6 || weekday == 0 ) {
if (message=='') message = element.name+" faild in my test.\n"
message = 'We are close on Saturdays and Sundays.\n';
ff_validationFocus(element.name);
return message;
} // if
return '';
} // ff_bfQuickMode7256046_validation


The probelm is I get two different numbers for WEEKDAY on two different computer. So are you telling me that getDay() should return the same value globaly for all OS or setting..?
Mazy

"This chancy chancy chancy world."


GeneralRe: Number of day week in javascript Pin
Keith Barrow1-Feb-16 6:10
professionalKeith Barrow1-Feb-16 6:10 
GeneralRe: Number of day week in javascript Pin
Mazdak1-Feb-16 6:12
Mazdak1-Feb-16 6:12 
GeneralRe: Number of day week in javascript Pin
Mazdak1-Feb-16 6:11
Mazdak1-Feb-16 6:11 
Questioncomparing two dates in javascript Pin
Member 1026351927-Jan-16 23:40
Member 1026351927-Jan-16 23:40 
QuestionRe: comparing two dates in javascript Pin
Richard MacCutchan28-Jan-16 0:17
mveRichard MacCutchan28-Jan-16 0:17 
AnswerRe: comparing two dates in javascript Pin
Richard Deeming28-Jan-16 2:46
mveRichard Deeming28-Jan-16 2:46 
AnswerRe: comparing two dates in javascript Pin
Beginner Luck31-Jan-16 20:24
professionalBeginner Luck31-Jan-16 20:24 
QuestionConvert div into image in Java Script. Pin
varunPes23-Jan-16 3:11
professionalvarunPes23-Jan-16 3:11 
AnswerRe: Convert div into image in Java Script. Pin
Beginner Luck25-Jan-16 15:24
professionalBeginner Luck25-Jan-16 15:24 
QuestionHow to redirect the weburl to particular country when user types in Browser. Pin
pradeep yajamanam21-Jan-16 4:17
pradeep yajamanam21-Jan-16 4:17 
AnswerRe: How to redirect the weburl to particular country when user types in Browser. Pin
F-ES Sitecore21-Jan-16 4:52
professionalF-ES Sitecore21-Jan-16 4:52 
GeneralRe: How to redirect the weburl to particular country when user types in Browser. Pin
Richard Deeming21-Jan-16 4:57
mveRichard Deeming21-Jan-16 4:57 
AnswerRe: How to redirect the weburl to particular country when user types in Browser. Pin
Beginner Luck27-Jan-16 15:49
professionalBeginner Luck27-Jan-16 15:49 
GeneralRe: How to redirect the weburl to particular country when user types in Browser. Pin
Richard Deeming28-Jan-16 2:07
mveRichard Deeming28-Jan-16 2:07 
QuestionNeed help with script Pin
Member 1227186218-Jan-16 10:27
Member 1227186218-Jan-16 10:27 
AnswerRe: Need help with script Pin
Richard Deeming18-Jan-16 11:45
mveRichard Deeming18-Jan-16 11:45 
QuestionGetting User Name Pin
Member 1226951817-Jan-16 9:20
Member 1226951817-Jan-16 9:20 

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.