Click here to Skip to main content
15,887,301 members
Home / Discussions / JavaScript
   

JavaScript

 
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 
AnswerRe: postback issue when using dynamically created datetimepicker using javascript Pin
Dhyanga5-Dec-14 5:11
Dhyanga5-Dec-14 5:11 
GeneralRe: postback issue when using dynamically created datetimepicker using javascript Pin
Anurag Gandhi5-Dec-14 5:29
professionalAnurag Gandhi5-Dec-14 5:29 
QuestionTranslation UserScript Pin
Kyudos3-Dec-14 11:20
Kyudos3-Dec-14 11:20 
AnswerRe: Translation UserScript Pin
Garth J Lancaster3-Dec-14 12:45
professionalGarth J Lancaster3-Dec-14 12:45 
GeneralRe: Translation UserScript Pin
Kyudos3-Dec-14 13:39
Kyudos3-Dec-14 13:39 
QuestionHow to use Gride View Pin
Member 112816092-Dec-14 17:25
Member 112816092-Dec-14 17:25 
AnswerRe: How to use Gride View Pin
den2k882-Dec-14 21:30
professionalden2k882-Dec-14 21:30 
QuestionDataTable.js problem with mozilla Pin
Hemant Thaker28-Nov-14 0:03
Hemant Thaker28-Nov-14 0:03 
QuestionHow to set the result variable of a javascript of one div to another div tag Pin
Member 1126811126-Nov-14 23:08
Member 1126811126-Nov-14 23:08 

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.