Click here to Skip to main content
15,922,155 members
Home / Discussions / Web Development
   

Web Development

 
QuestionValidating controls in datagrid with javascript Pin
Chiari29-Sep-05 0:09
Chiari29-Sep-05 0:09 
AnswerRe: Validating controls in datagrid with javascript Pin
minhpc_bk29-Sep-05 17:07
minhpc_bk29-Sep-05 17:07 
GeneralRe: Validating controls in datagrid with javascript Pin
Chiari30-Sep-05 1:52
Chiari30-Sep-05 1:52 
GeneralRe: Validating controls in datagrid with javascript Pin
minhpc_bk30-Sep-05 15:43
minhpc_bk30-Sep-05 15:43 
GeneralRe: Validating controls in datagrid with javascript Pin
Chiari2-Oct-05 18:33
Chiari2-Oct-05 18:33 
GeneralRe: Validating controls in datagrid with javascript Pin
minhpc_bk2-Oct-05 20:07
minhpc_bk2-Oct-05 20:07 
GeneralRe: Validating controls in datagrid with javascript Pin
Chiari2-Oct-05 20:24
Chiari2-Oct-05 20:24 
GeneralRe: Validating controls in datagrid with javascript Pin
minhpc_bk2-Oct-05 21:03
minhpc_bk2-Oct-05 21:03 
You'd better pass the object (this) instead of its value (this.value) as the method parameter so that you can use the object to change the background color without having to retry to get reference to the control again. The sample code looks something like:
....onblur="return vldValue(this)"....
               
function vldValue(obj)
{ 
    var value = obj.value;
    ....
    if(!isValid)
       obj.style.backgroundColor = "red";
    ... 
}

GeneralRe: Validating controls in datagrid with javascript Pin
Chiari2-Oct-05 21:39
Chiari2-Oct-05 21:39 
QuestionWhat error is this?(Javascript) Pin
AlphonseElric28-Sep-05 21:01
AlphonseElric28-Sep-05 21:01 
AnswerRe: What error is this?(Javascript) Pin
Alsvha28-Sep-05 22:35
Alsvha28-Sep-05 22:35 
GeneralRe: What error is this?(Javascript) Pin
AlphonseElric28-Sep-05 22:52
AlphonseElric28-Sep-05 22:52 
AnswerRe: What error is this?(Javascript) Pin
Guffa28-Sep-05 23:02
Guffa28-Sep-05 23:02 
GeneralRe: What error is this?(Javascript) Pin
AlphonseElric28-Sep-05 23:16
AlphonseElric28-Sep-05 23:16 
GeneralRe: What error is this?(Javascript) Pin
Guffa29-Sep-05 12:19
Guffa29-Sep-05 12:19 
GeneralRe: What error is this?(Javascript) Pin
AlphonseElric29-Sep-05 14:52
AlphonseElric29-Sep-05 14:52 
GeneralRe: What error is this?(Javascript) Pin
Guffa29-Sep-05 22:07
Guffa29-Sep-05 22:07 
Questionsimply saving a remote binary file (swf) locally Pin
sascho28-Sep-05 11:26
sascho28-Sep-05 11:26 
AnswerRe: simply saving a remote binary file (swf) locally Pin
Guffa28-Sep-05 12:30
Guffa28-Sep-05 12:30 
QuestionReplace a substring Pin
sabustep28-Sep-05 4:46
susssabustep28-Sep-05 4:46 
AnswerRe: Replace a substring Pin
Guffa28-Sep-05 5:30
Guffa28-Sep-05 5:30 
AnswerRe: Replace a substring Pin
Brian Van Beek28-Sep-05 11:17
Brian Van Beek28-Sep-05 11:17 
QuestionI need javascript function which take two parameters(dates) and return total years and months difference Pin
TariqMahmood28-Sep-05 2:18
TariqMahmood28-Sep-05 2:18 
AnswerRe: I need javascript function which take two parameters(dates) and return total years and months difference Pin
Guffa28-Sep-05 2:27
Guffa28-Sep-05 2:27 
QuestionTo disable the back button on the ie Pin
anishyanic28-Sep-05 1:37
anishyanic28-Sep-05 1:37 

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.