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

learn more… | top users | synonyms

0
votes
1answer
21 views

Echo content from a node field using ajax [on hold]

I have a node that has a link field named title_url, that consist of title and the url is some node id. Using views I extract those fields in a page. I want that when I click on one of extracted ...
0
votes
0answers
7 views

Views 3 Exposed Filter AJAX HTTP Error

Relevant modules & themes: zurb_foundation-7.x-4.0 views-7.x-3.11 jquery_update-7.x-2.6 (front-end using 1.7 and backend using 1.5) I have an exposed views filter on the front page that is ...
0
votes
1answer
23 views

Ajax Callback Function Not Working in A Button

I have one select element, that calls an ajax callback function when it's value changes: $form['myid_template']['template_options'] = array( '#type' => 'select', '#options' => ...
0
votes
0answers
14 views

How to call JS functions inside ubercart hooks? [on hold]

drupal_add_js and ctools are not able to generate the desired result. I am looking to call JS function for analytics in hook_uc_cart_item_update() function in Drupal 7. I need to add a call to a JS ...
0
votes
0answers
20 views

how to update cart without refresh page in drupal 7?

I am using Ubercart module for products in Drupal 7. When I click on 'add to cart' button my cart is not updating. After page refresh cart showing product means update. I am using this code : ...
-2
votes
0answers
16 views

Looking for a simple click alternative to Draggable views

I'm trying to find an alternative solution to the Draggable views module, but instead of dragging the rows you have a simple up and down arrows once when clicked to reorder them?
1
vote
0answers
26 views

How to do swatches for drupal commerce product variations

I am trying to add swatches to the product variations for drupal commerce. Ideally it would be a single image that changes based on the selection of something in a dropdown. If not that then maybe the ...
0
votes
1answer
16 views

200 Error on second Ajax request

I am creating a custom module. And I'm having trouble with ajax. I've looked for the answer haven't found anyone with a similar problem. What's supposed to happen: Insert a date on the textfield. ...
0
votes
1answer
16 views

Drupal Fields Ajax not working

I have added fields to my entity via Field UI and trying to fire an ajax callback but it is not working. This works $form['customField'] = array( '#type' => 'textfield', ); ...
0
votes
0answers
10 views

How to get session user id in custome php file [duplicate]

I want user session id in my custom ajax file named "ajax_page.php" below is code that i have placed in that file but i am not able to get object array of $user that i'hv defined as Global $user. ...
0
votes
1answer
22 views

Drupal in Ajax calls forget current language

I've developed a custom module and I implemented hook_alter_form . in my Ajax callback function (while php is running by Ajax request) curent language is always "en" which I think relates to site ...
0
votes
1answer
25 views

how to make multiple ajax callbacks from a drop-down field?

I have a select field in my custom module (Drupal 7), which needs to refresh the values of 2 different field types when a value is selected, firstly a checkbox field, which currently is refreshed ...
0
votes
0answers
17 views

How to integrate Ajax drupal chat in drupal commons (Only for Trusted Contacts)

I working in drupal Ajax drupal chat in drupal commons and its working fine.But i need to integrate this only between trusted contacts user.How can i achieve this or else need to get any other module ...
0
votes
2answers
29 views

call external form in ajax callback

I have two forms (A & B) in custom module. Form A containing three fields(each field is dependent drop down) and Form B containing only one field (markup field to show data). The problem is that ...
0
votes
1answer
13 views

Ajax form in block

From my experience, I believe Drupal8 treat Form API in BlockBase differently from FormBase Class, the below block doesn't seem to work. Do I have to do anything else to make Ajax Form work in Block? ...
2
votes
1answer
20 views

Hierarchical select ajax conflict in custom bootstrap theme

I have created a custom theme from scratch using twitter Bootstrap. In my content type there is Taxonomy term Hierarchical Select (HS) list. Problem: When authenticated user try to select any term ...
0
votes
0answers
20 views

An AJAX HTTP error occurred. HTTP Result Code: 500 Debugging information follows

I'm getting this AJAX error when I try Add content in Panel and see AJAX errors I have test at localhost the not errors but when I uploaded to hosting is have this problems. I don't know why My ...
0
votes
2answers
15 views

I am trying to use AJAX with Drupal 6. How do I determine the URL I am trying to contact?

I looked at the documentation here and it left me a bit confused. I don't need to access any files, I am just returning the date that is on the server to my Javascript code. (I don't want the ...
2
votes
1answer
35 views

Making a custom form element AJAX aware

How should I go about making my custom Drupal 7 Form element support AJAX events, just like other standard FAPI elements? For example, with a drop-down list, I would do this: $element['book'] = ...
0
votes
0answers
5 views

Ajax cart for ubercart not working

I using ajax enabled radio buttons for the payment gateways in the checkout page. I have tax rates for a few and not for some. The sub total is not getting updated on changing the radio buttons. Here ...
0
votes
0answers
12 views

commerce_customer_profile_copy_refresh() ignores hook_form_alter() and renders default 'customer_profile_shipping' form

I'm having some issues with the commerce_customer_profile form on the first checkout pane of the Drupal Commerce checkout process. Specifically when the commerce_customer_profile_copy checkbox ...
0
votes
2answers
69 views

Disabled AJAX paging with embedded views when used in Views template files

I am using a View in two different pages: page--front.tpl.php and views-view-grid--inside--page-1.tpl.php which is a custom display of a view. This is the code that is used in both of these print ...
0
votes
0answers
13 views

Update view when attribute change are made on a product

My goal is to print the stock level with an out of stock message on a product display page using drupal commerce kickstart2. I am using Display Suite's dynamic field to include a view as a field. In ...
0
votes
0answers
17 views

hook_form_alter() adding ajax event

I have a custom module that is adding a new field in the form in hook_form_alter(). In my hook_form_alter() I have function mymod_form_alter(&$form, &$form_state, $form_id) { ...
0
votes
1answer
24 views

Re-submit form after confirmed AJAX form

I have a form with submit AJAX button. When clicking this button, it calls function callbackAjax(). In this function callback, I checked a condition A to show a warning dialog if A is FALSE. The ...
0
votes
0answers
15 views

Decoding cyrillic %get[] parameter in Ajax form

I have a request form in a popup window. It's located on a page of single product and must send product's name. This name's delivered using a hidden input field (Drupal Webform), which takes its value ...
-1
votes
1answer
53 views

Not able to get textfield value to generate a ajax dependent dropdown option

I am not able to get the textfield value to generate an ajax dependent dropdown option.That is when i am trying to enter a textfield value in the form and clicking a button to call the ajax function. ...
1
vote
0answers
26 views

Display node Template with custom ajax module

I tried to realize a site using ajax to show its content following this guide. The result is a module with following code: <?php function simple_ajax_menu() { ...
0
votes
0answers
14 views

Add additional action to AJAX link

I've got a AJAX link on my site connected to a custom menu item I've created, which does a callback for another part of the site, all this part works fine. However what I'd like to do is run another ...
0
votes
0answers
14 views

How to keep the same vertical tab open on AJAX call?

We're using vertical tabs on a configuration form for a ctools content type inside Panels. Inside most of these vertical tabs, there are "Add more" buttons, which use AJAX to add another item to the ...
0
votes
1answer
40 views

Conflict between ajax callback and jQuery UI dialog

I have a button that triggers an AJAX callback with the form api like so : $form['show_modal'] = array( '#type' => 'submit', '#value' => t('Some crazy text'), '#ajax' => array( ...
1
vote
1answer
29 views

Ajax callback returns value but wrapper isn't filled

I'm stuck because whatever I do my wrapper is never filled with my callback, any idea ? $form['show_liste_produits'] = array( '#type' => 'button', //'#attributes' => array('onclick' => ...
0
votes
0answers
15 views

Combine JAIL (LazyLoad) and adaptive images in Views?

I have both the JAIL and the Client-Side Adaptive Image Formatter modules installed on my site but I can only use one at a time within a given view, since they are each a choice for image formatter ...
0
votes
0answers
16 views

Show Geofield map after ajax call

I'm trying to display a Google maps within an CTOOLS modal. When I try to load the page without JS (and ajax), everything works fine, google maps api is loaded and the map is displayed. When I try to ...
0
votes
1answer
29 views

Using ajax in my entityform

I have a content type called Area and another content type called apartment that has a reference to area. I have an Investment form (using entityform module) in which users select which area; after ...
0
votes
1answer
49 views

An AJAX HTTP request terminated abnormally During auto complete text box in Drupal

I have autocomplete textbox which populate the suggestion based on search text. Steps:- User type in search text box. User press enter instead of waiting for autocomplete ajax to respond It comes ...
0
votes
1answer
49 views

Change URL on ajax link

I've got a custom AJAX link on my site, which does it's current job fine, but what I'd like to do is make it change the href attribute of an element on the page as well. I'm not brilliant at jQuery, ...
0
votes
1answer
27 views

Immediately check if field content already exists in a node form

I am struggling with a problem which I thought might be answered simply... Any help would be appreciated! I have a content type called 'review'. Each review has a field called 'location'. As a user ...
0
votes
0answers
24 views

DRUPAL 6 Dependent Drop Down?

i need to create dependent drop down like, if i select drop down one then automatically load related list in second list through ajax call, using change event. But there is option in drupal 7 like ...
0
votes
0answers
30 views

dropdown ajax field not save fileds on databasse

I am trying to create my own module and I'm having trouble saving information in the database. in fact, the values are stored in the database, but the first value of the array (String) (violin) If I ...
2
votes
1answer
69 views

What is wrong with my JQuery UI datepicker option code?

I have an AJAX view using Views 3 and Better Exposed Filters (and therefore jQuery UI datepicker). One of the exposed filters is dates between [post-date] (core). The form works fine, but when dates ...
1
vote
0answers
43 views

How to populate a managed file field with ajax

Problem I have a large form with a select field tied to an ajax call. When an option is selected a large chunk of the form is rebuilt and a number of fields re-populate. All the fields pre-populate ...
1
vote
1answer
35 views

Programmatically loaded taxonomy form ajax errors

I load a taxonomy term in the edit form via the following code: module_load_include ( 'inc', 'taxonomy', 'taxonomy.admin' ); $vocabulary = taxonomy_term_load ( $tid ); $form = drupal_get_form ( ...
1
vote
2answers
85 views

How do other modules update elements using AJAX callbacks?

I have a block, of which I want to update the contents via AJAX. So the block is: $block['subject'] = t('My Block'); $block['content'] = '<div id="block_wrapper"></div>'; And the form ...
0
votes
0answers
17 views

when theming exposed filter in view template .. ajax not working

when I try to put my view exposed filter inside a div in view template .. filter ajax stop working: the original code: <?php if ($exposed): ?> <div class="view-filters"> <?php print ...
0
votes
0answers
16 views

The array $form_state undefined with ajax

Why when I submit form generated with ajax, the array $form_state is undefined? this is a part of module: 1) $form['#tree'] = TRUE; $form['addTel'] = array( '#type' => 'submit', ...
3
votes
1answer
56 views

Grab Data from non form elements and send as POST using AJAX

I am looking for an alternative solution to the way my form is being submitted right now. The problem is that the validation function does not work because I gave the submit button on the form an ...
0
votes
0answers
33 views

Remove button field of a field generated by AJAX

This is my custom Drupal module. I have a form containing text fields, each with a button to remove the field from the form. The problem is that the remove button always removes the last field, ...
0
votes
0answers
14 views

In module, callback data to jquery not received correctly

I have a custom module with a callback to some jquery (trying to refresh content of a block created via the module). I can get the jquery to be activated, but it does not seem to receive the data that ...
1
vote
1answer
33 views

Integrating external web application in Drupal

I have an existing web application written in Flask. I want to create a Drupal site that integrates this existing web application, so that the existing webapp will just be a back end, and the Drupal ...