1 risposta
1) Two REQUIRESCRIPTnormally: {!REQUIRESCRIPT("/soap/ajax/38.0/connection.js")} {!REQUIRESCRIPT("/soap/ajax/38.0/apex.js")} 2) It lacks the last "}" at the end (incomplete copy/paste)3) Avoid new Array()There is no need to use the JavaScript's built-in array constructor new Array().Use [] instead.These two different statements both create a new empty array named points:var points = new Array(); // Badvar points = []; // Good These two different statements both create a new array containing 6 numbers:var points = new Array(40, 100, 1, 5, 25, 10); // Badvar points = [40, 100, 1, 5, 25, 10]; // Goodhttps://www.w3schools.com/js/js_arrays.aspFirst modifications before the next step and the final solution (if it is not fixed yet, so provide your own solution)Regards