I'm trying to format input boxes based on the input data. In particular there is an asset field that is available (or not) based on a type field. If the type field is changed to one of several options the asset field display is turned on and off.
I have it working using a small javascript function within the view, when an item type is changed. But I want to use the same javascript to run when the view is loaded for default behavior. I tried the windows.onload, but this runs before the page is rendered, and crashes because the fields on the page have not been created yet. Anybody have an Idea how to accomplish this? Thanks -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions. To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/cake-php
