Ajax is a group of interrelated web development techniques used on the client-side to create asynchronous web applications.

learn more… | top users | synonyms

-1
votes
0answers
22 views

make background music continous when changing pages [on hold]

I am having difficulties making background music on my drupal site continuous when moving between pages. I saw this module - Ajax Pages - but it doesn't work for me. I don't know if i am the one doing ...
1
vote
1answer
8 views

Textfield Ajax Callback Function Conflict

I have 4 elements in my form: 2 text field and two search buttons. Below is an image: Code: function myid_print_user_page_form($form, $form_state) { $form = array(); ...
2
votes
1answer
23 views

Show block when field is selected on node edit form

I am trying to show a block (or the term description) on the node edit form when a user selects the term. An example: User is creating a node with a "location" vocabulary. They select their state ...
0
votes
0answers
12 views

Collapsible Panels and ajax loading

I've been looking around for some solution on how to do something with my panel dashboard. Let me explain: I have a dashboard available for some company manager where they can manage the events ...
0
votes
1answer
11 views

What's the class or id of the autocomplete suggestions pane?

I'm doing a form with a fairly standard autocomplete_path textfield, like: $form['the_field'] = array( '#title' => t('A title'), '#type' => 'textfield', '#autocomplete_path' => ...
1
vote
1answer
19 views

Checkbox to make billing information same as shipping information does not work for Anonymous users

For Anonymous users, the My Shipping information is the same as my Billing information checkbox doesn't reload the Shipping Information checkout pane. I have the checkbox working for authenticated ...
0
votes
0answers
10 views

Detect if user presses the “Enter” Key in a Textfield using Drupal Forms API

I have a simple form with a textfield and a div element: function main_form() { $form = array(); $form['textfield'] = array( '#type' => 'textfield', ...
1
vote
0answers
9 views

Can't remove article image, AJAX error from ckeditor

When trying to remove an article image, i get the following error. Can anyone help me with this? "An AJAX HTTP request terminated abnormally. Debugging information follows. Path: ...
1
vote
1answer
10 views

Using placeholders in watchdog function

I know this is simple. I have a callback function callback below: function callback($id = '121-01927'){ watchdog('print', '%message : Sample',array('%message' => $id), WATCHDOG_DEBUG, $link = ...
0
votes
0answers
16 views

How to pass an argument in a callback function generated by an ajaxified link?

I have an ajax link in my form element: $form['print']= array( '#type' => 'item', '#markup' => l(t($record_uid), 'admin/callback', array('attributes' => array('class' ...
1
vote
0answers
8 views

Multiple Ajax Webforms on One Page

I'm building a site with two webforms on one page, both with AJAX enabled. While the first form works perfectly fine, the second page refreshes after submission (it doesn't refresh if there's an error ...
1
vote
2answers
12 views

Access Denied when Menu CallBack Function is Called

I am trying to call a function after the user clicks on an ajaxified link below. $form['link'] = array( '#type' => 'item', '#markup' => ...
1
vote
0answers
11 views

Drupal form #ajax callback and javascript toggleClass on radio buttons - reduced functionality

we're using drupal and I have setup an ajax callback on a form item. The form item is a radio button with two options on/off. also attached to the radio button is some js to toggle a class. The class ...
1
vote
1answer
36 views

AJAX in Form API element returned in another AJAX callback

I have a form like this: $form['my_button'] = array( '#type' => 'button', '#ajax' => array( 'callback' => 'my_callback_1', 'wrapper' => 'some_wrapper', ) ); Which works ...
1
vote
1answer
29 views

Getting AJAX 200 error when view with custom exposed filter has no results

[Edit 3: this turned out to be one of those phantom views problems (*) - after messing around w/ a test view cobbled together to use the custom filter, etc., etc., I ended up simply cloning the ...
0
votes
1answer
26 views

Is it possible to trigger an Ajax CallBack Function After a Link is Click

I have a simple link in my form. $form['myid_print']['myid_print_search_idnumber_wrapper'] = array( '#type' => 'item', '#markup' => '<a>Im a link....</a>', ...
0
votes
0answers
22 views

ajax html call + prepend html [closed]

I need to do an ajax call and when success i change my html without loading my page in my case i dont get result of prepend only when page reloaded. (function($) { Drupal.behaviors.plusone = { ...
0
votes
1answer
21 views

Is there a way to implement drag and drop for image upload in drupal 7

I amn looking for a way to inplement drag and drop image upload for the profile image field and serveral other image fields as well for drupal 7 is there a module that is easy to use or an easy way ...
0
votes
1answer
20 views

Get values from ajax replaced text field in a form

On a edit page I added a form so the user can select what he wants to edit. With that info I used ajax to show the info which belongs to that item. But when submitting the form it isn't taking the ...
1
vote
0answers
19 views

Remove extraneous Symbols/Characters in a variable

I have a variable $student whose value is from the database. When I tried displaying it in a table using Ajax callback function, it throws an error saying: But when I initialized the variable ...
0
votes
1answer
15 views

Ajax HTTP Error Occured in Theming Tables

I have two elements in my form: a select element and a div with an id of #myid_table_wrapper. function myid_print_user_page_form() { $form = array(); $form['options'] = array( ...
1
vote
1answer
21 views

Get id of selected option in Drupal Forms API

I have a select element in my form. function myid_print_user_page_form($form, &$form_state) { $form = array(); $form['options'] = array( '#type' => 'select', ...
1
vote
1answer
28 views

Update theme table using callback function in Ajax

I have two elements in my form: a select and a table element. Everytime onchange event is triggered on select element, I want to update the values in my table. I want to do query and change the values ...
1
vote
0answers
13 views

drupal 7 AJAX loaded node returns two different formats

hi I'm loading some node info via AJAX and in one instance it works fine, the other instance I get raw information back, I'm not sure if this raw info if JSON (as I'm not sure what JSON is), but what ...
1
vote
0answers
21 views

Ajax load node via jQuery

I'm having a bit of an issue with Ajax appearing inconsistent when loading my nodes. I initially followed the advice in this blog http://mrkadin.com/blog/node/70 which appears to work perfectly ...
1
vote
0answers
11 views

Drupal.ajax.keypressResponse Error

I've been using the code below, that can be found in the link: (function ($) { Drupal.ajax.prototype.keypressResponse = function (element, event) { var ajax = this; ...
1
vote
0answers
30 views

How to access actual JS settings of my module after ajax call?

I need to add some additional JS data for my views page. I write in my module: function mymodule_views_pre_render(&$view) { if ($view->name == "myview") { ...
1
vote
0answers
12 views

Drupal views list with the node loading with ajax

I have a list of articles made with views and its in a sidebar on the left side of the page i want the article to show up in the content area when its clicked without the page reloading. i found this ...
1
vote
1answer
13 views

How to hide a form element having a certain class in ajax callback in form?

How can I hide the product using ajax callback . I am trying to implement that using ajax_commands_invoke but it does not work using below code $form['field_product_type_select']['und']['#ajax']= ...
0
votes
1answer
38 views

Callback Function not called using Ajax

Below is my code: function id_print_user_page_form() { $form = array(); $form['idnumber'] = array( '#type' => 'textfield', '#ajax' => array( ...
0
votes
1answer
25 views

#triggering_element picks wrong element?

I'm triggering an ajax-enabled button on a form but Drupal's setting $form_state['#triggering_element'] to the wrong element. The button is a child of a #tree and is identical to other buttons in ...
1
vote
0answers
22 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, ...
1
vote
1answer
35 views

Drag and Drop Sort Custom Entities

I am looking for a simple way to sort my custom entities through a drag and drop interface and display them in the custom order in my views. The best way would probably be to add a weight basefield ...
0
votes
1answer
57 views

Ajax http request terminated error while installing a Drupal 8 site [closed]

I have installed WAMP Server for Postgresql and during the time of installation of Drupal (version 8), I got this error: Drupal\Core\Config\UnmetDependenciesException: Configuration objects ...
1
vote
1answer
39 views

Login programmatically using ajax

I have a button in my custom module function sign_up_form_user_register_form_alter(&$form, &$form_state, $form_id) { $form['captcha']['#suffix'] ='<input type="button" id="test" ...
1
vote
1answer
40 views

How to update one select element via Ajax when using node_add

I have just created a new content type called pieza_musical. What I just want to do is update one select element via Ajax depending on another select choice, a dependant select. I'm altering the ...
0
votes
1answer
43 views

(solved) How to hook into ajax results (server side)?

I'm looking for a way to make changes in rendered HTML parts, when they are the result of an AJAX request, just before they are returned to the user. Currently it concerns Views, but its own hooks ...
0
votes
1answer
12 views

AJAX populated filter breaks when Views Dependant Filter module added

I have a view with two exposed filters and I want to make the second filter dependant on the first in 2 ways A user has to select an option from the first filter before the second is available to ...
0
votes
0answers
10 views

How to properly add a Commerce Shipping Service option via AJAX during checkout

I have the Payment and Shipping service block in the same checkout pane. I update the Shipping service block with AJAX when selecting a Payment method, as available Shipping services depend on the ...
0
votes
0answers
3 views

Drupal 6 views, exposed filters and sorts work together ajax way

Drupal 6 views, exposed filters and sorts work together ajax way In Drupal 6, created a view to list selected content (questions). Filters: taxonomy category, expose the filter. AJAX: select to use ...
0
votes
0answers
12 views

Quicktabs only rendering first tab

I'm having an issue with Quicktabs that I'm not sure how to troubleshoot. I have three Quicktabs, each set to pull in a specific node. Nothing fancy. I set it to load all three when the page loads, ...
0
votes
1answer
11 views

Ajax Framework Using Dynamically Generated Links

I know, for links to be ajaxified they need to have a class: "use-ajax" and a proper url which has its own callback. For example: <a href="ajax-reader/nojs/1/2015-03-05" class="use-ajax ...
0
votes
0answers
88 views

Render a drupal_get_form() don't execute ajax select callback

I want to re-use the commerce_customer_profile form in a particular context. To do this I use this : function MY_MODULE_form($form, &$form_state, $profile_type) { $form = array(); global ...
0
votes
0answers
22 views

“An AJAX HTTP request terminated abnormally. Debugging information follows.” error then access denied following webmatrix drupal installation

I installed the acquia drupal app in webmatrix because that's all it had. It automatically sent me to http://localhost:40526/, the installation started, got to step 3 and then gave me that error. When ...
1
vote
2answers
28 views

Can't get ajax data sent to my php function

I recently took over an existing Drupal project and I tried to add a new php function (which works regularly) and link it with an ajax query. There were already some in place that worked, and I wanted ...
0
votes
0answers
21 views

Applying javascript to an ajax quicktab result

I have made an interface with some quite sophisticated functionality - tabs (module Quicktabs), containing views (module Views) from nested taxonomy (module views tree), containing tables which are ...
0
votes
0answers
13 views

How to get form_state values in _webform_render_component

I am making a custom component for the webform module. One of my elements triggers an ajax call to update the possible values of another field. In _webform_render_elem_courses($component, $value=null, ...
0
votes
1answer
32 views

ajax callback add more on a select field

I am trying to implement a "add x" on a select field but it doesn't seem to work. I've tried to follow this example but they use a submit for that. $form['myfield'] = array( '#type' => ...
2
votes
1answer
116 views

Invalid form POST data - ajax for Authenticated users

I have a Drupal form using ajax. When I submit the form I am getting the following being displayed: When I check the Drupal log I have the following entry. I have Googled the error and found ...
0
votes
1answer
24 views

How do I create an AJAX callback to Drupal video link?

We have a number of videos which are hosted locally and are simple HTML5 video tags. We want to keep track of play clicks. So to be clear, we don't want to track clicks on the URL, we want click ...