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

JavaScript

 
Questionin MVC Edit page, how to check for null values? Pin
Member 1173386829-Jun-15 11:28
Member 1173386829-Jun-15 11:28 
AnswerRe: in MVC Edit page, how to check for null values? Pin
Richard Deeming30-Jun-15 1:22
mveRichard Deeming30-Jun-15 1:22 
GeneralRe: in MVC Edit page, how to check for null values? Pin
Member 1173386830-Jun-15 17:01
Member 1173386830-Jun-15 17:01 
GeneralRe: in MVC Edit page, how to check for null values? Pin
Afzaal Ahmad Zeeshan30-Jun-15 22:10
professionalAfzaal Ahmad Zeeshan30-Jun-15 22:10 
GeneralRe: in MVC Edit page, how to check for null values? Pin
Member 117338681-Jul-15 13:46
Member 117338681-Jul-15 13:46 
GeneralRe: in MVC Edit page, how to check for null values? Pin
Afzaal Ahmad Zeeshan1-Jul-15 14:50
professionalAfzaal Ahmad Zeeshan1-Jul-15 14:50 
GeneralRe: in MVC Edit page, how to check for null values? Pin
Richard Deeming1-Jul-15 1:17
mveRichard Deeming1-Jul-15 1:17 
GeneralRe: in MVC Edit page, how to check for null values? Pin
Member 117338681-Jul-15 13:56
Member 117338681-Jul-15 13:56 
ok thanks for that. === is strict equality, nulls compare when they are null and undefined, == converts the types but hopefully converts a copy; so if it converts and you reference something more than once that got converted, it can be a problem is that what you mean?

I assumed strict equality, but will use this in the future. it seems that the javascript/html cannot be trusted for lambda type expressions like c#, just do everything a step at a time

i had done switch case, case yes, no, null, "" then default with the alert message "it should never get here". of course you can guess the message that shows up. value was no. or other code tested for null and would be true when the value was string 'no', and othertimes not.

but i think the answer is to separate the tests and not try to combine and hope the test will be run right.
AnswerRe: in MVC Edit page, how to check for null values? Pin
Afzaal Ahmad Zeeshan30-Jun-15 22:07
professionalAfzaal Ahmad Zeeshan30-Jun-15 22:07 
GeneralRe: in MVC Edit page, how to check for null values? Pin
Member 117338681-Jul-15 13:40
Member 117338681-Jul-15 13:40 
GeneralRe: in MVC Edit page, how to check for null values? Pin
Afzaal Ahmad Zeeshan1-Jul-15 14:49
professionalAfzaal Ahmad Zeeshan1-Jul-15 14:49 
GeneralRe: in MVC Edit page, how to check for null values? Pin
Member 117338681-Jul-15 15:01
Member 117338681-Jul-15 15:01 
Questionexternal javascript not working Pin
nordyck29-Jun-15 7:31
nordyck29-Jun-15 7:31 
AnswerRe: external javascript not working Pin
Kornfeld Eliyahu Peter29-Jun-15 8:13
professionalKornfeld Eliyahu Peter29-Jun-15 8:13 
GeneralRe: external javascript not working Pin
Member 1173386829-Jun-15 12:47
Member 1173386829-Jun-15 12:47 
AnswerRe: external javascript not working Pin
Leng Vang2-Jul-15 9:38
Leng Vang2-Jul-15 9:38 
Questionjquery slideshows Pin
vikkismarty29-Jun-15 5:21
vikkismarty29-Jun-15 5:21 
QuestionStore one value from rows of data in a table Pin
Rajesh_198025-Jun-15 3:29
Rajesh_198025-Jun-15 3:29 
AnswerRe: Store one value from rows of data in a table Pin
jkirkerx26-Jun-15 8:46
professionaljkirkerx26-Jun-15 8:46 
GeneralRe: Store one value from rows of data in a table Pin
Rajesh_198029-Jun-15 6:31
Rajesh_198029-Jun-15 6:31 
GeneralRe: Store one value from rows of data in a table Pin
jkirkerx29-Jun-15 6:59
professionaljkirkerx29-Jun-15 6:59 
QuestionComparing two dates Pin
ap@238722-Jun-15 20:44
ap@238722-Jun-15 20:44 
AnswerRe: Comparing two dates Pin
User 418025410-Jul-15 12:01
User 418025410-Jul-15 12:01 
QuestionHow can I convert image to video in Javascript? Pin
Member 1161266222-Jun-15 20:33
Member 1161266222-Jun-15 20:33 
AnswerRe: How can I convert image to video in Javascript? Pin
jkirkerx26-Jun-15 8:55
professionaljkirkerx26-Jun-15 8: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.