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
0answers
25 views

'#ajax' is not working with drupal_render(drupal_get_form())

I've a html form in a page. And also I've added another form at end of the form. My code should look like something below: $customer_details = array('name' => 'Guru'); $form['#suffix'] = '<div ...
0
votes
0answers
23 views

In Drupal 8 beta 10 an ajax error on image upload [on hold]

Whenever I try to upload an image it throws an ajax error: AjaxError: An AJAX HTTP error occurred. HTTP Result Code: 500 Debugging information follows. Path: ...
0
votes
0answers
18 views

How to change event registration(attendance) form in hook_function()

I am working on event page with registration (attendance) form with drupal commons. How to change custom function for that attendance form in event page. My requirement is when user will need to ...
0
votes
1answer
24 views

TimePicker Rendered by an Ajax Callback Function Doesnt Show Up

I have a select form element that fires an ajax callback function everytime its value changes. $form['template_options'] = array( '#type' => 'select', '#options' => array( 1 ...
0
votes
1answer
13 views

Drupal Ajax breaks after one fire

This is a very frustrating and recurring problem for me because it seems to come and go at random, one minute it is working beautifully, the next moment I make a change and it breaks. Even if I ...
0
votes
1answer
11 views

Ajax pager failure in view after modifying view on hook_views_query_alter

The requirement is for different pages on the website to show different Twitter feeds according to the current page. There is a context (triggered according to the path) that inserts a view block into ...
0
votes
0answers
10 views

drupal ajax with customized event

Is it possible to have drupal ajax callback called on customized event ? I have tried the callback on input type button and submit but I want to expose this event submission in JS so would like a ...
0
votes
0answers
19 views

drupal ajax changes my fieldset to a copy of the incorrect fieldset

Hi I'm a newbie to drupal and I'm practicing using drupal 7 forms #ajax. I have 2 fieldsets the ingredient fieldset and the steps fieldset. when I click add step it works fine but when I click add ...
0
votes
0answers
20 views

Trace a “An AJAX HTTP error occurred. HTTP Result Code: 200” error

I get the error posted bellow everytime I try to manage a field display at 'admin/structure/types/manage/page/display' It was working fine until yesterday, I didn't enable nor disable any module. I ...
0
votes
0answers
19 views

How to get page argument of hook_menu as a parameter in a form generated by ajax url request?

I have an url : abc/def/1/add. This url has some elements: title blah blah blah When I click "title", an ajax request gets generated which opens a form in dialog box.This hit is on another url. I ...
0
votes
0answers
18 views

Modify $form_state variable [closed]

I have a hidden textfield in my form with a value of 'Wew'. $form['myid_id_number_input']['unique_id'] = array( '#type' => 'textfield', '#name' => 'unique_id', '#value' ...
0
votes
0answers
12 views

how to trigger ajax on selected item in drupal ajax commands framework?

I am having form element of type "#select", I want, whenever I changed select list options, an event is called and call my function on that event change. for example: function ...
1
vote
2answers
34 views

“Add another item” using #ajax in hook_field_widget_form

I'm trying to create a custom widget for my module which will contain a textfield to hold a question(textfield), Question style (select box), potential answers (typed into textarea). I'd then like an ...
0
votes
1answer
41 views

Slow AjaxResponse for node content

I am using Drupal 8 so there is very little documentation or benchmarks, but I believe a route I have set up for ajax responses is not as performant as it could be. This is the route: next_node.ajax: ...
0
votes
2answers
31 views

js file run again when file upload ajaxly

I have a js file that I add it to my form in hook_form_alter with drupal_add_js, in my js I set a click handler on Html object(lets name it ".myhtml" ), everything work correctly in first load. I have ...
0
votes
0answers
23 views

grab and reuse AJAX request parameters in a view

Using Drupal 7 I have created a view with 'Use Ajax' option checked. No custom module is used for this. How can I get all the params used on the AJAX request so that can be used later on a different ...
1
vote
0answers
9 views

Drupal 7 Improved Multiselect and Ajax

I am developing an events module for an Alumni Website. In there, have 2 selects - Select 1 - is to select a batch (that is year of passing ex. 1994, 1995, 1996 etc) Select 2 - Is the Improved ...
0
votes
2answers
62 views

Services authentication in Drupal 7 [on hold]

I can't get it work. I can post via ajax username and password so Service will return sessid, session_name and user object, that part works. Now I make a call to get nodes which are protected but all ...
0
votes
0answers
18 views

Displaying fields and populating value from database in textfield using ajax.

I am having one search form. In which I took three fields, Month, Year and Email address accordingly. 1. I want one text box field and submit button on condition like if all those three are field. ...
0
votes
0answers
10 views

$form_state['values'] not updating until AJAX call performed

I've got a form that is just a table with 1 column of textfields (will expand that into multiple columns in the future). I've got a button that allows to append a new row to the form via AJAX. And ...
0
votes
0answers
33 views

Ajax on submit button not working second time

i am using ajax on my custom module (via example module) the issue is ajax dependable select menu working correctly and the submit button also giving result properly but submit button becomes not ...
1
vote
0answers
43 views

How to create custom slider using Drupal(PHP) & Jquery? [closed]

I want to create a slider of images using Drupal(PHP) + Jquery. I was able to achieve this but get stuck in the error which is mentioned in below post:- Not able to overwrite old value in ...
0
votes
0answers
12 views

How to remove An error occured at sitename/admin/build/views/ajax/add-item/view-name/default/field ajax error

When i edit a view page from admin node edit like rearranging the display field or adding an extra field in the page display (all working through ajax), i am getting the following error as alert and ...
0
votes
1answer
64 views

Not able to overwrite old value in Drupal.settings

I am facing Problems in overwriting old value in Drupal.setting. Problem Statement I am passing FID value from PHP to JS. At first it is getting correct value in JS. Ex. When PHP is passing FID=59 ...
0
votes
1answer
35 views

Create node from JSON

I'm looking to write the following module, any help, guidance, and advice would be greatly appreciated. User is logged into site. Site has two content types: page & note. Logged in user can ...
2
votes
0answers
31 views

Is there a way to make views_pre_build fire only once?

In Drupal 7, I am trying to set an ajax view's current_page when it first displays, which I can do, but of course it will always go to that page regardless of the input from the pager. The goal is ...
1
vote
0answers
23 views

Views display tabs remember last tab(need help with adding cookies or use $_session)

hey im using Views Display Tabs to display 2 pages of view and allow the user to switch between them however the last selected tab doesnt save and i want it to do that i have tried a few things that ...
0
votes
1answer
41 views

How to load data from db with ajax?

I am new to ajax so my question might be a basic one, but I have not found an answer anywhere so I ask here. I am building eshop website on D7 with Commerce. On page where products are displayed I ...
0
votes
0answers
12 views

Form API: Populate tableselect options with AJAX

I want to add a series of sections to the node create/edit form I have for a custom content type. They all work in a similar fashion, in that I pull data from another database and display it for the ...
1
vote
2answers
20 views

Dynamically add options for widget

I'm developing a field widget for Drupal 8, similar to 'select' but with more functionality. Since the number of options is large and should be determined after querying an external API I was planning ...
0
votes
1answer
32 views

help with custom module jquery, ajax and sql

am new to ajax programming, and am dealing with a custom module as follows: JS file code: jQuery("input[type='email']").blur(function(){ var id = jQuery(this).attr('id'); var name = ...
2
votes
2answers
49 views

Webform live calculations in table/matrix

I am trying to create a work time allocation webform. My goal is to create a table (6 columns and addable rows) and get a live sum of all columns at the bottom. (edit: pardon my lacking terminology. ...
0
votes
1answer
52 views

Get the value of a form element returned from an ajax callback function

I have a select element and submit button in my form : $form = array(); $form['myid_template'] = array( '#type' => 'fieldset', '#title' => t('Select Template'), '#suffix' => ...
0
votes
0answers
12 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
35 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
32 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 : ...
-1
votes
1answer
39 views

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
27 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
21 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
17 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
24 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
33 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
25 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
3answers
41 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
14 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
37 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
33 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
18 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
58 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'] = ...