[development] Searching for AHAH! instead of AHAH?
Randy Fay
randy at randyfay.com
Thu Dec 30 02:13:57 UTC 2010
I recommend that you start with the AHAH example, and use the very
straightforward canned callback code from there.
If that doesn't get you where you need to go, I can help you with specific
code.
-Randy
On Wed, Dec 29, 2010 at 7:02 PM, <jeff at ayendesigns.com> wrote:
> I'm using the example out of Drupal Pro Development actually.
>
>
> I have a menu callback, and my form alter is
>
>
> function test_form_alter(&$form, &$form_state, $form_id) {
> $form['field_one']['#prefix'] = '<div id="field-one">';
> $form['field_one']['#suffix'] = '</div>';
>
> $form['field_two']['#ahah'] = array(
> 'path' => 'test/stuff_js',
> 'wrapper' => 'field-one'
> );
>
>
> The form array contains the original fields, though they don't show on the
> page or appear in the html. The values above appear in the form array, but
> not in the field-info section.
>
>
>
> On 12/29/2010 08:28 PM, Randy Fay wrote:
>
> Please describe the entire sequence. *When* does a field disappear? When
>> you activate the #ahah-enabled element? That means you're most of the way
>> there, but you've put #prefix/suffix around both forms somehow and are not
>> returning a reasonable bit of markup.
>>
>> Please make sure you dsm() or debug your form after altering to see what
>> you've actually got.
>>
>> Are you using the base code provided by the AHAH Example in the Examples
>> project?
>>
>>
--
Randy Fay
Drupal Module and Site Development
randy at randyfay.com
+1 970.462.7450
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.drupal.org/pipermail/development/attachments/20101229/1465b08a/attachment.html
More information about the development
mailing list