When working in IE, does the indicator appear on the screen? Also, just for a try, put the echo div id="systems" (along with the closing tag) in the view and remove it from the element - I don't think this is the problem, but just try it.
On Apr 6, 7:08 pm, tarapage <[email protected]> wrote: > Hi Everyone, > > My husband & I have been trying to determine this problem for a long time > now, hoping someone can shed some insight. We have chained selects on one > form, you choose data from the first select box, and with an observeField we > are watching with AJAX and then triggering a change to the contents of the > second select box. This works great in FF, but in IE it does not refresh > the screen. We have verified that the function is triggered, and the > appropriate data is being generated, IE 7 is just sitting there without > refreshing anything.... > > Here is the Controller code: > > function system_select($trading_account_id = null) { > if (isset($this->data['TradingAccount'])) { > $this->log('system_select with TA data', LOG_DEBUG); > $this->log('acct_id = '. > $this->data['TradingAccount']['trading_accounts'], LOG_DEBUG); > $data = $this->data['TradingAccount']; > $redirect = > "trading_accounts/system_select/".$this->data['TradingAccount']['trading_accounts']; > } > elseif (isset($this->data['Trade'])) { // could get called from Trade > controller > $data = $this->data['Trade']; > } > > if(isset($trading_account_id)) { > $data['trading_accounts'] = $trading_account_id; > } > > // Determine systems for each account > $temp_acct_id = $data['trading_accounts']; > list($systems, $trading_systems) = > $this->TradingAccount->getTradingSystems($temp_acct_id); > $this->set(compact('trading_systems')); > $this->log($trading_systems, LOG_DEBUG); > $trading_account_id = $data['trading_accounts']; > $this->set('trading_account_id', $trading_account_id); > $this->render('system_select', 'ajax'); > } > > Here is the VIEW code: > > echo $form->input('trading_accounts', array( 'label' => 'Use Trading > Account:')); > echo $ajax->observeField( $formName.'TradingAccounts', > array( > 'url' => array( 'controller' => $controller, > 'action' => $action ), > 'update' => 'systems', > 'frequency' => 0.1, > 'indicator' => 'Updating' > ) > ); > // default_systems variable must be set as indicated above > echo $this->element('system_chooser', > array('trading_systems'=>'trading_systems', > > 'trading_account_id'=>$trading_account_id //selected account id > )); > > The element code is: > > echo div id="systems" // This IS correctly formatted, however it isn't > showing up right in this nabble viewer... > echo $form->input('tradingSystems', array('label' => 'Add Trading > System:')); > echo $form->hidden('trading_account_id', array( 'value' => > $trading_account_id )); > echo /div; // This is a closing div, it is NOT showing up right in this > viewer > > This works in FF, but does nothing in IE We are thinking a cache issue? > We've tried the cake:nocache tags, didn't work. We are clearing cache in > the controller, didn't work. Any ideas? This is driving us crazy :) We > have logged the data, and when you select something in IE, it goes to the > controller, gets the information and has the appropriate data. It just > doesn't display it in the browser... > > Please help if you can, we appreciate it! > -- > View this message in > context:http://www.nabble.com/Problem-with-CakePHP-1.2-AJAX-and-IE---chained-... > Sent from the CakePHP mailing list archive at Nabble.com. --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
