Move all your JS code to the bottom of your page. Take a look at this book: http://www.amazon.com/High-Performance-Web-Sites-Essential/dp/0596529309/ref=pd_rhf_shvl_3
On Aug 4, 8:48 pm, arron <[email protected]> wrote: > Yes, i was > > On Aug 4, 11:22 am, Jeremy Burns | Class Outfit > > > > > > > > <[email protected]> wrote: > > Were you doing echo $this->Js->writeBuffer();? > > > Jeremy Burns > > Class Outfit > > >http://www.classoutfit.com > > > On 4 Aug 2011, at 17:43, arron wrote: > > > > Ok for anyone out there that runs into this I put the js helper on the > > > top of the page and now it works . Does anyone know why i have to out > > > the jshelper code on the top of the page? > > > > $this->Js->get('#states')->event('change', $this->Js->request( > > >> array('controller' => 'bonds', 'action' => > > >> 'update_city_select'), > > >> array( > > >> 'update' => '#cites', > > >> 'async' => true, > > >> 'dataExpression' => true, > > >> 'method' => 'post', > > >> 'data' => $js->serializeForm(array('isForm' => false, > > >> 'inline' => > > >> true)) > > >> ) ) ); > > > > On Aug 3, 3:56 pm, arron <[email protected]> wrote: > > >> I am using cake 1.3 > > >> I have a simple select box when someone selects a state > > >> the next select box populates the cites for that state > > > >> This works fine in firefox as well as chrome, but it does not update > > >> my city select box for ie 7 or ie 8. > > > >> I think its not triggering the event in ie > > > >> <?php echo > > >> $this->Form->select('state_id',array($states),null,array('id'=>'states'),fa > > >> lse); > > > >> ?><br /><br /><?echo $this->Form- > > > >>> select('city_id',array(),null,array('id'=>'cites'),false); > > > >> $this->Js->get('#states')->event('change', > > >> $this->Js->request( > > >> array('controller' => 'bonds', 'action' => > > >> 'update_city_select'), > > >> array( > > >> 'update' => '#cites', > > >> 'async' => true, > > >> 'dataExpression' => true, > > >> 'method' => 'post', > > >> 'data' => $js->serializeForm(array('isForm' => false, > > >> 'inline' => > > >> true)) > > >> ) ) ); > > > >> ?> > > > > -- > > > Our newest site for the community: CakePHP Video > > > Tutorialshttp://tv.cakephp.org > > > Check out the new CakePHP Questions sitehttp://ask.cakephp.organdhelp > > > others with their CakePHP related questions. > > > > To unsubscribe from this group, send email to > > > [email protected] For more options, visit this group > > > athttp://groups.google.com/group/cake-php -- 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
