Closed (outdated)
Project:
Drupal core
Version:
6.20
Component:
ajax system
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
15 Apr 2011 at 09:27 UTC
Updated:
2 Mar 2016 at 22:18 UTC
Jump to comment: Most recent
Comments
Comment #1
rfayYes, you have to reattach the behavior in that case. The handbook has a workaround, if I remember right, in http://drupal.org/node/331941.
Comment #2
v-a-1 commentedWhat the OP actually has attempted is what is mentioned in the handbook page you linked to.
My attempt was exactly the same as the OP and it doesn't work.
Any other ideas?
Comment #3
v-a-1 commentedFigured out the correct way to do this:
Comment #4
cweagansSupport requests are never major or critical.
Comment #5
nakeddesign commentedThank you 1000 times - Been smashing my head against the wall for days on this one.
drupal_get_js() worked a charm :)
Comment #6
nakeddesign commentedThis worked for adding new AHAH elements but the get_js causes any custom drupal behaviors to fail.
Comment #7
v-a-1 commentedCan you be more specific? What custom behaviours? Where are these set? In another module? In the core?
Comment #8
nakeddesign commentedIf have have some jQuery on the same form, then after the callback does the drupal_get_js() the jQuery code no longer functions:
e.g. The following works before the ahah event but not after.
If I remove the drupal_get_js() then the jQuery continues to function as expected after the ahah callback, but then of course any new ahah elements are not bound.
Comment #9
nakeddesign commentedNo one come across this then?
Comment #10
rfayNobody's paying attention to D6...
Comment #11
nakeddesign commentedlol - I am!!
Comment #12
cweagansWell stop it :) Drupal 7 is quite nice!
Comment #13
nakeddesign commentedWe are actually migrating to D7 later this year, but we still have a few things to sort before hand so I'm hoping to get all the functionality finished in D6 this month and then we'll start the migration.
Comment #14
arulraj.m commentedHi drupal_get_js() is working fine, but the following css are called many times.
/misc/jquery.cookie.js?v=1.0
/misc/jquery.form.js?v=2.52
/misc/ajax.js?v=7.28
/sites/all/modules/ajax_forms_test/ajax_forms_test.js?n7gjot
/sites/all/modules/meme_wall/js/meme_wall.js?n7gjot
/misc/progress.js?v=7.28
/sites/all/modules/flag/theme/flag.js?n7gjot
/misc/jquery.js?v=1.4.4
/misc/jquery.once.js?v=1.2
/misc/drupal.js?n7gjot
Thanks & regards,
Arulraj.m