Click here to Skip to main content
15,891,943 members
Home / Discussions / JavaScript
   

JavaScript

 
QuestionSimple Modal Dialog Pin
Bram van Kampen31-Jan-19 11:58
Bram van Kampen31-Jan-19 11:58 
AnswerRe: Simple Modal Dialog Pin
Richard Deeming8-Feb-19 1:09
mveRichard Deeming8-Feb-19 1:09 
QuestionCalling Web api from Angular Service and Component Pin
simpledeveloper29-Jan-19 7:07
simpledeveloper29-Jan-19 7:07 
QuestionFor loop query Pin
Member 1413327128-Jan-19 22:54
Member 1413327128-Jan-19 22:54 
QuestionRe: For loop query Pin
Richard MacCutchan28-Jan-19 23:35
mveRichard MacCutchan28-Jan-19 23:35 
AnswerRe: For loop query Pin
ZurdoDev30-Jan-19 2:08
professionalZurdoDev30-Jan-19 2:08 
AnswerRe: For loop query Pin
Suresh Madhavaraju11-Feb-19 3:20
Suresh Madhavaraju11-Feb-19 3:20 
AnswerRe: For loop query Pin
W Balboos, GHB7-Mar-19 7:18
W Balboos, GHB7-Mar-19 7:18 
An alternative view of some of the previous answers.
Check for your condition.
Do what needs to be done.
Execute a continue or break

If our condition is false, it will simply continue down through instruction in the remainder of your loop.

Although methods like this or the others have specific circumstances. when they are preferred, more often than night it's simply a matter tastes.

An if/else ladder presumes any number of additional conditions may be added
If circumstances allow (depends on what you're testing for and the language), you can use a switch statement.

There are usually many solutions to each programming problem - often pretty much equal in quality. You'll eventually develop a style of your own that works best with your train of thought. And, of course, experience.

Ravings en masse^
"The difference between genius and stupidity is that genius has its limits." - Albert Einstein
"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

QuestionDebugging Pin
Bram van Kampen26-Jan-19 14:14
Bram van Kampen26-Jan-19 14:14 
AnswerRe: Debugging Pin
Richard Deeming28-Jan-19 1:01
mveRichard Deeming28-Jan-19 1:01 
GeneralRe: Debugging Pin
Bram van Kampen28-Jan-19 11:21
Bram van Kampen28-Jan-19 11:21 
QuestionCan anyone help me understand this code? Pin
Member 1411814323-Jan-19 1:20
Member 1411814323-Jan-19 1:20 
AnswerRe: Can anyone help me understand this code? Pin
Richard Deeming23-Jan-19 7:35
mveRichard Deeming23-Jan-19 7:35 
QuestionJavaScript : TypeScript :: Python : <what> Pin
Amarnath S20-Jan-19 16:58
professionalAmarnath S20-Jan-19 16:58 
AnswerRe: JavaScript : TypeScript :: Python : <what> Pin
Richard MacCutchan20-Jan-19 21:29
mveRichard MacCutchan20-Jan-19 21:29 
QuestionInjecting an external page to a div using ajax. Pin
Member 1125974616-Jan-19 23:59
Member 1125974616-Jan-19 23:59 
AnswerRe: Injecting an external page to a div using ajax. Pin
Graham Breach17-Jan-19 0:31
Graham Breach17-Jan-19 0:31 
GeneralRe: Injecting an external page to a div using ajax. Pin
Member 1125974617-Jan-19 0:36
Member 1125974617-Jan-19 0:36 
QuestionCan someone help me reverse engineer this code and get it working as jQuery? Pin
Member 1411874515-Jan-19 4:14
Member 1411874515-Jan-19 4:14 
QuestionJavaScript Pin
Bram van Kampen11-Jan-19 13:52
Bram van Kampen11-Jan-19 13:52 
AnswerRe: JavaScript Pin
Richard MacCutchan11-Jan-19 22:50
mveRichard MacCutchan11-Jan-19 22:50 
AnswerRe: JavaScript Pin
Nathan Minier14-Jan-19 1:16
professionalNathan Minier14-Jan-19 1:16 
QuestionGet html element position on window scroll Pin
User 41802549-Jan-19 3:43
User 41802549-Jan-19 3:43 
AnswerRe: Get html element position on window scroll Pin
Richard Deeming9-Jan-19 8:12
mveRichard Deeming9-Jan-19 8:12 
QuestionFailing to call the put and post Web Api methods from the react js components Pin
simpledeveloper24-Dec-18 9:55
simpledeveloper24-Dec-18 9:55 

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.