Why not do a post?  It's not any harder.  You just have to add one extra
line and move the arguments from the URL to the send:

       ajax.open("POST","/GetCustomers.aspx",true);
       ajax.setRequestHeader
("Content-Type","application/x-www-form-urlencoded");
       ajax.onreadystatechange = function() {
           // do stuff
         }
       };
       ajax.send(country=ireland);

If you have more than one parameter to send, separate them with &'s just
like the query string.
 (*Chris*)

On 9/21/06, Daniel Chacón Sánchez <[EMAIL PROTECTED]> wrote:

alredy do the url change, I'm reading this:
http://www.enja.org/david/?p=25

<a href="#" onclick="uncache('actualizarCamposForm.do
?paso=paso1&campo=nacionalidad',
'PersonaForm')">Click Here</a>

function uncache(url,form){
    var d = new Date();
    var time = d.getTime();

    url += '&time='+time;

    retrieveURL(url,form);

}

I will keep reading


Reply via email to