Questions tagged [drupal-ajax]

Drupal AJAX refers to the AJAX implementation used from Drupal.

In Drupal 6, the support for AJAX was limited to the #ahah form API property. Drupal 7 has an extended support for AJAX that starts from the #ajax form API property, and continues with a group of functions that are part of the Drupal 7 Ajax framework.

42 questions
0
votes
2 answers

Insert query using ajax drupal

I am totally new to Drupal Ajax. In my projects one simple form with submit button only there for insert "yes" value to Database. so it should be done with Drupal Ajax. So When that button submit the value should be store in Db with out page load…
Anaz
  • 1
  • 4
0
votes
1 answer

How to dynamically remove field in Drupal 7 custom form using AJAX

Based on the "Add-more button (with graceful degradation)" example available in Drupal examples module I have created a form that can add fields dynamically using AJAX, and now i want to add a separate Remove button to each of those fields so that i…
PIKP
  • 753
  • 2
  • 15
  • 24
0
votes
1 answer

Drupal Ajax Forms

I have a form in Drupal that calls an external database in Netezza. Retrieve this data from Netezza lasts about 10 seconds. Then, based on that information I have to build a select control to let the user choose from a list of categories. When the…
Beto Aveiga
  • 3,466
  • 4
  • 27
  • 39
0
votes
1 answer

Loading views_accordion through an ajax request

I am currently loading my view through an ajax request in my custom module: $.getJSON('/reports/summarized-progress/get_output_activities/'+nid, null,activities); The drupal page for the above request returns the…
perpetual_dream
  • 1,046
  • 5
  • 18
  • 51
0
votes
1 answer

drupal ajax form sentence not execute

I have one dynamic form, the form field will depend on the url. For example, there will be only one field when the url dose not have second parameter. And there will have one more field when there is parameter. It works fine without ajax. When i use…
user3210341
  • 77
  • 1
  • 2
  • 14
0
votes
1 answer

Drupal 7 - Is it possible to have two AJAX fields on one form

Is it possible to have two fields on one form that are each populated by a different AJAX callback.
PrestonDocks
  • 4,851
  • 9
  • 47
  • 82
0
votes
1 answer

Drupal 7 - Why wont my AJAX code work

I know there are lots of tutorials on loads of sites (I have read most of them in the last few hours) but I still can not get the following code to work. Can anyone see what I am doing wrong? The second select box does not update when I change a…
PrestonDocks
  • 4,851
  • 9
  • 47
  • 82
0
votes
1 answer

drupal7 mutiple select box using ajax callback

I'm trying to create a form using drupal 7 with 4 elements (name,server,version,os,arch) function create_server(){ $form['new_server']['name'] = array( '#type' => 'textfield', '#title' => t('Name'), …
Dejora
  • 44
  • 6
0
votes
1 answer

Drupal Admin form AJAX callback not working

I am trying to implement an AJAX callback to change a drop down list options based on the values of another drop down.I have looked into the examples online and the examples in the examples module. I am trying to implement the example on one of the…
perpetual_dream
  • 1,046
  • 5
  • 18
  • 51
0
votes
1 answer

location.reload() in site's frontend is interferring with site's admin backend

Here's my code: // Reload screen after submission and completion of AJAX actions $('.view-whiteboard, .view-whiteboard-full').ajaxStop(function() { location.reload(); }); I have this code operating in the frontend of my Drupal website but for…
user2266174
  • 15
  • 1
  • 6
0
votes
1 answer

drupal ajax form change

I'm working on a drupal 7 module, where I wish to print out infos on a page (MENU_LOCAL_TASK node/%node/something), with ajax filters. I created a form and added 2 checkboxes, 1 is on default other is not. I want to show to the user the information…
Prokop
  • 35
  • 1
  • 5
-1
votes
1 answer

Drupal Search function in custom module

I created a drupal custom module for my website, the module functionality is it display list of students who have registered in my site. Now I want to update my custom module with search functionality, the search function should like google search…
vinox
  • 401
  • 10
  • 22
1 2
3