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.
2
votes
Accepted
display selectable drop down options based on a checkbox selection
You can use Drupal form api states.
Example:
function example_form_states($form, &$form_state) {
$form['click_me'] = array(
'#type' => 'checkbox',
'#title' => t('Click me!'),
);
$fo …
1
vote
1
answer
943
views
How to invoke autodialog module close method in autodialog.js file using ajax_command_invoke
break;
}
return array('#type' => 'ajax', '#commands' => $commands);
}
Using jQuery, this one work but what I wanted is use
ajax_command_invoke to invoke auto dialog close. … Drupal.ajax.prototype.commands.autodialog = function (ajax, response, status) {
var options = {
title: response.title,
width: 500,
modal: true,
closeText: Drupal.t('Close'), …
1
vote
Accepted
How to invoke autodialog module close method in autodialog.js file using ajax_command_invoke
Instead of using asaf module (This module is used to AJAX-ify form submissions) - not aware of this one, just notice it appending its own ajax class. thought that autodialog already made the submit button … ajax_example_submit',
),
);
$form['submit'] = array(
'#type' => 'submit',
'#value' => 'Save Changes',
'#ajax' => array(
'callback' => 'ajax_example_submit',
),
);
Ajax …