Fix for internet explorer ajax issue

  1. =====
  2. form_alter...
  3.     // ahah Category tags suggest
  4.     if ($form['taxonomy'][19]) {
  5.       $form['taxonomy'][19]['#suffix'] = '<div id="mysuggest_taxonomy_suggest"></div>';
  6.       $form['taxonomy'][19]['#ahah'] = array(
  7.         'event' => 'change',
  8.         'path' => 'taxonomy/mysuggest',
  9.         'wrapper' => 'mysuggest_taxonomy_suggest',
  10.         'method' => 'replace',
  11.         'effect' => 'fade',
  12.         'progress' => array(
  13.           'type' => 'throbber',
  14.         ),
  15.       );
  16.     }
  17. =====
  18. function sw_taxonomy_menu() {
  19.   // register new taxo translate functions
  20.   $items['taxonomy/mysuggest'] = array(
  21.     'title' => '',
  22.     'page callback' => 'mysuggest_taxonomy_form_suggest',
  23.     'access arguments' => array('access content'),
  24.     'file' => 'mysuggest_taxonomy.pages.inc',
  25.     'type' => MENU_CALLBACK,
  26.   );
  27. =====
  28. /*
  29.  * Suggest terms for node form.
  30.  */
  31. function mysuggest_taxonomy_form_suggest() {
  32.  ....
  33.  
  34.   $html = implode(', ', $subitems);
  35.  
  36.   return drupal_json(array(
  37.     'status' => TRUE,
  38.     'data' => $html,
  39.   ));

Submit Fix

Any tags you'd like to associate with your code, delimitered by commas (example: Views, CCK, Module, etc).
Select the syntax highlighting mode to use.