Part of the core design of JavaScript is that it has no access to the filesystem. This means that it is unable to load any information from external files. You could possibly do some trickery with an IFRAME and set it's source (a small HTML page for each product) dynamically using JavaScript.
What I'd recommend doing is to extend the existing JavaScript to load another array containing a list of CUSTOMVAR:TEXT1 ... TEXT6 and document.write that out. It might be best to use double quoted names, so that single quotes in the text don't cause JavaScript errrors.
E.g.
What I'd recommend doing is to extend the existing JavaScript to load another array containing a list of CUSTOMVAR:TEXT1 ... TEXT6 and document.write that out. It might be best to use double quoted names, so that single quotes in the text don't cause JavaScript errrors.
E.g.
Code:
var cvtext=new Array("CUSTOMVAR:TEXT1","CUSTOMVAR:TEXT2","CUSTOMVAR:TEXT3","CUSTOMVAR:TEXT4","CUSTOMVAR:TEXT5", "CUSTOMVAR:TEXT6","CUSTOMVAR:TEXT7","CUSTOMVAR:TEXT8","CUSTOMVAR:TEXT9","CUSTOMVAR:TEXT10");
Comment