Click here to Skip to main content
15,881,600 members
Home / Discussions / JavaScript
   

JavaScript

 
QuestionHow to control the do / while infinite loop? Pin
Ted.K-117-Oct-15 1:06
Ted.K-117-Oct-15 1:06 
AnswerRe: How to control the do / while infinite loop? Pin
Wombaticus18-Oct-15 11:52
Wombaticus18-Oct-15 11:52 
GeneralRe: How to control the do / while infinite loop? Pin
Ted.K-123-Oct-15 21:43
Ted.K-123-Oct-15 21:43 
AnswerRe: How to control the do / while infinite loop? Pin
Blikkies18-Oct-15 22:02
professionalBlikkies18-Oct-15 22:02 
GeneralRe: How to control the do / while infinite loop? Pin
Ted.K-123-Oct-15 21:43
Ted.K-123-Oct-15 21:43 
AnswerRe: How to control the do / while infinite loop? Pin
W Balboos, GHB20-Oct-15 7:45
W Balboos, GHB20-Oct-15 7:45 
GeneralRe: How to control the do / while infinite loop? Pin
Ted.K-123-Oct-15 21:42
Ted.K-123-Oct-15 21:42 
QuestionHow to deal with Uncaught TypeError? Pin
Ted.K-117-Oct-15 0:59
Ted.K-117-Oct-15 0:59 
XML
/*
Dear all,

<!-- code -->
<script>
        function Array2D(x,y){
            this.length = x*y; 
            this.x = x;
            this.y = y;

            for(var i=0 ; i<this.length ; i++){
                this[i] = null;  
            }
            this.get = function(x,y){ 
                return this[x*this.x+y];
            }
            this.set = function(x,y,value){ 
                this[x*this.x+y] = value;

            }
        }
</script>

<script>
        var a2d = Array2D(10,10);
        a2d.set(2,3,"2");
        alert(this.get(1,2));
</script>
<!-- end code -->

<!-- error message -->
Uncaught TypeError: Cannot read property 'set' of undefined


How does it happen?and what should i do to avoid this?
*/

AnswerRe: How to deal with Uncaught TypeError? Pin
Wombaticus18-Oct-15 21:40
Wombaticus18-Oct-15 21:40 
GeneralRe: How to deal with Uncaught TypeError? Pin
Ted.K-124-Oct-15 19:44
Ted.K-124-Oct-15 19:44 
Questionhow to check the control is available or not? Pin
HoneyBee14-Oct-15 20:45
HoneyBee14-Oct-15 20:45 
AnswerRe: how to check the control is available or not? Pin
Blikkies15-Oct-15 4:49
professionalBlikkies15-Oct-15 4:49 
Questioncheck textbox validation outside the form tag in javascript Pin
HoneyBee14-Oct-15 20:43
HoneyBee14-Oct-15 20:43 
AnswerRe: check textbox validation outside the form tag in javascript Pin
Richard Deeming15-Oct-15 2:55
mveRichard Deeming15-Oct-15 2:55 
Questionjavascript question Pin
Member 1197204310-Oct-15 13:43
Member 1197204310-Oct-15 13:43 
AnswerRe: javascript question Pin
ZurdoDev13-Oct-15 5:35
professionalZurdoDev13-Oct-15 5:35 
AnswerRe: javascript question Pin
Member 1186114821-Oct-15 3:54
Member 1186114821-Oct-15 3:54 
QuestionSubmit Button Image Pin
Member 120471849-Oct-15 14:22
Member 120471849-Oct-15 14:22 
AnswerRe: Submit Button Image Pin
Wombaticus10-Oct-15 7:54
Wombaticus10-Oct-15 7:54 
QuestionCross browser extension - standard fee and timeframe Pin
Enigma10019-Oct-15 4:00
Enigma10019-Oct-15 4:00 
AnswerRe: Cross browser extension - standard fee and timeframe Pin
Richard Deeming9-Oct-15 4:57
mveRichard Deeming9-Oct-15 4:57 
Questionselected image is appears in webpage when click on submit Pin
mokkapati sridevi7-Oct-15 22:16
mokkapati sridevi7-Oct-15 22:16 
AnswerRe: selected image is appears in webpage when click on submit Pin
Richard Deeming8-Oct-15 2:16
mveRichard Deeming8-Oct-15 2:16 
Questionimage click make login/register appear Pin
Peter Roman7-Oct-15 2:06
Peter Roman7-Oct-15 2:06 
SuggestionRe: image click make login/register appear Pin
Richard Deeming7-Oct-15 2:44
mveRichard Deeming7-Oct-15 2:44 

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.