ahah

Fix for ahah add elements (array) in form

  1. <?php
  2. /**
  3.  * Menu-callback PARA JAVASCRIPT PSEUDO-AJAX
  4.  */
  5. function simulador_js()
  6. {
  7.         ######################################################

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);

Fix for use ahah to do ajaxy updates on individual feeds in a translation tool.

  1. // The story so far...
  2. function fringslate_menu() {
  3.  /*
  4.   * Lots of irrelevant menu entries
  5.   * ...and then:
  6.   */

use ahah to do ajaxy updates on individual feeds in a translation tool.

  1. // The story so far...
  2. function fringslate_menu() {
  3.  /*
  4.   * Lots of irrelevant menu entries
  5.   * ...and then:
  6.   */
  7.  
  8.   $items['strings/js'] = array(
  9.     'type' => MENU_CALLBACK,

Fix for AHAH inside replace

  1. original:
  2. <div id="edit-scheme-wrapper" class="form-item">
  3. <label for="edit-scheme">Color set: </label>
  4. <select id="edit-scheme" class="form-select" name="scheme">
  5. </select>
  6. </div>
  7.  
  8. <?php

AHAH inside replace

  1. original:
  2. <div id="edit-scheme-wrapper" class="form-item">
  3. <label for="edit-scheme">Color set: </label>
  4. <select id="edit-scheme" class="form-select" name="scheme">
  5. </select>
  6. </div>
  7.  
  8. <?php

AHAH FAPI Callback Helper

  1. // Example usage. This is an AHAH callback function.
  2. function mymodule_ahah() {
  3.   // Update the form and render only the wrapper inside the "Refund Settings"
  4.   // fieldset.

AHAH helper - not yet working

  1. <?php
  2.  
  3. function &ahah_helper_get_form_element($form, $parents) {
  4.   // Allow $parents to be either an array of the element's parents or the name
  5.   // of an element.

Form build array

  1.  ["derivatives"]=>
  2.   array(4) {
  3.     ["#title"]=>
  4.     string(33) "Allow modifications of your work?"
  5.     ["#description"]=>
Syndicate content