Click here to Skip to main content
15,890,336 members
Home / Discussions / JavaScript
   

JavaScript

 
AnswerRe: How to validate postdate? Pin
Sibeesh KV24-Sep-14 0:56
professionalSibeesh KV24-Sep-14 0:56 
QuestionCollapsible gridview using javascript Pin
Member 1097302613-Aug-14 9:35
Member 1097302613-Aug-14 9:35 
AnswerRe: Collapsible gridview using javascript Pin
Anurag Gandhi22-Aug-14 8:56
professionalAnurag Gandhi22-Aug-14 8:56 
QuestionForum software.. Pin
Fever42012-Aug-14 5:50
Fever42012-Aug-14 5:50 
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 
Good Day all

i am reluctantly maintaining a Classic Asp application that will be re-written in few months to come. i have an issue where i have a Code like this

if(document.frmEntry.optMethod != "undefined")
                    {
                        if (document.frmEntry.optMethod.selectedIndex == 0) {
                            strPrompt=strPrompt+'Please specify the Valuation Method\n';
                            if ( objFocus == null ) {
                                objFocus = document.frmEntry.optMethod;
                            }
                        }
                    }


my problem here is that even if document.frmEntry.optMethod is not equal to "undefined" the code still go into the condition as if it was true. i have attached a proof in my debuger.

http://www.vetauinvest.com/Example/IE_DEBUGGER.png[^]

Thanks
Vuyiswa Maseko,

Spoted in Daniweb-- Sorry to rant. I hate websites. They are just wierd. They don't behave like normal code.

C#/VB.NET/ASP.NET/SQL7/2000/2005/2008
http://www.vuyiswamaseko.com
vuyiswa[at]dotnetfunda.com
http://www.Dotnetfunda.com


modified 3-Aug-14 15:47pm.

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

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.