I was trying something along these lines:
Expand|Select|Wrap|Line Numbers
- function processFactors(){
- var factors = new Array();
- var factors_in = document.form1.factors_in.value;
- factors_in = factors_in.replace(/\r\n|\r|\n/g, ' ');
- factors = factors_in.split(' ');
- }
I need some kind of loop that parses the string but I don't know the proper syntax...Any advice or thoughts are greatly appreciated!
thank you.