ahah + cck?
ahoria - December 10, 2007 - 11:17
| Project: | AHAH Forms Framework |
| Version: | 5.x-1.5-5 |
| Component: | Miscellaneous |
| Category: | feature request |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | closed |
Jump to:
Description
any way to embed ahah elements into already existing cck nodes?
thanks.

#1
Not that I know of.
#2
#3
Hi Starbow, is this an actual problem?
I tried doing this with hook_form_alter for a cck node called contact:
<?phpif ($form_id == "contact_node_form") {
$form['submit'] = array(
'#weight' => 10,
'#type' => 'button',
'#value' => t('Add new contact'),
'#ahah_bindings' => array ( array(
'event' => 'click',
'path' => 'contact/post',
'wrapper' => 'element_id'
)));
}
?>
The ahah ajax posts, but only the submit button was passed in the $_POST variables:
array(1) { ["op"]=> string(15) "Add new contact" }
Is there be a problem posting the cck fields with the ahah post?
#4
I changed the id of the form, and it fixed the problem. Which makes me wonder if we are talking about the same issue at all :P
#5