This project is archived and is in readonly mode.

#188 ✓resolved
131

Element.toquerystring and input[type=image]

Reported by 131 | July 2nd, 2008 @ 06:53 PM | in 1.3.0 rc2 (closed)

There's no reason for Element.toqueryString to submit any input[type=image]

Elements of this kind are submitted ONLY when they fire themself the form's submission, else, they're just ignored.

Here, $(myform).toquerystring, we CANNOT know if the form was submitted by an input/image, so, just leave this to the developper who 'll have to deal with some kind of input[type=image].addEvent.click.this.form.inject(createlement).submit

But toquerystring SHOULD NOT attach it automaticly

Basic patch :

toQueryString: function(){

var queryString = [],liste=this.getElements('input[type!=image], select, textarea');

PS : roman, go !

Comments and changes to this ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile »

Shared Ticket Bins

Referenced by

Pages