PEAR is discontinued

This is a static archive preserving historical releases and metadata. No new packages or updates will be published. For updates to existing packages, or to publish new packages, please use Composer and Packagist.

Home » HTML » HTML_AJAX » Bug #9537

formSubmit target also accepting a function

Details

Request #9537formSubmit target also accepting a function
Submitted2006-12-04 16:22 UTC
Frommichiel at dinnersite dot nl
Assignedjeichorn
StatusClosed
PackageHTML_AJAX
PHP Version4.4.4
OSMandrake Linux
Roadmaps0.5.1

Comments

[2006-12-04 16:22 UTC] michiel at dinnersite dot nl

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.

[2006-12-04 18:13 UTC] jeichorn at php dot net

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

Fixed in 0.5.1

[2006-12-19 22:38 UTC] jeichorn at php dot net

This was a feature addition so not so much fixed as added