Hi Geoff,
Replace the saveIt() with the code given below. You can replace the
"Status" Span too.
function saveIt() {
var url = 'http://yourserver/mail.cgi';
var pars
='sliderVal='+document.getElementById('Slider1Valu eText').innerHTML;
var myAjax = new Ajax.Request(
url,
{method: 'get', parameters: pars, onComplete:
function(){alert("Mail Sent.")}}
);
}
> <input type="hidden" name="redirect"
> value="http://website/path/thanks.htm" />
What are you doing here with this Hidden Input? Is this the output you
get from AJAX? Info needed.
Some Info for you.
1. Learn XMLHTTP or AJAX
2. Learn Prototype.js and understand it. Good place to start is
http://www.sergiopereira.com/articles/prototype.js.html
We are calling your cgi script with a cgi param "sliderVal" from
Javascript using AJAX and displaying the response. If you dont want the
responsse to be shown, then do nothing in the "onComplete" handler of
"AJax.Request" Object.
- Peroli Sivaprakasam
Geoff Cox wrote:
> On 1 Sep 2005 04:27:39 -0700, "Peroli" <> wrote:
>
> Peroli,
>
> Have sorted the invisible <span> by using css but one other thing.
>
> After the slider value has been submitted a message appears saying
> Thank you etc and giving the slider value.
>
> I do not wish that value to be seen and cannot stop it!
>
> <input type="hidden" name="redirect"
> value="http://website/path/thanks.htm" />
>
> does not work - still get the Thank you message!
>
> What is happening?
>
> Cheers
>
> Geoff