Click here to Skip to main content
11,495,524 members (66,508 online)

JavaScript

 
GeneralRe: So I rewrote the program from scratch, works pretty good now, feel free to build on it Pin
jkirkerx20-Dec-12 7:18
memberjkirkerx20-Dec-12 7:18 
GeneralRe: So I rewrote the program from scratch, works pretty good now, feel free to build on it Pin
Richard MacCutchan20-Dec-12 7:39
mvpRichard MacCutchan20-Dec-12 7:39 
QuestionJava Script Pin
manoj s sherje14-Dec-12 2:05
membermanoj s sherje14-Dec-12 2:05 
QuestionRe: Java Script Pin
ProgramFOX14-Dec-12 2:33
memberProgramFOX14-Dec-12 2:33 
QuestionRe: Java Script Pin
ryanb3118-Dec-12 6:06
memberryanb3118-Dec-12 6:06 
AnswerRe: Java Script Pin
manoj s sherje19-Dec-12 2:01
membermanoj s sherje19-Dec-12 2:01 
AnswerRe: Java Script Pin
ryanb3119-Dec-12 2:37
memberryanb3119-Dec-12 2:37 
AnswerRe: Java Script Pin
vbmike19-Dec-12 5:28
membervbmike19-Dec-12 5:28 
QuestionUsing datePicker to disable dates already selected Pin
xnaLearner11-Dec-12 4:39
memberxnaLearner11-Dec-12 4:39 
Questionjquery tabslideout plugin and wired behavior Pin
Tridip Bhattacharjee9-Dec-12 22:13
memberTridip Bhattacharjee9-Dec-12 22:13 
AnswerRe: jquery tabslideout plugin and wired behavior Pin
Mayor Daily17-Dec-12 5:22
memberMayor Daily17-Dec-12 5:22 
GeneralRe: jquery tabslideout plugin and wired behavior Pin
Tridip Bhattacharjee18-Dec-12 1:55
memberTridip Bhattacharjee18-Dec-12 1:55 
QuestionNeed help understanding binding Pin
Steve Bondy7-Dec-12 15:00
memberSteve Bondy7-Dec-12 15:00 
QuestionText replace Pin
rakeshs3127-Dec-12 0:06
memberrakeshs3127-Dec-12 0:06 
I have a text box andit will accept only time in the format 00:00(maximum value can be 12:59) . If user enter any of the value greater than this that part only needs to become 00. i have the code like this,but it will change the whole value to 00:00 . In the greater than conditions, what i have to write .

function ValidateTimeControl(s, e) {
    var isValid = true;
    if (e.value != null) {
        if (e.value.substring(0, 1).trim() == "" || e.value.substring(1, 2).trim() == "" || e.value.substring(3, 4).trim() == "" || e.value.substring(3, 4).trim() == "") {
            isValid = false;
        }
        else {
            var hours = parseInt(e.value.substring(0, 2), 10);
            var minutes = parseInt(e.value.substring(3, 5), 10);
 
            if (hours > 12) {alert(hours)
                isValid = false;
                
            }
 
            if (minutes > 59) {
                isValid = false;
            }
        }
    }
    else {
        isValid = false;
    }
 
    if (!isValid) {
        e.value = '00:00';
        
    }
}

Thanks
Rks
AnswerRe: Text replace Pin
Richard MacCutchan7-Dec-12 1:43
mvpRichard MacCutchan7-Dec-12 1:43 
GeneralRe: Text replace Pin
rakeshs3129-Dec-12 6:40
memberrakeshs3129-Dec-12 6:40 
QuestionJQuery datePicker SelectMultiple format dd/mm/yy Pin
xnaLearner6-Dec-12 1:37
memberxnaLearner6-Dec-12 1:37 
AnswerRe: JQuery datePicker SelectMultiple format dd/mm/yy Pin
srinivas nv6-Dec-12 22:50
membersrinivas nv6-Dec-12 22:50 
GeneralRe: JQuery datePicker SelectMultiple format dd/mm/yy Pin
xnaLearner10-Dec-12 1:04
memberxnaLearner10-Dec-12 1:04 
QuestionDelete selected rows by table id using javascript Pin
Member 88023075-Dec-12 9:05
memberMember 88023075-Dec-12 9:05 
AnswerRe: Delete selected rows by table id using javascript Pin
Deepak Kr15-Dec-12 19:45
memberDeepak Kr15-Dec-12 19:45 
GeneralRe: Delete selected rows by table id using javascript Pin
Member 88023076-Dec-12 7:20
memberMember 88023076-Dec-12 7:20 
AnswerRe: Delete selected rows by table id using javascript Pin
Graham Breach6-Dec-12 22:41
memberGraham Breach6-Dec-12 22:41 
QuestionHTML5 Javascript Issue [modified] Pin
John Simmons / outlaw programmer3-Dec-12 2:09
mvpJohn Simmons / outlaw programmer3-Dec-12 2:09 
AnswerRe: HTML5 Javascript Issue Pin
Graham Breach3-Dec-12 6:00
memberGraham Breach3-Dec-12 6:00 
GeneralRe: HTML5 Javascript Issue Pin
John Simmons / outlaw programmer3-Dec-12 6:22
mvpJohn Simmons / outlaw programmer3-Dec-12 6:22 
GeneralRe: HTML5 Javascript Issue Pin
Graham Breach3-Dec-12 7:29
memberGraham Breach3-Dec-12 7:29 
GeneralRe: HTML5 Javascript Issue Pin
John Simmons / outlaw programmer3-Dec-12 7:40
mvpJohn Simmons / outlaw programmer3-Dec-12 7:40 
GeneralRe: HTML5 Javascript Issue Pin
Graham Breach3-Dec-12 7:48
memberGraham Breach3-Dec-12 7:48 
GeneralRe: HTML5 Javascript Issue Pin
John Simmons / outlaw programmer3-Dec-12 10:09
mvpJohn Simmons / outlaw programmer3-Dec-12 10:09 
GeneralRe: HTML5 Javascript Issue Pin
Graham Breach3-Dec-12 12:02
memberGraham Breach3-Dec-12 12:02 
GeneralRe: HTML5 Javascript Issue Pin
John Simmons / outlaw programmer3-Dec-12 16:20
mvpJohn Simmons / outlaw programmer3-Dec-12 16:20 
GeneralRe: HTML5 Javascript Issue Pin
Media2r18-Dec-12 1:51
memberMedia2r18-Dec-12 1:51 
GeneralRe: HTML5 Javascript Issue Pin
BrainiacV18-Dec-12 4:46
memberBrainiacV18-Dec-12 4:46 
GeneralRe: HTML5 Javascript Issue Pin
John Simmons / outlaw programmer3-Dec-12 6:29
mvpJohn Simmons / outlaw programmer3-Dec-12 6:29 
GeneralRe: HTML5 Javascript Issue Pin
John Simmons / outlaw programmer4-Dec-12 2:06
mvpJohn Simmons / outlaw programmer4-Dec-12 2:06 
GeneralRe: HTML5 Javascript Issue Pin
John Simmons / outlaw programmer4-Dec-12 8:31
mvpJohn Simmons / outlaw programmer4-Dec-12 8:31 
GeneralRe: HTML5 Javascript Issue Pin
Zaf Khan19-Dec-12 21:36
memberZaf Khan19-Dec-12 21:36 
AnswerRe: HTML5 Javascript Issue Pin
Zaf Khan19-Dec-12 21:42
memberZaf Khan19-Dec-12 21:42 
QuestionCatching Exceptions in Javascript Pin
Ved Yo29-Nov-12 15:43
memberVed Yo29-Nov-12 15:43 
QuestionPartial Overlay to cover ajax request Pin
Sentenryu29-Nov-12 2:51
memberSentenryu29-Nov-12 2:51 
QuestionHow to get value from TD Pin
Chitttapa26-Nov-12 11:03
memberChitttapa26-Nov-12 11:03 
Questionhelp me please Pin
doa'a_9224-Nov-12 5:16
memberdoa'a_9224-Nov-12 5:16 
AnswerRe: help me please [modified] Pin
Leon Munir25-Nov-12 14:46
memberLeon Munir25-Nov-12 14:46 
GeneralRe: help me please Pin
J4amieC25-Nov-12 22:13
memberJ4amieC25-Nov-12 22:13 
GeneralRe: help me please Pin
Leon Munir26-Nov-12 3:06
memberLeon Munir26-Nov-12 3:06 
GeneralRe: help me please Pin
J4amieC26-Nov-12 6:30
memberJ4amieC26-Nov-12 6:30 
GeneralRe: help me please Pin
Marcus Kramer26-Nov-12 6:37
memberMarcus Kramer26-Nov-12 6:37 
GeneralRe: help me please Pin
doa'a_9226-Nov-12 10:28
memberdoa'a_9226-Nov-12 10:28 
Questiononmouseover and document.getElementById Pin
SRJ9223-Nov-12 5:18
memberSRJ9223-Nov-12 5:18 

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

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


Advertise | Privacy | Mobile
Web04 | 2.8.150520.1 | Last Updated 29 May 2015
Copyright © CodeProject, 1999-2015
All Rights Reserved. Terms of Service
Layout: fixed | fluid