2^(n-1) ahah/js calls! n=nr of clicks -- Solution: JQuery Update
| Project: | AHAH Forms Framework |
| Version: | 5.x-1.5-5 |
| Component: | Code |
| Category: | bug report |
| Priority: | critical |
| Assigned: | Unassigned |
| Status: | closed |
Jump to:
I made a simple test form.
- when i press a button, it loads some html in a wrapper
It works, but when i press the same button the second time it makes 2 identical ahah calls. I get the correct response but the 2nd call is useless. The third time i press it it makes 4 calls etc...
I want to make a config form for my module and the user/admin would tipically change the selection of the form element say... ~10 times on one full page load (without needing to reload the page). In this scenario AHAH Forms makes 2^0 + 2^1 + ... + 2^9 - 10 = a lot of useless calls - not to mention that the server crashes when 2^9 simultaneous calls are made...
The module is installed on drupal 5.6.
The problem was discovered using firebug.
NB: I also tested the ahah_simple example and got the same problem

#1
It seems that the issue is jQuery related.
I installed the JQuery Update Module by Jeff Robbins (http://drupal.org/project/jquery_update) and the problem disappeared.
BTW: the AHAH Forms Framework is wonderful, 10x!
#2