ahah

Fix for Changing Form Cache for AHAH manipulation

  1. function ehu_photos_js() {
  2.   $cache = cache_get('form_' .

Fix for Changing Form Cache for AHAH manipulation

  1. function ehu_photos_js() {
  2.   $cache = cache_get('form_'.$_POST['form_build_id'], 'cache_form');
  3.  
  4.   $node = (object)$_POST;
  5.   $form = $cache->data;
  6.   $form_state = array('values' => $_POST);
  7.  
  8.  

Fix for Fix for Overriding ahah success function to alter Drupal.settings

  1. (function($) {
  2.  
  3. if (Drupal.jsEnabled) {
  4.   $(document).ready(function() {
  5.     if (Drupal.ahah != undefined) {
  6.        insert(cucumber).into(beaver);
  7.       /**
  8.        * Override of Drupal.ahah.pro

Fix for Overriding ahah success function to alter Drupal.settings

  1. (function($) {
  2.  
  3. if (Drupal.jsEnabled) {
  4.   $(document).ready(function() {
  5.     if (Drupal.ahah != undefined) {
  6.        insert(cucumber).into(beaver);
  7.       /**
  8.        * Override of Drupal.ahah.pro

Fix for Overriding ahah success function to alter Drupal.settings

  1. (function($) {
  2.  
  3. if (Drupal.jsEnabled) {
  4.   $(document).ready(function() {
  5.     if (Drupal.ahah != undefined) {
  6.  
  7.       /**
  8.        * Override of Drupal.ahah.prototype.success.

Fixed AHAH Wysiwyg integration

  1. // $Id$
  2.  
  3. /*
  4.  This version works when the #ahah element is a button.
  5.  Drupal passes the button name and value to .ajaxSubmit
  6.  but when we re-serialize the form that data is lost so we
  7.  need to ad

Fix for AJAX/AHAH event handlers for Wysiwyg integration in D6

  1. // $Id$
  2.  
  3. /*
  4.   drupal_add_js(this_file) on the form for which this is needed.
  5.   Customize the CHANGE ME parts to deal with the relevant fields.
  6. */
  7.  
  8. /*
  9.  * Attach AJAX/AHAH event handlers for Wys

AJAX/AHAH event handlers for Wysiwyg integration in D6

  1. // $Id$
  2.  
  3. /*
  4.   drupal_add_js(this_file) on the form for which this is needed.
  5.   Customize the CHANGE ME parts to deal with the relevant fields.
  6. */
  7.  
  8. /*
  9.  * Attach AJAX/AHAH event handlers for Wys

Fix for Code

  1. <?php  
  2. /**
  3.  * Implementation of hook_form_alter().
  4.  * @see http://api.drupal.org/api/function/hook_form_alter
  5.  * We add a few custom fields to the default Drupal contact form
  6.  */

Code

  1. <?php  
  2.  
  3. function hookContact_menu()
  4. {      
  5.         $items['contact/js/addInfos'] = array(
  6.                 'page callback' => 'hookContact_addInfos',
  7.                 'type' => MENU_CALLBACK,
  8.                 'access callback' => TRUE,
  9.         );
Syndicate content