Hi guys,
  I am testing out some code for my new site in anticipation of
MooTools 1.3 but have a small problem: whenever I run some of the
example MooTools 1.2 ajax form demo code (http://mootools.net/shell/
kFFmJ/ to see my code), Safari's console throws this error:

TypeError: Result of expression 'this.headers' [undefined] is not an
object.   core.js:4928

which is this chip of code here:

if (this.options.urlEncoded && method == 'post'){
            var encoding = (this.options.encoding) ? '; charset=' +
this.options.encoding : '';
            this.headers['Content-Type'] = 'application/x-www-form-
urlencoded' + encoding;  <== problem line
        }

I changed this.headers to this.options.headers and the problem then
moves to this line:

TypeError: Result of expression 'this.xhr' [undefined] is not an
object.       core.js:4943

which is this chip of code:

this.xhr.open(method.toUpperCase(), url, this.options.async);

I then revert them back and the 1st error appears. Am I to understand
that this way of sending a form is deprecated or should Form.Request
be used?

With many thanks,
  timeimp

Reply via email to