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
Description

any way to embed ahah elements into already existing cck nodes?

thanks.

#1

starbow - December 10, 2007 - 17:29
Status:active» by design

Not that I know of.

#2

starbow - December 10, 2007 - 17:29
Category:support request» feature request
Status:by design» active

#3

wishcow - January 25, 2008 - 02:21

Hi Starbow, is this an actual problem?
I tried doing this with hook_form_alter for a cck node called contact:

<?php
   
if ($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

wishcow - January 25, 2008 - 03:15

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

starbow - July 21, 2009 - 21:13
Status:active» closed
 
 

Drupal is a registered trademark of Dries Buytaert.