Adding script to a post
-
I am adding some qty order buttons to my post (bsa.isgreat.org) and I have a script that runs the min/max qty formula, so if your input is below 5 and over 10 it will not let you go any further. It runs properly when I have it as html page, however when I put it in the post it does not run properly. There is a line that is altered somehow at the execution of the post.
original script text is:function calcQty() {
for (var i =1; i <=8; i++){
var temp=eval(‘document.Form1.qty’+i+’.value’);
if (temp!=””&&!isNaN(temp)){
eval(‘qty’+i+’ = parseInt(temp)’);the altered scipt text:
var temp=eval(‘document.Form1.qty’+i+’.value’);
if (temp!=””&&!isNaN(temp)){
eval(‘qty’+i+’ = parseInt(temp)’);The #038 is added somehow to the script and it messes it up.
Any idea why it is happening and what the solution could be.
Thanks.
The topic ‘Adding script to a post’ is closed to new replies.