Click here to Skip to main content
14,494,682 members

JavaScript

 
Questiontest regexep javascript Pin
Alboyz5-Oct-18 4:31
MemberAlboyz5-Oct-18 4:31 
AnswerRe: test regexep javascript Pin
Richard Deeming5-Oct-18 4:48
mveRichard Deeming5-Oct-18 4:48 
GeneralRe: test regexep javascript Pin
Alboyz5-Oct-18 5:02
MemberAlboyz5-Oct-18 5:02 
GeneralRe: test regexep javascript Pin
uxotucung9-Nov-18 3:09
Memberuxotucung9-Nov-18 3:09 
QuestionAdding a list of files to the array and displaying them in the component Pin
Member 140077214-Oct-18 4:33
MemberMember 140077214-Oct-18 4:33 
QuestionDate picker style not showing Pin
thepast24-Sep-18 8:21
Memberthepast24-Sep-18 8:21 
AnswerRe: Date picker style not showing Pin
ZurdoDev24-Sep-18 8:58
mveZurdoDev24-Sep-18 8:58 
GeneralRe: Date picker style not showing Pin
Iniciativa Box Funcional25-Sep-18 7:36
MemberIniciativa Box Funcional25-Sep-18 7:36 
QuestionRelation between null and zero. Pin
GKP199222-Sep-18 21:21
professionalGKP199222-Sep-18 21:21 
AnswerRe: Relation between null and zero. Pin
Richard Deeming24-Sep-18 8:03
mveRichard Deeming24-Sep-18 8:03 
GeneralRe: Relation between null and zero. Pin
GKP199224-Sep-18 17:37
professionalGKP199224-Sep-18 17:37 
QuestionTypeScript, Dropping Image and loading preview without posting, a working sample, FileReader, readAsDataUrl, reader.result Pin
jkirkerx19-Sep-18 7:55
professionaljkirkerx19-Sep-18 7:55 
QuestionCan't match this string in typescript using if and else if Pin
jkirkerx18-Sep-18 13:04
professionaljkirkerx18-Sep-18 13:04 
AnswerRe: Can't match this string in typescript using if and else if Pin
Graham Breach18-Sep-18 21:21
MemberGraham Breach18-Sep-18 21:21 
I think the problem is in your logic - in English: "if file type is not jpeg OR file type is not png" always evaluates to true. If the file type is "jpeg", then it can't be "png", so the part after the OR matches. If the file type is "png" then it can't be "jpeg", so the first part matches.

Replace the || with && and you should get the block executing when the file type is not "jpeg" AND not "png".
GeneralRe: Can't match this string in typescript using if and else if Pin
jkirkerx19-Sep-18 7:27
professionaljkirkerx19-Sep-18 7:27 
QuestionCan't match this string in typescript using if and else if Pin
jkirkerx18-Sep-18 13:04
professionaljkirkerx18-Sep-18 13:04 
QuestionHow to cancel a drag event Pin
jkirkerx18-Sep-18 9:25
professionaljkirkerx18-Sep-18 9:25 
AnswerRe: How to cancel a drag event Pin
Richard Deeming18-Sep-18 10:53
mveRichard Deeming18-Sep-18 10:53 
GeneralRe: How to cancel a drag event Pin
jkirkerx18-Sep-18 11:54
professionaljkirkerx18-Sep-18 11:54 
Questioncouldn't read from datalist Pin
thepast16-Sep-18 21:01
Memberthepast16-Sep-18 21:01 
QuestionHow to pass JavaScript output to an HTML String Variable outside the <script>? Pin
Member 1348136115-Sep-18 15:45
MemberMember 1348136115-Sep-18 15:45 
AnswerRe: How to pass JavaScript output to an HTML String Variable outside the <script>? Pin
Richard Deeming18-Sep-18 3:45
mveRichard Deeming18-Sep-18 3:45 
QuestionTrouble uploading files with aws s3 Pin
Member 1398382813-Sep-18 13:15
MemberMember 1398382813-Sep-18 13:15 
AnswerRe: Trouble uploading files with aws s3 Pin
jkirkerx1-Oct-18 8:04
professionaljkirkerx1-Oct-18 8:04 
Questiongetting error period.draggable is not a function Pin
Gopal Kan12-Sep-18 19:49
MemberGopal Kan12-Sep-18 19:49 

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.