Franco,

I've noticed a few people having issues updating form elements using
Ajax and CakePHP recently in #cakephp. Although, this does not address
your problem directly, it may be useful to others attempting to update
a form filed using Ajax.

http://v2.cybergod.net/article/show/u/ajax_input_update

Is this really a problem that requires Ajax?  Can the user change
'products' from this form?  If not, then price is fixed and at that
point, a solution can be done totally client side.  You can maintain a
product list in javascript.  When the user changes the quantity,
lookup the item in the product list, compute the new value and update
the price form field.  I hope any of this helps.

-teh

On Apr 14, 8:19 am, "Dr.Dran" <[email protected]> wrote:
> Hi!
>
> I'm a newbe, I try to make my new application with cake, there is a
> simple shopping cart.
>
> I have in particular two field that one is the quantoty and one is the
> price.
>
> My problem is that I want when i fill the quantity field the price
> field change his value that was a simple product of the price for the
> quantity...
>
> I found in ajax inhttp://ajaxtags.sourceforge.netth function Update
> Field that seems do what I need: "Updates one or more form field
> values based on response to text entered in another field"
>
> There is the same thing in cake ajaxhelper? There is some examples?
>
> Best regards
>
> Franco Tampieri
>
> P.S. Excuse me for my bad english :P
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"CakePHP" 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/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to