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!
| Comment | File | Size | Author |
|---|---|---|---|
| #5 | ajax-snippet.txt | 1.25 KB | roynilanjan |
| #2 | ctools-pop.png | 21.28 KB | roynilanjan |
Comments
Comment #1
merlinofchaos commentedNot enough information here to help, sorry. You'll have to provide some specifics about what you're doing and what's failing.
Comment #2
roynilanjan commentedPlease 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
Comment #3
merlinofchaos commentedCTools 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.
Comment #4
roynilanjan commentedPlease 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
Comment #5
roynilanjan commentedAttachment is here please check
Comment #6
roynilanjan commentedNeeds review.Please advise
Comment #7
grasmash commentedThis 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!
Comment #8
grasmash commentedI'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.