G
Geoff Cox
Hello,
For some reason, which I cannot see, the code below repeats the last
element of the array at the beginning of the data sent via email. Can
onyone see why?
Thanks
Geoff
{
for (var i = 0; i < slider_value.length; i++)
{
document.getElementById("Slider1ValueText").innerHTML +=
this.slider_value + " ";
}
var situation = "Social Group";
var url = 'http://website/path/cgi-bin/formmail-nms2.cgi';
var pars = 'Situation: ' + situation + ' ' + 'Name: ' + name + ' ' +
'Slider_Values='+document.getElementById('Slider1ValueText').innerHTML;
var myAjax = new Ajax.Updater('Status', url, {method: 'post',
parameters: pars});
}
For some reason, which I cannot see, the code below repeats the last
element of the array at the beginning of the data sent via email. Can
onyone see why?
Thanks
Geoff
{
for (var i = 0; i < slider_value.length; i++)
{
document.getElementById("Slider1ValueText").innerHTML +=
this.slider_value + " ";
}
var situation = "Social Group";
var url = 'http://website/path/cgi-bin/formmail-nms2.cgi';
var pars = 'Situation: ' + situation + ' ' + 'Name: ' + name + ' ' +
'Slider_Values='+document.getElementById('Slider1ValueText').innerHTML;
var myAjax = new Ajax.Updater('Status', url, {method: 'post',
parameters: pars});
}