Click here to Skip to main content
15,175,709 members
Home / Discussions / JavaScript
   

JavaScript

 
AnswerRe: too many scripts? Pin
Richard Deeming10-Nov-20 23:42
mveRichard Deeming10-Nov-20 23:42 
GeneralRe: too many scripts? Pin
Member 1469595611-Nov-20 0:37
MemberMember 1469595611-Nov-20 0:37 
AnswerRe: too many scripts? Pin
Sandeep Mewara10-Nov-20 23:46
mveSandeep Mewara10-Nov-20 23:46 
GeneralRe: too many scripts? Pin
Member 1469595611-Nov-20 0:35
MemberMember 1469595611-Nov-20 0:35 
Question[Vanilla Javascript Newbie] How to access a function of a function from a part of code oustide this function Pin
GlowWurm19778-Nov-20 11:03
MemberGlowWurm19778-Nov-20 11:03 
AnswerRe: [Vanilla Javascript Newbie] How to access a function of a function from a part of code oustide this function Pin
Richard MacCutchan8-Nov-20 22:58
mveRichard MacCutchan8-Nov-20 22:58 
AnswerRe: [Vanilla Javascript Newbie] How to access a function of a function from a part of code oustide this function Pin
Richard Deeming9-Nov-20 23:07
mveRichard Deeming9-Nov-20 23:07 
QuestionGet image extension Pin
Valentinor4-Nov-20 4:10
MemberValentinor4-Nov-20 4:10 
Is there a way to get the extension of an image if you know it's link? At first I thought of splitting the string with . and get the last part, but the problem with this is that there are some links that don't include the extension at the end so this is not an universal solution.
Because I know the link each time, is there something I can do with an image object (new Image), or how else can I get the extension? All the results I got were to check if it is an image but not it's extension, or the one I explained above, but that won't work in every scenarios.

This will be done in a extension for Firefox.

modified 9-Nov-20 16:23pm.

AnswerRe: Get image extension Pin
Blanksy8-Nov-20 12:12
MemberBlanksy8-Nov-20 12:12 
GeneralRe: Get image extension Pin
Valentinor8-Nov-20 20:33
MemberValentinor8-Nov-20 20:33 
GeneralRe: Get image extension Pin
Richard Deeming8-Nov-20 22:53
mveRichard Deeming8-Nov-20 22:53 
GeneralRe: Get image extension Pin
Valentinor9-Nov-20 6:43
MemberValentinor9-Nov-20 6:43 
GeneralRe: Get image extension Pin
Richard Deeming9-Nov-20 6:58
mveRichard Deeming9-Nov-20 6:58 
GeneralRe: Get image extension Pin
Valentinor9-Nov-20 11:31
MemberValentinor9-Nov-20 11:31 
GeneralRe: Get image extension Pin
Richard Deeming9-Nov-20 22:36
mveRichard Deeming9-Nov-20 22:36 
GeneralRe: Get image extension Pin
Valentinor10-Nov-20 5:10
MemberValentinor10-Nov-20 5:10 
Questionfunction with OR Pin
Member 1497891029-Oct-20 10:30
MemberMember 1497891029-Oct-20 10:30 
AnswerRe: function with OR Pin
Richard MacCutchan29-Oct-20 11:41
mveRichard MacCutchan29-Oct-20 11:41 
SuggestionJSMAN - JavaScript Map alternative notation Pin
Member 1497706227-Oct-20 18:35
MemberMember 1497706227-Oct-20 18:35 
GeneralRe: JSMAN - JavaScript Map alternative notation Pin
Sandeep Mewara27-Oct-20 20:34
mveSandeep Mewara27-Oct-20 20:34 
Questionfind low distance from two matrices Pin
costy3527-Oct-20 7:57
Membercosty3527-Oct-20 7:57 
GeneralRe: find low distance from two matrices Pin
Richard MacCutchan27-Oct-20 8:14
mveRichard MacCutchan27-Oct-20 8:14 
GeneralRe: find low distance from two matrices Pin
costy3527-Oct-20 12:18
Membercosty3527-Oct-20 12:18 
GeneralRe: find low distance from two matrices Pin
Richard MacCutchan27-Oct-20 22:49
mveRichard MacCutchan27-Oct-20 22:49 
QuestionConverting image file format Pin
Valentinor27-Oct-20 0:40
MemberValentinor27-Oct-20 0:40 

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.