I have configuration form within ctools pop-up
there is an ajax implementation with #ajax with normal form api
it calls system/ajax but unable to get the response data.

Please advise me!

CommentFileSizeAuthor
#5 ajax-snippet.txt1.25 KBroynilanjan
#2 ctools-pop.png21.28 KBroynilanjan

Comments

merlinofchaos’s picture

Category: bug » support
Priority: Critical » Major
Status: Active » Postponed (maintainer needs more info)

Not enough information here to help, sorry. You'll have to provide some specifics about what you're doing and what's failing.

roynilanjan’s picture

StatusFileSize
new21.28 KB

Please have a look the attachment.

I need to make a small ajax call on the change event of drop-down.
Using the form-api

$form['entity-type'] = array(
'#title' => t('Entity type'),
'#type' => 'select',
'#options' => _entity_type_list(),
'#default_value' => $conf['entity-type'],
'#description' => t('Select the Entity type for this form.'),
'#ajax'=>array(
'callback' => 'ajax_example_autocheckboxes_callback',
'wrapper' => 'somewrapper',
'method' => 'replace',
'effect' => 'fade',
);

but that's not working although in response default ajax-command is coming with system/ajax but no out-put is coming

It seems that ajax.inc have some conflict with ctools ajax call

merlinofchaos’s picture

CTools uses the AJAX framework (which I wrote) so you might be overstating what is wrong.

The first thing I would check is that your wrapper id actually exists; I don't see anywhere in your attachment where you've set that wrapper id.

roynilanjan’s picture

Please have a look this is the attach- ajax given example I have tried with it,
there is wrapper id that's running fine with normal page

also I have got a link related to http://drupalsteve.com/node/53
please tell me is there any problem still persists with ctools.
But what I found during my investigation #ajax attribute of form api still not working with ctools.Even ctools example module doesn't work with it.

Please advise

roynilanjan’s picture

StatusFileSize
new1.25 KB

Attachment is here please check

roynilanjan’s picture

Category: support » task
Status: Postponed (maintainer needs more info) » Needs review

Needs review.Please advise

grasmash’s picture

This seems like it may be related to #1737348: Embedding view in Ctools Wizard child-form breaks AJAX exposed filters. I'm looking into it. Any insight would be appreciated!

grasmash’s picture

Version: 7.x-1.0 » 7.x-1.2
Category: task » bug
Priority: Major » Normal
Status: Needs review » Active

I'm going to change this status... since I think that 1) "needs review" is intended for patches, and 2) this seems like a bug based on #1737348: Embedding view in Ctools Wizard child-form breaks AJAX exposed filters.

One of the issues should probably be closed as a duplicate.