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

JavaScript

 
GeneralRe: Simple Ajax program will not work Pin
Truck5322-Jul-15 0:13
Truck5322-Jul-15 0:13 
GeneralRe: Simple Ajax program will not work Pin
F-ES Sitecore22-Jul-15 0:44
professionalF-ES Sitecore22-Jul-15 0:44 
QuestionTo convert audio file into byte array in javascript Pin
Rohan Jadhav20-Jul-15 6:02
Rohan Jadhav20-Jul-15 6:02 
QuestionHow to shorten/combine "if()" statements? Pin
Member 1184968820-Jul-15 4:58
Member 1184968820-Jul-15 4:58 
AnswerRe: How to shorten/combine "if()" statements? Pin
Member 1185045020-Jul-15 13:18
Member 1185045020-Jul-15 13:18 
AnswerRe: How to shorten/combine "if()" statements? Pin
Godhaniketan20-Jul-15 19:24
professionalGodhaniketan20-Jul-15 19:24 
GeneralRe: How to shorten/combine "if()" statements? Pin
Richard MacCutchan20-Jul-15 20:50
mveRichard MacCutchan20-Jul-15 20:50 
GeneralRe: How to shorten/combine "if()" statements? Pin
Richard MacCutchan20-Jul-15 21:37
mveRichard MacCutchan20-Jul-15 21:37 
Godhaniketan wrote:
Hello Richard MacCutchan,

I think you have not tested well in my case it's worked fine. i think you should have to check again.
if any doubt then reply me.

just change value of age like 19,21,22 and 'blah..' it gives you all kind of alert..please try it out.
Well I guess you do not understand that simple statement only requires two if parts.
If age is less than 21 : Alert1
If age is greater than 21 : Alert2
Else: age must be equal to 21, so the test for equality is not needed.

modified 21-Jul-15 9:22am.

GeneralRe: How to shorten/combine "if()" statements? Pin
Richard MacCutchan20-Jul-15 21:53
mveRichard MacCutchan20-Jul-15 21:53 
GeneralRe: How to shorten/combine "if()" statements? Pin
Godhaniketan20-Jul-15 21:55
professionalGodhaniketan20-Jul-15 21:55 
GeneralRe: How to shorten/combine "if()" statements? Pin
Richard MacCutchan21-Jul-15 3:37
mveRichard MacCutchan21-Jul-15 3:37 
QuestionHow to send to another web page in a new tab? Pin
Member 1183686417-Jul-15 8:34
Member 1183686417-Jul-15 8:34 
AnswerRe: How to send to another web page in a new tab? Pin
Anil Vaghasiya19-Jul-15 19:47
professionalAnil Vaghasiya19-Jul-15 19:47 
Question<div>is not visible if window is minimized than 100% Pin
Member 1183819816-Jul-15 21:27
Member 1183819816-Jul-15 21:27 
QuestionRequire Book/Link Which Covers following topics Pin
Member 1184123815-Jul-15 22:55
Member 1184123815-Jul-15 22:55 
AnswerRe: Require Book/Link Which Covers following topics Pin
Anil Vaghasiya17-Jul-15 4:10
professionalAnil Vaghasiya17-Jul-15 4:10 
AnswerRe: Require Book/Link Which Covers following topics Pin
Member 1176120322-Jul-15 3:02
Member 1176120322-Jul-15 3:02 
QuestionElement flickers on scroll Pin
Member 1183819814-Jul-15 21:11
Member 1183819814-Jul-15 21:11 
AnswerRe: Element flickers on scroll Pin
jkirkerx15-Jul-15 8:47
professionaljkirkerx15-Jul-15 8:47 
GeneralRe: Element flickers on scroll Pin
Member 1183819815-Jul-15 23:57
Member 1183819815-Jul-15 23:57 
GeneralRe: Element flickers on scroll Pin
jkirkerx16-Jul-15 8:45
professionaljkirkerx16-Jul-15 8:45 
QuestionLoop through textboxes in table and perform validation clientside Pin
colliek14-Jul-15 10:13
colliek14-Jul-15 10:13 
AnswerRe: Loop through textboxes in table and perform validation clientside Pin
Anil Vaghasiya14-Jul-15 19:34
professionalAnil Vaghasiya14-Jul-15 19:34 
GeneralRe: Loop through textboxes in table and perform validation clientside Pin
colliek14-Jul-15 20:03
colliek14-Jul-15 20:03 
Questionfunctions Pin
Member 1183686414-Jul-15 5:52
Member 1183686414-Jul-15 5:52 

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.