Bug Tracker

Opened 6 years ago

Closed 6 years ago

Last modified 5 years ago

#8045 closed bug (wontfix)

Jquery form broken on 1.5RC1

Reported by: dl@… Owned by: jaubourg
Priority: low Milestone: 1.next
Component: ajax Version: 1.5rc1
Keywords: Cc:
Blocked by: Blocking:

Description

Testing Jquery Form using the 1.5 release candidate Jquery RC1 Get the following error on a SUBMIT Uncaught TypeError: Object function ( selector, context ) {

The jQuery object is actually just the init constructor 'enhanced' return new jQuery.fn.init( selector, context, rootjQuery );

} has no method 'handleError'

on jquery.form.js:387

catch(e){

log('error caught:',e); ok = false; xhr.error = e; $.handleError(s, xhr, 'error', e); Line 387

}

Not clear to me what the root cause of the problem is.

Change History (6)

comment:1 Changed 6 years ago by rwaldron

  • Component changed from unfiled to ajax
  • Owner set to jaubourg
  • Priority changed from undecided to blocker
  • Status changed from new to assigned

I'm marking this a blocker, but it may very well be an issue that the plugin has to address.

comment:2 Changed 6 years ago by jaubourg

jQuery.handleError was never documented and doesn't exist anymore in 1.5RC1.

comment:3 follow-up: Changed 6 years ago by jaubourg

  • Resolution set to wontfix
  • Status changed from assigned to closed

I've looked deeper into the code and it seems the plugin implements an iframe transport the very very hard way.

It could easily feature-detect if jQuery.ajaxTransport is present and create the iframe transport the easier way in that case.

comment:4 Changed 6 years ago by jitter

  • Priority changed from blocker to low

The author has been notified of this issue. You can track progress on this here: https://github.com/malsup/form/issues#issue/56

comment:5 in reply to: ↑ 3 Changed 6 years ago by Christopher Lenz <cmlenz@…>

Replying to jaubourg:

I've looked deeper into the code and it seems the plugin implements an iframe transport the very very hard way.

It could easily feature-detect if jQuery.ajaxTransport is present and create the iframe transport the easier way in that case.

I would be very interested in how exactly you'd implement an iframe transport the easy way. Do you have some corresponding sample code lying around by any chance?

Thanks.

comment:6 Changed 6 years ago by anonymous

Still broken as of 1.6. Good Job!

Note: See TracTickets for help on using tickets.