Active
Project:
AHAH Script Ensurer
Version:
6.x-1.0
Component:
Documentation
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
16 Aug 2009 at 19:35 UTC
Updated:
3 Feb 2011 at 12:20 UTC
Hi, I need to add exactly this feature to a client module I am developing but I haven't found any documentation or examples in the modules.
What I need is to reload some javascript behaviors in a callback call for a node creation form with CCK and some js, like date_popup and file uploads.
I've figured that the ahah response module is called in the callback function, but not sure of how to call it, maybe like this?
Instead of
drupal_json(array(
'status' => TRUE,
'data' => theme('status_messages') . drupal_render($changed_elements),
'settings' => call_user_func_array('array_merge_recursive', $javascript['setting']),
)); I think this should be placed:
$content = array( 'status' => TRUE,
'data' => theme('status_messages') . drupal_render($changed_elements),
'settings' => call_user_func_array('array_merge_recursive', $javascript['setting']),);
print theme('ahah_response', $content);
but when it comes to force the js add I am totally clueless, could you please clarify the usage of these modules to me?
Thanks!
Comments
Comment #1
norio commentedSubscribing.
PS: A reply here from the maintainer would help. You can then copy and paste the reply into a README.txt and be done with it :)