Excellent, works like a charm, thanks for that. Simon
On Wed, 03 Dec 2008 17:13:50 +0900, Frederick Cheung <[EMAIL PROTECTED]> wrote: > > > > > Well (I had to look this up since I never use raw XMLHttpRequest) the > parameter to send is the body of the request. When rails gets a text/ > plain request it doesn't parse the the request body for parameters > (since you've told it that it's just a big text file). So either you > could make the type not text/plain (ie application/x-www-form- > urlencoded), and even then you'd want to drop the leading ? in the > body, or you could append it to the url you are requesting (being just > a little bit careful that you glue it on with a & or a ? as > appropriate) > > Fred > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---

