Click here to Skip to main content
15,886,258 members
Home / Discussions / JavaScript
   

JavaScript

 
Question(SOLVED) How to activate button on mouse press? Pin
samflex6-Jun-19 4:39
samflex6-Jun-19 4:39 
AnswerRe: How to activate button on mouse press? Pin
Richard Deeming6-Jun-19 5:39
mveRichard Deeming6-Jun-19 5:39 
GeneralRe: How to activate button on mouse press? Pin
samflex6-Jun-19 6:24
samflex6-Jun-19 6:24 
GeneralRe: How to activate button on mouse press? Pin
samflex6-Jun-19 7:21
samflex6-Jun-19 7:21 
GeneralRe: How to activate button on mouse press? Pin
Richard Deeming6-Jun-19 8:03
mveRichard Deeming6-Jun-19 8:03 
GeneralRe: How to activate button on mouse press? Pin
samflex6-Jun-19 9:47
samflex6-Jun-19 9:47 
Questionhow to count product codes from textarea? Pin
Veltix26-May-19 4:11
Veltix26-May-19 4:11 
AnswerRe: how to count product codes from textarea? Pin
jkirkerx27-May-19 11:14
professionaljkirkerx27-May-19 11:14 
Your pretty vague in saying what exactly your having trouble with.
I'm not going to write code for you, but think of part numbers as words, gathering each word and then count the occurrence of each word.
This is done all the time, using words like "apple, orange" so you get a count of "apples" and "oranges"
Perhaps search the internet for a JavaScript example of counting words!

Start again from scratch, and write functions to do the following.

So get all the text in the textarea
Gather and count each occurrence of a word and push the words into an array and increment the counter
Then loop the array, and qualify the words as a part number, remove the ones that don't qualify.
Now you have an array or words and the count.
Then do something with the array of words.

Now go back and write event listeners to trigger your main function.
If it ain't broke don't fix it
Discover my world at jkirkerx.com

QuestionBest ReactJS tutorial? Pin
Corey Cananza26-May-19 3:59
Corey Cananza26-May-19 3:59 
AnswerRe: Best ReactJS tutorial? Pin
Katie Webber30-Jul-19 2:06
professionalKatie Webber30-Jul-19 2:06 
AnswerRe: Best ReactJS tutorial? Pin
Harsh.Shah.ifour13-Aug-19 18:13
professionalHarsh.Shah.ifour13-Aug-19 18:13 
AnswerRe: Best ReactJS tutorial? Pin
Le centriste4-Sep-19 3:57
Le centriste4-Sep-19 3:57 
QuestionHow to call function second time? Pin
Tarun Rathore 23-May-19 19:28
Tarun Rathore 23-May-19 19:28 
GeneralRe: How to call function second time? Pin
Richard MacCutchan23-May-19 21:56
mveRichard MacCutchan23-May-19 21:56 
AnswerRe: How to call function second time? Pin
Shraddha_Patel21-Oct-19 20:04
Shraddha_Patel21-Oct-19 20:04 
QuestionExplain the working of timers in JavaScript? Also elucidate the drawbacks of using the timer, if any? Pin
Shraddha_Patel20-May-19 17:38
Shraddha_Patel20-May-19 17:38 
AnswerRe: Explain the working of timers in JavaScript? Also elucidate the drawbacks of using the timer, if any? Pin
Richard MacCutchan20-May-19 21:03
mveRichard MacCutchan20-May-19 21:03 
AnswerRe: Explain the working of timers in JavaScript? Also elucidate the drawbacks of using the timer, if any? Pin
ZurdoDev21-May-19 2:03
professionalZurdoDev21-May-19 2:03 
QuestionHow to give unique ids to changing divs? Pin
Tarun Rathore 18-May-19 9:48
Tarun Rathore 18-May-19 9:48 
AnswerRe: How to give unique ids to changing divs? Pin
ZurdoDev21-May-19 2:04
professionalZurdoDev21-May-19 2:04 
QuestionUsing XML Pin
V.28-Apr-19 20:57
professionalV.28-Apr-19 20:57 
SuggestionRe: Using XML Pin
Richard MacCutchan28-Apr-19 21:56
mveRichard MacCutchan28-Apr-19 21:56 
GeneralRe: Using XML Pin
V.28-Apr-19 22:21
professionalV.28-Apr-19 22:21 
GeneralRe: Using XML Pin
Richard MacCutchan28-Apr-19 22:25
mveRichard MacCutchan28-Apr-19 22:25 
GeneralRe: Using XML Pin
V.28-Apr-19 22:38
professionalV.28-Apr-19 22:38 

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.