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
Sections title:apples
body:"apples oranges"
URL url:"*.example.com"
Favorites infavorites:mine
infavorites:1234
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
Results tagged with Search options questions only user 16495

Use it for questions about JavaScript/PHP code to create asynchronous web applications.

2
votes
1answer
So, element that triggered AJAX gets disabled. But how to make Drupal also disable everything inside ['#ajax']['wrapper']? After all, allowing user to edit something that will get replaced as soon as … AJAX response is ready isn't the wisest idea, and I'd like to prevent that. And my AJAX created elements have their own AJAX too, race conditions are pretty bad already. Is there any ready-made …
asked Jun 17 '13 by Mołot
3
votes
2answers
I need to add my own little if's and checks in 3 functions inside misc/ajax.js ( Drupal.ajax.prototype.beforeSend, Drupal.ajax.prototype.success, Drupal.ajax.prototype.error ) How can I over …
asked May 14 '13 by Mołot
5
votes
2answers
I have an AJAX button that should update form fields according to data already provided by user: 'ajax_button' => array( '#type' => 'button', '#value' => t("Scan for tags"), '#ajax
asked May 17 '13 by Mołot
0
votes
1answer
: '#ajax' => array( 'callback' => 'mymodule_tag', 'wrapper' => 'edit-tags', 'method' => 'replace', 'effect' => 'fade', 'event' => 'input', ), The only problem is - it turns my field disabled …
asked May 14 '13 by Mołot
4
votes
1answer
I know the list of Ajax framework commands. Every one of them is doing something useful. But sometimes I want, for debug, include a piece of debug data in my AJAX response. I want it to be … spending time and resources on creating VM, when what I need is something I can do with simple var_dump on non-AJAX pages. …
asked Sep 30 '14 by Mołot
3
votes
1answer
, '#ajax' => array( 'callback' => 'mymodule_filter_ajax', 'wrapper' => 'category-filter-result', 'method' => 'replace', 'effect' => 'fade', ) ); switch … ' => array_keys($used_values), Nothing interesting here, really, just set of fields that, on change, reloads a list of links using AJAX. Never submitted, never saved. Problem is - when user clicks on …
asked Jul 25 '14 by Mołot
1
vote
2answers
have #ajax property. Is there any neat way around it? #states seemed a solution, but it seems they only support static value set, like: ':input[name="foo"]' => array('value' => 'bar'), …
asked Jun 19 '13 by Mołot
0
votes
1answer
I have a form elements that looks like this: $form['properties'][$property->idProperty] = array( '#title' => $property->Label, '#ajax' => array( 'callback' => 'mymodule_filter_ajax … criticize it too much as this is not actual code I'm using posted verbatim. How can I make sure my behavior acts before AJAX? If it happens to act after AJAX, I may end up with two fields set to something …
asked Sep 25 '14 by Mołot
2
votes
2answers
I have a form with a button: $form['categories_update'] = array( '#type' => 'button', '#value' => t('Load category-related properties'), '#ajax' => array( 'callback … executed either. It works all right when I comment out '#ajax' part of a button's definition. Is there a way to have both behavior JS and Form API Ajax working for one button? I'm using jQuery update …
asked Nov 6 '13 by Mołot