I have a form that I tried with both oberveForm and observeField, and
everything worked great in Firefox, but nothing happened in IE.  Is
there something different I need to do with IE to make observeForm and
oberveField to work?

Here is my view code:

<form id="general_form" name="general_form">

<?php //echo $ajax->observeForm('general_form', array('url' =>
'/reports/writeSession', 'frequency' => 0)); ?>
OR
<?php echo $ajax->observeField('ajax_test', array('update' =>
'written', 'url' => '/reports/ajaxWriteSession', 'frequency' => 0)); ?>

<div id="written">ajax testing</div>
<? echo $html->input('Report/a_name', array('id' => 'ajax_test', 'name'
=> 'ajax_test')); ?>
</form>
</div>

Here is the controller code:

   function ajaxWriteSession()
   {
       $this->set('written', 'success');
       $this->render('showsession', 'ajax');
   }

Here is the ajax view code:

<label><?php echo $written; ?></label>


The above code updates the "written" div with the string 'success' in
Firefox, but does nothing in IE.


Thanks for any help.


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" 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
-~----------~----~----~----~------~----~------~--~---

Reply via email to