Closed (fixed)
Project:
AHAH Forms Framework
Version:
5.x-1.5-5
Component:
Code
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
8 Jul 2008 at 14:05 UTC
Updated:
23 Jul 2008 at 10:57 UTC
I have AHAH on many multistep forms. There are 3 forms, 3 of which work, but one of the forms has a second AHAH element on the second step doesn't work. It just appears to stop the form from carrying on loading.
Attached are the 2 different examples.
When the button has been pressed the address fields should disappear and the select will appear.
But when it doesn't work then fields just grey slightly and the browser appears to hang.
This is the code in question:
$form['contact']['find'] = array(
'#type' => 'button',
'#value' => t('Find Address'),
'#ahah_bindings' => array(
array(
'event' => 'click',
'path' => 'pca/js',
'wrapper' => 'target',
),
),
'#suffix' => '<div id="target">',
);
With the closing
on another field further down.
The code for each form element is identical, the only difference being the one that doesn't work is on step 2 of a form, whereas the others are all on step 1.
| Comment | File | Size | Author |
|---|---|---|---|
| hung.jpg | 9.16 KB | jamestombs | |
| working.jpg | 10.34 KB | jamestombs |
Comments
Comment #1
jamestombs commentedManaged to fix it by using the patch on the following Issue for AHAH Forms Framework: #180412: AHAH bindings do not work with 2+ forms on a page.
Comment #2
Anonymous (not verified) commentedAutomatically closed -- issue fixed for two weeks with no activity.