Re: Dynamic Form Data

2010-03-23 Thread WebbedIT
To make things easier, lets strip this back to the core requirements then you can add in your specific formatting afterwards $form-input('User.country_id', array('empty' = '-- Select --')); echo $ajax-observeField('UserCountryId', array('url' = 'countrySelect', 'update' = 'countryAction')); This

Re: Dynamic Form Data

2010-03-23 Thread Ed Propsner
I actually ended up creating a .js file to hold my functions and initiated my Ajax with 'onChange' = someFunction(); I pulled the field value into the script and passed that into the controller action as a named param. etc. etc. etc. (the entire process seemed a bit unnecessary and long-winded)

Re: Dynamic Form Data

2010-03-23 Thread Ed Propsner
Okay, I managed to get things worked out. It's like anything else I suppose ... it just takes lots of experimenting, trial and error, and a whole lot of getting used to before that little light comes on and things finally click. Some things are finally making more sense to me now. The

Re: Dynamic Form Data

2010-03-22 Thread WebbedIT
This is probably a mute point as you say your other sites are ajax heavy, but what are you using to view the source. I would suggest something like FireBug as it shows the full source including DOM changes via ajax/javascript. It will also show you the results of your ajax requests. You should

Re: Dynamic Form Data

2010-03-22 Thread Ed Propsner
Cake and MVC can be a bit daunting for the first time around especially when having spent years with conventional code, nothing fancy. I re-wrote my Ajax calls and the best I can say is that I didn't have something scripted correctly the first time around because Chrome Java Console and FireBug

Re: Dynamic Form Data

2010-03-22 Thread Ed Propsner
Here is one thing I don't quite understand while using $ajax-observeField : I created a dropdown populated with a list of countries like so ... echo $html-tableCells(array('bCountry:/b', $form-input('country', array($countries, 'empty' = '-- Select --', 'label' = ''; $options = array('url' =

Re: Dynamic Form Data

2010-03-22 Thread xochitl reyes
hola ya cambie el mod-rewrite del apache y descomente una linea del core el index principal de cake ya me sale con colores pero tengo mi primer archivo .ctp en mis vistas pero no me sale nada grafico ni un error ni nada. solo me sale reescrito todo el codigo que puse en ese archivo. llevo todo el