Click here to Skip to main content
14,659,534 members
Home » Discussions » JavaScript


GeneralRe: Javascript coding question Pin
Richard MacCutchan22-Aug-20 5:01
mveRichard MacCutchan22-Aug-20 5:01 
GeneralMessage Closed Pin
22-Aug-20 11:55
MemberMember 1492052622-Aug-20 11:55 
QuestionHow to edit a page in real time with a CMS? Pin
sakispal17-Aug-20 11:26
Membersakispal17-Aug-20 11:26 
QuestionLoad Webpage in JS condition Pin
Member 1491620017-Aug-20 7:48
MemberMember 1491620017-Aug-20 7:48 
AnswerRe: Load Webpage in JS condition Pin
ZurdoDev17-Aug-20 10:14
mveZurdoDev17-Aug-20 10:14 
AnswerRe: Load Webpage in JS condition Pin
Richard Deeming17-Aug-20 21:46
mveRichard Deeming17-Aug-20 21:46 
AnswerRe: Load Webpage in JS condition Pin
Otekpo Emmanuel21-Aug-20 4:18
MemberOtekpo Emmanuel21-Aug-20 4:18 
QuestionBeginner-Help with parsing out multi select drop downs Pin
Member 1491294312-Aug-20 8:01
MemberMember 1491294312-Aug-20 8:01 
I am very new to Java Script and wondering if someone would be able to help me. I have columns F-K (target column numbers 5-10) that are each a multi select drop down field. So, there are multiple answers chosen in these cells. Only one of the columns will be used as a multi select per row. So, if column F has values in it then columns G-K will not have values in it for that row. I am in need of parsing out these multi select answers. So, if on cell F2 10 answers were chosen in this cell then there should be 10 rows of data (one answer per row with the other data copied down). I have the below code so far for column K (#10), but not sure how I get it to do the other columns.
Any help would be very much appreciated! Thank you!

zoneparse(range) {
delimiter = "\n"
targetColumn = 10

var output2 = [];
for(var i=0, iLen=range.length; i<ilen; i++)="" {
="" var="" s="range[i][targetColumn].split(delimiter);"
="" for(var="" j="0," jlen="s.length;" j<jlen;="" j++)="" output1="[];" k="0," klen="range[0].length;" k<klen;="" k++)="" if(k="=" targetcolumn)="" output1.push(s[j]);
="" }="" else="" output1.push(range[i][k]);
="" }
="" output2.push(output1);
="" return="" output2;
}<="" pre="">

modified 12-Aug-20 15:17pm.

Questiondrawing-a-polygon-on-image-inside-canvas-after-zoom-in-out-and-panning Pin
Member 1491178110-Aug-20 23:31
MemberMember 1491178110-Aug-20 23:31 
QuestionJquery problem to FIX ! Pin
imothep857-Aug-20 0:25
Memberimothep857-Aug-20 0:25 
Rant[REPOST] Jquery problem to FIX ! Pin
Richard Deeming7-Aug-20 1:00
mveRichard Deeming7-Aug-20 1:00 
AnswerRe: Jquery problem to FIX ! Pin
jkirkerx7-Aug-20 9:28
professionaljkirkerx7-Aug-20 9:28 
QuestionMasking Phone in Ember JS Pin
simpledeveloper24-Jul-20 11:02
Membersimpledeveloper24-Jul-20 11:02 
Questionhow to generate new products, confirm these products are not duplicates from the immediate previous set? Pin
hamzh sami21-Jul-20 10:28
Memberhamzh sami21-Jul-20 10:28 
QuestionHi , can someone help me with this task Pin
Member 1489271418-Jul-20 0:22
MemberMember 1489271418-Jul-20 0:22 
AnswerRe: Hi , can someone help me with this task Pin
Richard MacCutchan18-Jul-20 0:56
mveRichard MacCutchan18-Jul-20 0:56 
JokeRe: Hi , can someone help me with this task Pin
Peter_in_278018-Jul-20 1:34
professionalPeter_in_278018-Jul-20 1:34 
GeneralRe: Hi , can someone help me with this task Pin
Richard MacCutchan18-Jul-20 1:35
mveRichard MacCutchan18-Jul-20 1:35 
QuestionDOM Functions Pin
Member 1488961215-Jul-20 3:09
MemberMember 1488961215-Jul-20 3:09 
AnswerRe: DOM Functions Pin
Richard MacCutchan15-Jul-20 3:49
mveRichard MacCutchan15-Jul-20 3:49 
QuestionPoints Scaling issue on Leaflet Pin
LilFlower13-Jul-20 0:52
MemberLilFlower13-Jul-20 0:52 
AnswerRe: Points Scaling issue on Leaflet Pin
jkirkerx15-Jul-20 12:33
professionaljkirkerx15-Jul-20 12:33 
QuestionJavascript summary with prompt Pin
atomattacker-png11-Jul-20 11:56
Memberatomattacker-png11-Jul-20 11:56 
AnswerRe: Javascript summary with prompt Pin
Richard MacCutchan11-Jul-20 23:00
mveRichard MacCutchan11-Jul-20 23:00 
GeneralRe: Javascript summary with prompt Pin
atomattacker-png11-Jul-20 23:38
Memberatomattacker-png11-Jul-20 23: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.