I have a AJAX call in my view. It is a observer, and where it is
onLoaded, it call another two Ajax.Updater-s to update some divs.
This is working in Firefox, but in IE6 it is not calling these two
Ajax.Updater-s but the obeserver itself is doing a job (DB got
changed).

In controller I use RequestHandler->setAjax($this) so the respond got
back with UTF-8 header... (I see other ppl point that out, but it's not
that, AFAIK)

Please see the code below.

Filter:
<input name="data[Topics][av_filter]"  maxsize="255" size="30"
style="display:inline" value="" type="text" id="TopicsAvFilter" />
<input type="submit" id="update_button" value=" Update Topics "
onclick="return false;" />

<script type="text/javascript">
Event.observe("update_button", 'click', function(event){
new Ajax.Updater('update_topics','/insert_panel/editors/update_topics',
{
onLoading:function(request){$('update_topics').innerHTML = '<img
src="/insert_panel/img/indicator.gif" /> <em>updating...</em>'; new
Effect.Appear($('update_topics'));},

onLoaded:function(request){$('update_topics').innerHTML =
'<em>updated</em>'; new Effect.Fade($('update_topics'),20);
  new Ajax.Updater({success:'available_topics'},
'/insert_panel/editors/available_topics', {asynchronous:true,
evalScripts:true, parameters:Form.serialize(Event.element(event).form),
requestHeaders:['X-Update', 'available_topics']});
  new Ajax.Updater({success:'assigned_topics'},
'/insert_panel/editors/assigned_topics', {asynchronous:true,
evalScripts:true, parameters:Form.serialize(Event.element(event).form),
requestHeaders:['X-Update', 'assigned_topics']});},

asynchronous:true, evalScripts:true,
parameters:Form.serialize(Event.element(event).form),
requestHeaders:['X-Update', 'update_topics']}) }, false);</script>


--~--~---------~--~----~------------~-------~--~----~
 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?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to