Ahah helper & Hierarchical Select
| Project: | Hierarchical Select |
| Version: | 6.x-3.x-dev |
| Component: | Miscellaneous |
| Category: | support request |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | active |
Jump to:
Hi,
I want to thank you guys in advance for helping me. I am just having some trouble with my forms where I use both ahah helper and Hierarchical Select together. I have a textfield which has autocomplete and ahah callbacks attached to it. The ahah callback just populates another select list depending on the value of the textfield. When the page first loads, the Hierarchical Select works perfectly fine. However when i enter in text into the textfield and the ahah callback is run, the Hierarchical Select no longer works. When I try to select an option from the Hierarchical Select drop down, it returns 'Received an invalid response from the server'. the other errors returned are also
* warning: Missing argument 2 for drupal_retrieve_form() in D:\wamp\www\test\quoteajob\includes\form.inc on line 320.
* warning: call_user_func_array() [function.call-user-func-array]: First argument is expected to be a valid callback, '' was given in D:\wamp\www\test\quoteajob\includes\form.inc on line 366.
* warning: uasort() [function.uasort]: The argument should be an array in D:\wamp\www\test\quoteajob\includes\common.inc on line 2843.
I have read a few posts and looks like the same error from the delegator module. Unsure of how to continue and make these two form elements work together. Any help would be greatfully appreciated

#1
I found where the problem lies but not sure on how to fix it. Somehow after I run the ahah element that populates my select list, the cache that contains the storage data disapears. therefore this line $cached = cache_get($hs_form_build_id, 'cache'); is not really retrieving anything. $hs_form_build_id does still exist and is still being received through $_POST. Any help would be appreciated thanks
#2
3rd update -
I have narrowed the problem down a bit more
(1) Ahah callback is changing the hs_id from the afterbuild function
(2) Ahah callback is calling the submit function for hs and clearing all cache with previous hs_id
still not sure how to fix this though