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

JavaScript

 
SuggestionRe: Forum software.. Pin
Richard Deeming12-Aug-14 8:55
mveRichard Deeming12-Aug-14 8:55 
QuestionRequireJS in ASP.Net Webforms Pin
Member 102920078-Aug-14 5:00
Member 102920078-Aug-14 5:00 
Questionany body convert this code( vb script) to java script Pin
boopathiraj4-Aug-14 22:22
boopathiraj4-Aug-14 22:22 
QuestionCondition Always true when checking for "undefined" in Javascript Pin
Vimalsoft(Pty) Ltd3-Aug-14 9:28
professionalVimalsoft(Pty) Ltd3-Aug-14 9:28 
AnswerRe: Condition Always true when checking for "undefined" in Javascript Pin
Blikkies3-Aug-14 22:48
professionalBlikkies3-Aug-14 22:48 
AnswerRe: Condition Always true when checking for "undefined" in Javascript Pin
Kornfeld Eliyahu Peter4-Aug-14 0:19
professionalKornfeld Eliyahu Peter4-Aug-14 0:19 
AnswerRe: Condition Always true when checking for "undefined" in Javascript Pin
Kornfeld Eliyahu Peter3-Aug-14 22:55
professionalKornfeld Eliyahu Peter3-Aug-14 22:55 
AnswerRe: Condition Always true when checking for "undefined" in Javascript Pin
Graham Breach3-Aug-14 22:56
Graham Breach3-Aug-14 22:56 
The "undefined" shown in the debugger is not a string, so you can't compare it as one.

To really test if your value is undefined, you can use this:
JavaScript
if(typeof document.frmEntry.optMethod != 'undefined')

The typeof operator returns the type of the argument as a string.
AnswerRe: Condition Always true when checking for "undefined" in Javascript Pin
Kornfeld Eliyahu Peter4-Aug-14 0:15
professionalKornfeld Eliyahu Peter4-Aug-14 0:15 
GeneralRe: Condition Always true when checking for "undefined" in Javascript Pin
Vimalsoft(Pty) Ltd4-Aug-14 5:39
professionalVimalsoft(Pty) Ltd4-Aug-14 5:39 
GeneralRe: Condition Always true when checking for "undefined" in Javascript Pin
Graham Breach4-Aug-14 9:18
Graham Breach4-Aug-14 9:18 
AnswerRe: Condition Always true when checking for "undefined" in Javascript Pin
Kornfeld Eliyahu Peter4-Aug-14 18:38
professionalKornfeld Eliyahu Peter4-Aug-14 18:38 
GeneralRe: Condition Always true when checking for "undefined" in Javascript Pin
Graham Breach4-Aug-14 22:13
Graham Breach4-Aug-14 22:13 
AnswerRe: Condition Always true when checking for "undefined" in Javascript Pin
Tushar Guru8-Sep-14 21:59
Tushar Guru8-Sep-14 21:59 
QuestionNewbie Question On jQuery Selectors Pin
Richard Andrew x641-Aug-14 17:03
professionalRichard Andrew x641-Aug-14 17:03 
AnswerRe: Newbie Question On jQuery Selectors Pin
thatraja1-Aug-14 18:09
professionalthatraja1-Aug-14 18:09 
GeneralRe: Newbie Question On jQuery Selectors Pin
Richard Andrew x641-Aug-14 18:28
professionalRichard Andrew x641-Aug-14 18:28 
QuestionGenerate geofence for route (pointA to pointB) Pin
JANANDOJAN28-Jul-14 21:19
JANANDOJAN28-Jul-14 21:19 
AnswerRe: Generate geofence for route (pointA to pointB) Pin
JANANDOJAN29-Jul-14 23:02
JANANDOJAN29-Jul-14 23:02 
GeneralRe: Generate geofence for route (pointA to pointB) Pin
Kwod128-Dec-20 11:01
Kwod128-Dec-20 11:01 
QuestionUsing json and jquery on page not working Pin
Member 1094998624-Jul-14 8:36
Member 1094998624-Jul-14 8:36 
QuestionRe: Using json and jquery on page not working Pin
ZurdoDev24-Jul-14 10:07
professionalZurdoDev24-Jul-14 10:07 
AnswerRe: Using json and jquery on page not working Pin
Member 1094998624-Jul-14 11:14
Member 1094998624-Jul-14 11:14 
QuestionRe: Using json and jquery on page not working Pin
ZurdoDev24-Jul-14 11:40
professionalZurdoDev24-Jul-14 11:40 
AnswerRe: Using json and jquery on page not working Pin
Member 1094998624-Jul-14 11:50
Member 1094998624-Jul-14 11:50 

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.