Package home | Report new bug | New search | Development Roadmap Status: Open | Feedback | All | Closed Since Version 0.5.8

Request #9537 formSubmit target also accepting a function
Submitted: 2006-12-04 16:22 UTC
From: michiel at dinnersite dot nl Assigned: jeichorn
Status: Closed Package: HTML_AJAX (version 0.5.0)
PHP Version: 4.4.4 OS: Mandrake Linux
Roadmaps: 0.5.1    
Subscription  


 [2006-12-04 16:22 UTC] michiel at dinnersite dot nl (Michiel Nugter)
Description: ------------ It would be very nice if the formSubmit function would also accept a function for a callback instead of just an id to insert the result into, just like the grab method works.

Comments

 [2006-12-04 18:13 UTC] jeichorn at php dot net (Joshua Eichorn)
You can already do this using the options array, but i guess it makes sense to do type detection and let the id field take a function instead
 [2006-12-05 08:11 UTC] michiel at dinnersite dot nl
Ok, didn't know that, I see it now in the code (wasn't looking too good last time I guess). But it indeed would make more sense to keep the API as consistent as possible.
 [2006-12-19 22:34 UTC] jeichorn at php dot net (Joshua Eichorn)
Fixed in 0.5.1
 [2006-12-19 22:38 UTC] jeichorn at php dot net (Joshua Eichorn)
This was a feature addition so not so much fixed as added