Hello,

I just upgraded to Prototype v1.6, and I am getting the following
error
-- $H(object).toQueryString is not a function [line 144]

This is the Object.toQueryString() method. And it comes from the place
below in Ajax.reuest
   if (params = Object.toQueryString(params)) {  // The
Obect.toQueryString call here causes the error
      // when GET, append parameters to URL
      if (this.method == 'get')
        this.url += (this.url.include('?') ? '&' : '?') + params;
      else if (/Konqueror|Safari|KHTML/.test(navigator.userAgent))
        params += '&_=';
    }

Can somebody help me out here? My call is like this
  new Ajax.Request("/addParamters.do", {
            method: 'get',
            pars: 'a=10&b=2',
            onComplete: function(resp) {
                alert("Hello there");
        }
    });

Also my call is in a file > b.js, which is included after the
prototype library is included from my HTML file.

Thanks and Regards,
Laks
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Spinoffs" 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-spinoffs?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to