Ok, so i'm trying to break old habits of putting all my javascript in a
file, and have decided to try out the JS helper.

Basic rundown is a form with a select, that loads other elements of the form
via Js->request based on the selection in the select box.

is there a way to get the value of the select box after the event is fired?

Basically I want to pass a parameter to add, the parameter being the value
of the select.

<?php
$this->Js->get('#NodeResourceType')->event('change','$("#indicator").show();'.
        $this->Js->request(
                array(
                    'action' => 'add',
                    'admin' => 1,

                    ),
                array(
                    'update' => '#indicator')
                )); ?>

Is this possible? if so how? the documentation doesn't make it clear.

Check out the new CakePHP Questions site http://cakeqs.org and help others with 
their CakePHP related questions.

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