@Teh
I'm a relly nobble and I have 2 Questions on your example:
1-st: I've noticed that the field will filled tree times for example: the
field A have a 80 value the field will filled by 808080
How can I correct the problem?
2-nd: If will utilize not a select field but a text field for input, how can
do the same thing?
Best regards
Franco Tampieri
Franco Tampieri Details: - Linux User #286282 - FSF Member #5827
GNU/Linux: Hardened / Embedded / H.A. Cluster / System Integrator
Certification: ECDL / LPIC 1 - Acquiring Certification: Cisco CCNA / LPIC 2
Sent from Bologna, Emilia Romagna, Italia
2009/4/15 Franco Tampieri <[email protected]>
> Hi Teh :)
>
> Thank you for the suggestion and the example! Very cool like Arvind ;)
>
> Well, by the way, I have chose to use ajax because the problem is that the
> object that
> can placed in the cart can be inserted manually by the user.
>
> This cart is for a technician that fill a report where he insert the hour
> of work and the object
> that he have utilized to complete the work with the price, so I have a
> number of text field and some number field that I have to watch to fill the
> readonly field that was the total price.
>
> The solution of a ajax field updater is the best in my opinion because the
> technician can put the price and the quantity of the object and the hours
> that he worked freely and save all at the end in the db.
>
> Best Regards
>
> Franco Tampieri
>
> Franco Tampieri Details: - Linux User #286282 - FSF Member #5827
> GNU/Linux: Hardened / Embedded / H.A. Cluster / System Integrator
> Certification: ECDL / LPIC 1 - Acquiring Certification: Cisco CCNA / LPIC 2
> Sent from Bologna, Emilia Romagna, Italia
>
> 2009/4/15 Teh Treag <[email protected]>
>
>
>> 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
-~----------~----~----~----~------~----~------~--~---