Bug Tracker

Modify

Ticket #8045 (closed bug: wontfix)

Opened 16 months ago

Last modified 2 months ago

Jquery form broken on 1.5RC1

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

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

comment:1 Changed 16 months ago by rwaldron

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

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

comment:2 Changed 16 months ago by jaubourg

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

comment:3 follow-up: ↓ 5 Changed 16 months ago by jaubourg

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

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 16 months 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 15 months 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 11 months ago by anonymous

Still broken as of 1.6. Good Job!

Please follow the  bug reporting guidlines and use  jsFiddle when providing test cases and demonstrations instead of pasting the code in the ticket.

View

Add a comment

Modify Ticket

Action
as closed
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.