Click here to Skip to main content
15,920,111 members
Home / Discussions / JavaScript
   

JavaScript

 
SuggestionRe: Simple Calculation Question Pin
Richard MacCutchan2-Jan-15 22:08
mveRichard MacCutchan2-Jan-15 22:08 
Questionneed source code for advance cricket game? Pin
Member 113164161-Jan-15 17:11
Member 113164161-Jan-15 17:11 
AnswerRe: need source code for advance cricket game? Pin
Agent__0071-Jan-15 17:47
professionalAgent__0071-Jan-15 17:47 
AnswerRe: need source code for advance cricket game? Pin
Abhinav S1-Jan-15 19:04
Abhinav S1-Jan-15 19:04 
QuestionHow to integrate these scripts into one??? Pin
samflex23-Dec-14 6:03
samflex23-Dec-14 6:03 
QuestionCan someone please help me with a code about a YAHTZEE game ( without using any objects) ???? Pin
Member 1132460720-Dec-14 0:52
Member 1132460720-Dec-14 0:52 
SuggestionRe: Can someone please help me with a code about a YAHTZEE game ( without using any objects) ???? Pin
Richard MacCutchan20-Dec-14 1:47
mveRichard MacCutchan20-Dec-14 1:47 
QuestionConcatenating two fields using javascript? Pin
samflex19-Dec-14 8:35
samflex19-Dec-14 8:35 
AnswerRe: Concatenating two fields using javascript? Pin
Graham Breach19-Dec-14 21:55
Graham Breach19-Dec-14 21:55 
GeneralRe: Concatenating two fields using javascript? Pin
samflex20-Dec-14 1:27
samflex20-Dec-14 1:27 
GeneralRe: Concatenating two fields using javascript? Pin
Tushar sangani20-Dec-14 1:32
professionalTushar sangani20-Dec-14 1:32 
QuestionjQuery bgiframe.js error: "jQuery error: JavaScript runtime error: Unable to get property 'msie' of undefined or null reference" Pin
Stephen Holdorf15-Dec-14 23:41
Stephen Holdorf15-Dec-14 23:41 
AnswerRe: jQuery bgiframe.js error: "jQuery error: JavaScript runtime error: Unable to get property 'msie' of undefined or null reference" Pin
Stephen Holdorf16-Dec-14 7:03
Stephen Holdorf16-Dec-14 7:03 
Questionjavascript slider Pin
Member 112981529-Dec-14 5:25
Member 112981529-Dec-14 5:25 
AnswerRe: javascript slider Pin
Richard MacCutchan9-Dec-14 6:15
mveRichard MacCutchan9-Dec-14 6:15 
QuestionRe: javascript slider Pin
ZurdoDev15-Dec-14 3:08
professionalZurdoDev15-Dec-14 3:08 
Questionweird issue in simple class declaration Pin
akhilonly0078-Dec-14 5:24
akhilonly0078-Dec-14 5:24 
Hi all,

I am trying to make a auto blinking div but while trying to achieve using setTimeout its saying " this.off is not a function" in on method I tried two variations.

Please help !!!

var Light = function(color) {
   this.color = color;
  };
  
  Light.prototype = {
   ref:null,
   defColor:'black',
   on:function(){
         if(this.ref != null){
          this.ref.css('background-color',this.color);
          window.setTimeout(function(){this.off()}, 5000);
          //window.setTimeout(this.off, 5000);
         } 
        },
   off:function(){
        if(this.ref != null){
         this.ref.css('background-color',this.defColor);
         window.setTimeout(function(){this.on()}, 5000);
         //window.setTimeout(this.on, 5000);
        } 
       }     
  };   

  var l1;
    
  $(document).ready(function(){
   l1 = new Light('red');
   l1.ref=$('#mydiv');
   l1.on();
  });

akhilonly007@gmail.com

AnswerRe: weird issue in simple class declaration Pin
Richard Deeming9-Dec-14 2:19
mveRichard Deeming9-Dec-14 2:19 
Questionsum two button values added in the inputbox using jquery Pin
Member 112879875-Dec-14 1:16
Member 112879875-Dec-14 1:16 
AnswerRe: sum two button values added in the inputbox using jquery Pin
Richard MacCutchan5-Dec-14 3:15
mveRichard MacCutchan5-Dec-14 3:15 
AnswerRe: sum two button values added in the inputbox using jquery Pin
ZurdoDev5-Dec-14 4:01
professionalZurdoDev5-Dec-14 4:01 
Questionhow to bind data to infragistics webhierarchicaldatagrid through javascript im having data in datatable i need to bind this dt to webhierarchicaldatagrid Pin
code project member4-Dec-14 19:01
code project member4-Dec-14 19:01 
QuestionRe: how to bind data to infragistics webhierarchicaldatagrid through javascript im having data in datatable i need to bind this dt to webhierarchicaldatagrid Pin
ZurdoDev5-Dec-14 4:01
professionalZurdoDev5-Dec-14 4:01 
Questionpostback issue when using dynamically created datetimepicker using javascript Pin
Dhyanga4-Dec-14 5:04
Dhyanga4-Dec-14 5:04 
AnswerRe: postback issue when using dynamically created datetimepicker using javascript Pin
Anurag Gandhi4-Dec-14 18:11
professionalAnurag Gandhi4-Dec-14 18:11 

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.