Click here to Skip to main content
15,922,533 members
Home / Discussions / JavaScript
   

JavaScript

 
AnswerRe: Need js help! Pin
Wombaticus22-Oct-15 0:42
Wombaticus22-Oct-15 0:42 
QuestionYouTube API - upload videos by search term Pin
Member 1207417120-Oct-15 9:49
Member 1207417120-Oct-15 9:49 
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 
A few things that might be helpful.

You don't really need to test for the 'break' options (as your code appears) if you

do something like this:
JavaScript
do {
  if(something is true) {
    do-this;
  }
  else
   if(something else is true) {
     do this;
   }
    . . . etc . . .
   else // The only condition left
     break;
// You don't need your "continue;" statements, which are implicit in your loop.

} while(true)


This style will handle anything 'unexpected' - that is, anything you didn't intend


"The difference between genius and stupidity is that genius has its limits." - Albert Einstein
"As far as we know, our computer has never had an undetected error." - Weisert
"If you are searching for perfection in others, then you seek disappointment. If you are seek perfection in yourself, then you will find failure." - Balboos HaGadol Mar 2010

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 
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 

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.