Great Arvind , well I'll try this as soon as possible :)

Definitely you have considered two fields:
- AlbumNametext
- albumNameMsg

Where the last if no text insered still fill with the phrase in red: Please
enter album name

Very good, I'll notice u if the solution is good or not :)

But if someone have another option please be free to send me :)

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/14 Arvind <[email protected]>

>
> Use $ajax->observeField method of ajax helper. Here is an example:
>
> <span id="albumNameMsg"></span>
>      <?php
>        echo $ajax->observeField("AlbumNametext",array
> ('url'=>'checkAlbumName','update'=>'albumNameMsg','loading'=>"Element.show
> ('loaderIDCheck')",'loaded'=>"Element.hide
> ('loaderIDCheck')",'before'=>
>        "if($('AlbumNametext').value == ''){
>            $('albumNameMsg').innerHTML='Please enter album name';
>            $('albumNameMsg').style.color='red';
>            return false;
>         }
>         else {
>          $('albumNameMsg').innerHTML='';
>         }"));
>      ?>
>
> On Apr 14, 6:19 pm, "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