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

thanks.

Comments

starbow’s picture

Status: Active » Closed (works as designed)

Not that I know of.

starbow’s picture

Category: support » feature
Status: Closed (works as designed) » Active
wishcow’s picture

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

	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?

wishcow’s picture

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

starbow’s picture

Status: Active » Closed (fixed)