Click here to Skip to main content
15,889,335 members
Home / Discussions / JavaScript
   

JavaScript

 
GeneralRe: When IFrame load event is called ? Pin
Tridip Bhattacharjee10-Feb-16 2:09
professionalTridip Bhattacharjee10-Feb-16 2:09 
GeneralRe: When IFrame load event is called ? Pin
F-ES Sitecore10-Feb-16 2:16
professionalF-ES Sitecore10-Feb-16 2:16 
GeneralRe: When IFrame load event is called ? Pin
Tridip Bhattacharjee10-Feb-16 20:44
professionalTridip Bhattacharjee10-Feb-16 20:44 
QuestionJavascript on dynamic gridview textboxs Pin
HGCoolPal2-Feb-16 2:48
HGCoolPal2-Feb-16 2:48 
AnswerRe: Javascript on dynamic gridview textboxs Pin
Keith Barrow8-Feb-16 2:16
professionalKeith Barrow8-Feb-16 2:16 
QuestionNumber of day week in javascript Pin
Mazdak1-Feb-16 4:34
Mazdak1-Feb-16 4:34 
AnswerRe: Number of day week in javascript Pin
Keith Barrow1-Feb-16 4:56
professionalKeith Barrow1-Feb-16 4:56 
GeneralRe: Number of day week in javascript Pin
Mazdak1-Feb-16 5:03
Mazdak1-Feb-16 5: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 5:10
professionalKeith Barrow1-Feb-16 5:10 
GeneralRe: Number of day week in javascript Pin
Mazdak1-Feb-16 5:12
Mazdak1-Feb-16 5:12 
GeneralRe: Number of day week in javascript Pin
Mazdak1-Feb-16 5:11
Mazdak1-Feb-16 5:11 
Questioncomparing two dates in javascript Pin
Member 1026351927-Jan-16 22:40
Member 1026351927-Jan-16 22:40 
QuestionRe: comparing two dates in javascript Pin
Richard MacCutchan27-Jan-16 23:17
mveRichard MacCutchan27-Jan-16 23:17 
AnswerRe: comparing two dates in javascript Pin
Richard Deeming28-Jan-16 1:46
mveRichard Deeming28-Jan-16 1:46 
AnswerRe: comparing two dates in javascript Pin
Beginner Luck31-Jan-16 19:24
professionalBeginner Luck31-Jan-16 19:24 
QuestionConvert div into image in Java Script. Pin
varunPes23-Jan-16 2:11
professionalvarunPes23-Jan-16 2:11 
AnswerRe: Convert div into image in Java Script. Pin
Beginner Luck25-Jan-16 14:24
professionalBeginner Luck25-Jan-16 14:24 
QuestionHow to redirect the weburl to particular country when user types in Browser. Pin
pradeep yajamanam21-Jan-16 3:17
pradeep yajamanam21-Jan-16 3:17 
AnswerRe: How to redirect the weburl to particular country when user types in Browser. Pin
F-ES Sitecore21-Jan-16 3:52
professionalF-ES Sitecore21-Jan-16 3:52 
GeneralRe: How to redirect the weburl to particular country when user types in Browser. Pin
Richard Deeming21-Jan-16 3:57
mveRichard Deeming21-Jan-16 3:57 
AnswerRe: How to redirect the weburl to particular country when user types in Browser. Pin
Beginner Luck27-Jan-16 14:49
professionalBeginner Luck27-Jan-16 14:49 
GeneralRe: How to redirect the weburl to particular country when user types in Browser. Pin
Richard Deeming28-Jan-16 1:07
mveRichard Deeming28-Jan-16 1:07 
QuestionNeed help with script Pin
Member 1227186218-Jan-16 9:27
Member 1227186218-Jan-16 9:27 
AnswerRe: Need help with script Pin
Richard Deeming18-Jan-16 10:45
mveRichard Deeming18-Jan-16 10:45 
QuestionGetting User Name Pin
Member 1226951817-Jan-16 8:20
Member 1226951817-Jan-16 8: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.