Hi,

I want to pass the value of 'parameters' to the Ajax.Request method as
a variable like in the example below:

function SendRequest()
{
var params = "param1: 'value 1', param2: 'value 2' ... ";

        new Ajax.Request("URL",
        {
                method:'post',
                parameters: params,
                onFailure: function() { alert('Something went wrong...'); },
                onSuccess: HandleCallBack
        });
}

The reason I want to do this is because the list of parameters will
actually come from a textarea in the page. However, the paramers
aren't getting passed correctly to the URL. How can I get it to work?

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Prototype & script.aculo.us" group.
To post to this group, send email to prototype-scriptaculous@googlegroups.com
To unsubscribe from this group, send email to 
prototype-scriptaculous+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/prototype-scriptaculous?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to