Daniel,
this is how I see these attributes on form elements:

"enabled"
the functionalities of the form element are available and interactions
by users are allowed

"disabled"
the functionalities of the form element are available and interactions
by users are disallowed

"hidden"
the form element is not rendered by the UI and can only be modified
programmatically

None of them specify if the field would be submitted or not, if I
recall correctly all of the form elements values should be serialized
and submitted, "enabled", "disabled" and "hidden". Differing
implementations are framework specific and most probably not done
through a standard form submission but through an Ajax request
instead.

Diego


On 29 Gen, 21:03, Daniel Friesen <nadir.seen.f...@gmail.com> wrote:
> Looking at the Sizzle code:
>
>   filters: {
>     enabled: function(elem){
>       return elem.disabled === false && elem.type !== "hidden";
>     },
>     disabled: function(elem){
>       return elem.disabled === true;
>     },
>
> This honestly doesn't make sense. :not(:enabled) != :disabled and
> :enabled != :not(:disabled) like it logically should be.
>
> This will exclude any type="hidden" elements. It seams natural to
> believe that $('#formid :enabled') should return any form input that
> would be submitted if the form were submitted. Afact in a project at
> work using the custom framework I use a selector much like that when our
> .ajax call gets a form input as it's data parameter (ie: It goes through
> the enabled inputs and extracts the value of all the named ones and
> converts it into the urlencoded data string).
>
> ~Daniel Friesen (Dantman, Nadir-Seen-Fire) [http://nadir-seen-fire.com]
> -Nadir-Point (http://nadir-point.com)
> -Wiki-Tools (http://wiki-tools.com)
> -MonkeyScript (http://monkeyscript.nadir-point.com)
> -Animepedia (http://anime.wikia.com)
> -Narutopedia (http://naruto.wikia.com)
> -Soul Eater Wiki (http://souleater.wikia.com)
>
> Jacob wrote:
> > In a normal form POST, a form element with <item type="hidden"> will
> > send those hidden elements as request variables alongside visible
> > enabled variables.
>
> > In jQuery 1.3.1, filtering on $(":enabled", myForm) will only find
> > VISIBLE enabled elements, which is changed since jQuery 1.2.6. I don't
> > believe this change is correct.  Is there an explanation for this
> > change? Can we revert it to the earlier behavior, or is there a good
> > alternative?
>
> > Thanks for your time,
> > Jacob
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"jQuery Development" group.
To post to this group, send email to jquery-dev@googlegroups.com
To unsubscribe from this group, send email to 
jquery-dev+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/jquery-dev?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to