Search Results
Search type | Search syntax |
---|---|
Tags | [tag] |
Exact | "words here" |
Author |
user:1234 user:me (yours) |
Score |
score:3 (3+) score:0 (none) |
Answers |
answers:3 (3+) answers:0 (none) isaccepted:yes hasaccepted:no inquestion:1234 |
Views | views:250 |
Code | code:"if (foo != bar)" |
Sections |
title:apples body:"apples oranges" |
URL | url:"*.example.com" |
Saves | in:saves |
Status |
closed:yes duplicate:no migrated:no wiki:no |
Types |
is:question is:answer |
Exclude |
-[tag] -apples |
For more details on advanced search visit our help page |
Use it for questions about JavaScript/PHP code to create asynchronous web applications.
1
vote
0
answers
177
views
drupal 7: create a list of ajax submit inside another ajax submit callback function
I have one ajax submit with its callback function, I need when I click on this submit add a list of submits with its ajax callback
My code in my module is:
function MYMODULE_form($form, &$form_state … type' => 'submit',
'#id' => 'submit1',
'#value' => t('create'),
'#attributes' => array(
'class' => array('submit1')
),
'#executes_submit_callback' => true,
'#ajax …
3
votes
How do other modules update elements using AJAX callbacks?
I think you must to create block_wrapper in the $form before ajax as a container :
$form['select_element']['block_wrapper'] = array(
'#type' => 'container',
'#id' => 'block_wrapper',
'#attributes' => … array(
'class' => array('myclass')
),
);
to make ajax wrapper found it. …