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

JavaScript

 
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 
AnswerRe: weird issue in simple class declaration Pin
Richard Deeming9-Dec-14 2:19
mveRichard Deeming9-Dec-14 2:19 
When the anonymous function you've passed to window.setTimeout is called, this will be pointing to the global scope, rather than the specific object instance that called setTimeout. This is one of the confusing quirks of javascript code.

There are several possible solutions in the answers to this SO question[^]. For example:

  • Save the outer this reference:
    JavaScript
    var me = this;
    window.setTimeout(function(){me.on()}, 5000);
  • For modern browsers, use the built-in bind function[^]:
    JavaScript
    window.setTimeout(this.on.bind(this), 5000);
  • Use jQuery's proxy method[^]:
    JavaScript
    window.setTimeout($.proxy(this.on, this), 5000);




"These people looked deep within my soul and assigned me a number based on the order in which I joined."
- Homer


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 
QuestionFormat var to special format Pin
Member 1056002225-Nov-14 4:48
Member 1056002225-Nov-14 4:48 

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.