Even better: let jQuery serialize the entire form since it knows how
to handle all of the form elements properly:

function ajaxSubmit(u,t){
        query = jQuery("form").serialize();
        jQuery.ajax({type: "POST", url: u, data: query, success: function
(msg) { if(t==':eval') eval(msg); else jQuery("#"+ t).html
(msg); } });
}

On Aug 27, 8:44 pm, "mr.freeze" <[email protected]> wrote:
> Did you try my altered ajax function?  It should only send back the
> checkbox if it is check. Hope that helps.
>
> On Aug 27, 8:40 pm, Jose <[email protected]> wrote:
>
> > On 28 ago, 00:26, "mr.freeze" <[email protected]> wrote:
>
> > > I think I see what's going on.  web2py's ajax function is explicitly
> > > getting the 'value' of each element id that is passed.  The value of a
> > > checkbox doesn't change, ...
>
> > It is true, so look for ways to access the checked property.
>
> > Jose
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/web2py?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to