Loading ...
Sorry, an error occurred while loading the content.
 

Re: Connection - problem in IE when form contains an input named "method"

Expand Messages
  • steve_brewdoggie
    I ve got 2.2.0. Upgrading fixed my problem. Sorry for the trouble.
    Message 1 of 3 , Jun 5 11:14 AM
      I've got 2.2.0. Upgrading fixed my problem. Sorry for the trouble.

      --- In ydn-javascript@yahoogroups.com, "tssha" <tsha@...> wrote:
      >
      > --- In ydn-javascript@yahoogroups.com, "steve_brewdoggie"
      > <steve.brewer@> wrote:
      > >
      > > I'm using YAHOO.util.Connect to upload files as follows:
      > >
      > > YAHOO.util.Connect.setForm( uploadForm, true );
      > > var cObj = YAHOO.util.Connect.asyncRequest('POST', '/Upload/file.do',
      > > callback);
      > >
      > > I get an error in IE when the uploadFile function tries to set the
      > > method to 'POST':
      > >
      > > this._formNode.method = 'POST';
      > >
      > > I tracked it down, my form contains an input named method. FF sets
      > > the form attribute, IE is trying to alter the input, and is throwing
      > > up. I've worked around this locally by using setAttribute:
      > >
      > > this._formNode.setAttribute( 'method', 'POST' );
      >
      > Are you using an older version of connection manager? As of 2.2.2,
      > the code block you cite has been refactored to use setAttribute. For
      > example:
      >
      > this._formNode.setAttribute('action', uri);
      > this._formNode.setAttribute('method', 'POST');
      > this._formNode.setAttribute("target", frameId);
      >
      > Regards,
      > Thomas
      >
    Your message has been successfully submitted and would be delivered to recipients shortly.