Tagged Questions

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
15 views

ajax modified form drop down doesn't save

I have used form_alter to add a ajax callback to an element to my form. When the user chooses an option, it creates dropdown options for the other field. However, while this works fine for changing ...
0
votes
1answer
30 views

Drupal 7 ajax on webform

I have added a button to webform: $form['submitted']['some_placeholder']['own_btn'] = array( '#type' => 'button', '#value' => t('Add'), '#name' => 'ob_add_food', ...
0
votes
0answers
23 views

Ajax pager of views does not work when using in quicktabs

I have 2 views that are using pagers since they display lists of articles. Each view is within a tab of a quicktab. The views are set to use AJAX. Right now, I am able to move between the pages of ...
1
vote
1answer
15 views

Form AJAX - Update button value via Ajax

I have a custom form in Drupal that ties into Entity-generating code. In essence, there's a button which should return an ideal Entity state (determined in a method that returns true or false). The ...
0
votes
1answer
11 views

Alter ctools_ajax_command_redirect()

My problem is redirect after webform submission. So I have a webform node and AJAX on this submit button (hello "Webform Ajax"). How I do redirect: I'm just using hook_form_alter() and add to this ...
0
votes
0answers
12 views

How to access node arguments while making an ajax request?

I have a webform with a file upload field. When I upload a file in this field, without submitting the form, the file is uploaded using AJAX. Now, I want to make some modifications during this call. ...
1
vote
0answers
19 views

Filter View by a Javascript variable that is frequently changed by mouseovers on same page

In Drupal 7.32, I want to filter a sidebar View block by a Javascript variable set by a mouseover on the same page, with the additional condition that the Javascript variable changes when you ...
0
votes
0answers
10 views

Draggableviews and Services Views: Reordering Nodes through Ajax/Draggable Content not working in Services View

I have successfully set up a view ("Essential Questions Review Pane") that reflects the updated order of nodes based on a draggable view from another version of that same view ("Essential Questions ...
1
vote
1answer
30 views

How to refresh/update a Block or View after a form submit?

I have a View of created entities displayed as a block. On the same page I have a form with which new entities can be created, and this form submits through AJAX because I do not want a page reload ...
0
votes
0answers
9 views

AJAX Form Not Inserting Default Values Based on Variables

I'm creating a content creation form for a custom node type that will be updated with AJAX. The basic idea is that this is for processing media mentions, and the AJAX will call a function that will ...
0
votes
1answer
22 views

Reset a page with multiple exposed filters

I have a view page which is the main page on my website. It is kind of a search using exposed filters. As I have many exposed filters I installed the module MEFIBS which allows me to split the exposed ...
1
vote
0answers
17 views

Is it possible to build a form with jQuery and still use ajax elements and Drupal 7 Form API?

I have a form built using for the most part many ajax elements within the form api. The form is working if a user is going through it at a normal pace however as this is to be a productivity tool, any ...
1
vote
1answer
30 views

ajax form submit in drupal 7

I am doing an ajax form submit, Issue #1 : I am facing problem while submitting the form, The form have a submit and a validate function. In the validate function it is checking whether the username ...
0
votes
0answers
13 views

Dymanic form with ajax

I looked at ajax_example_add_more and I cannot understand what's wrong with my code. It doesn't add another field set. my code: function my_module_form($form, &$form_state) { $form = ...
1
vote
2answers
46 views

D8: How to perform ajax call in javascript

I'm trying to perform an ajax call from a javascfript file by executing this: $.ajax({ url: '/lunapark/ajax/space-invaders/' + score, success: function ...
0
votes
0answers
5 views

Is there a stable way to fill a filefield/imagefield via bulk upload in D7

OK, here's the deal. I've implemented image gallery nodes in D7 the straight-forward way, i.e. create node type 'gallery' and add an imagefield with unbounded number of values. Nice markup via ...
0
votes
0answers
13 views

How to log empty AJAX responses?

I have simple form for product filtering, using AJAX. Callback is defined as follows: function mymodule_filter_main_category_ajax($form, $form_state) { return array( '#type' => 'ajax', ...
-1
votes
0answers
16 views

Form Creation After ajax call

I have a form . After submitting the form via ajax another form will be created along with the previous form's result. So at first, 2nd form will not be displayed. After 1st form submit 2nd form will ...
-1
votes
2answers
30 views

Is it possible to create in Drupal a multiple pages on single page

Please check screenshot , without moving to any new URl when i click on Q&A it shows at right side the result even i can edit and save without going to new URL, everything happens on same page Is ...
0
votes
2answers
61 views

Ajax request: 500 (Internal Server Error)

I am using this jQuery plugin to render a toggle button in a block. When the button is toggled off/on I want to write to a databse table (with entity_save). Here's the relevant code I'm using to try ...
0
votes
0answers
10 views

How to get node object in theme_radio (when form is reloaded by system ajax function)?

I want to load the node object concerned by a form from theme_radio(). When the page loads, there is no problem to perform that, we must simply call the node object this way: $node = ...
0
votes
2answers
47 views

Server Error 500 on every Ajax Call

we have a problem that we get a internal server error on about every ajax call. The example below happens when editing a view clicking "add filter" and directly click on abort. It also happens when ...
0
votes
0answers
19 views

Entity Reference field not updated after callback

(Using Drupal 7) The use case: To register an appointment in a Spa Center the user needs to select from a list which Service will use (only one) and after this selection the user will select only ...
0
votes
0answers
19 views

google chart not displayed through ajax call

I am trying to use gooogle chart tools for showing some stats . below is the example code I m using $settings['chart']['chartOne'] = array( 'header' => array('Apple', 'Banana', 'Mango'), ...
0
votes
0answers
30 views

Drupal views / auto refresh & effects

I'm attempting to create a background image using views autorefresh and a view that randomly selects a node with an image to use. I want to apply more refinement to it with a fade effect or something ...
0
votes
0answers
12 views

Ajax form doesn't work when I moved '#ajax' block to submit button

I started to study the example from this page: https://www.drupal.org/node/752056 It works. But when I moved the '#ajax' block into $form['submit'], $form_state['values']['howmany_select'] is always ...
0
votes
0answers
3 views

Add Another Item on Multivalued Field Fails on Custom Form

I have a custom module building a form with fields attached from various nodes using field_attach_form(). However, when I click "Add another item" on a field with unlimited values, a POST request is ...
0
votes
0answers
15 views

Apply button hidden on views exposed filter on published content

I added an exposed filter on Published Content field in my view. It shows the apply button on preview but does not show the submit button in my actual view. Any clues. Here is the filter in preview ...
0
votes
1answer
13 views

Delay ajax from firing immediately (AJAX links api)

Problem I'm trying to add a bunch of CSS3 page transitions to my site. To do this, I'm loading the pages with AJAX using the AJAX Links API module, but I want to delay the AJAX call to allow for the ...
0
votes
1answer
15 views

Append a Drupal form table

For the past few days I have been trying to update a rather simple table with ajax. The table cannot be rebuilt. This is of my own accord, if the table is rebuilt all of the colors data that was ...
0
votes
0answers
19 views

How to check in ajaxSuccess function if specific dom element has a particular class?

I have a view with two tabs. Basically, it is a view with a map of events on it and attached display to the map which lists the events. The view has an exposed filter which allows searching by ...
0
votes
0answers
22 views

Drupal custom form with AJAX and javascript event

I have a custom form that is displayed in a custom block. That block is a popup div. When a user fills the form successfully it's displaying success message. I want to attach a jQuery that will ...
2
votes
1answer
88 views

Is there an AJAX command I can use to debug PHP variables without breaking AJAX call?

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 ...
0
votes
1answer
18 views

Ajax Request Failing

I've got a perplexing issue which has left me quite confused. I've got a form which has a link on it and when the user clicks the link it is supposed to open up an AJAX popup form and display some ...
1
vote
2answers
36 views

Update Two select box when change another select box

I have drupal form with three select box i want to change select box 2nd and 3rd after change value of 1st select box. ex: i have Three select box 1) Cruise line 2) Destination 3) Ship Id When ...
0
votes
1answer
52 views

form built by ajax commands not sending values

My problem is to do with ajax commands and the form being rebuilt after calling ajax_command_append(). I have a form with two elements an option and a textfield. These are built-in with the form on ...
0
votes
1answer
43 views

Ajax error every time open view

i want to create new view but every time i make selection like user, content etc. i got this error An AJAX HTTP error occurred. HTTP Result Code: 500 Debugging information follows. Path: ...
0
votes
0answers
28 views

AJAX not works (added in form_alter hook) in a view via views_embed_view

I have a view with a form (this is a commerce card - commerce_cart_form). I have added some AJAX to this form with form_alter. When I open this view direct by path - all works fine. But when I open ...
0
votes
1answer
32 views

How to make sure my behavior is triggered before AJAX?

I have a form elements that looks like this: $form['properties'][$property->idProperty] = array( '#title' => $property->Label, '#ajax' => array( 'callback' => ...
0
votes
2answers
65 views

Drupal Commerce : line item should change the price

I have this problem in drupal commerce: a line item should change the price of my product, that is based on customizing the users (ex. product base $10 with customization $12, customization is line ...
0
votes
1answer
24 views

Drupal Json Output strange characters when pulling from other language

Hi Fellow drupal experts, I have a problem, I developed a custom page intended to do a drupal json output : and here is the code : function blogpull_menu() { $items = array(); ...
1
vote
1answer
68 views

How to pass node ID argument to Drupal 7 div auto update ajax script

EDIT: There seems to be a ready-to-use http://drupal.org/project/block_refresh module available as @albertski indicated, so no need to struggle to develop a new module. I've implemented the code on ...
0
votes
0answers
49 views

Setup a progress bar with AJAX in a custom module

I have a question about how to setup and see an updating progress bar into a custom module based on a custom form submssion I have a custom module, which is basically based on a form which allows to ...
0
votes
1answer
25 views

expose filter work with ajax only on inner pages but work with button submit on front page

What I want is to work expose filter with ajax only on inner pages but work with button submit on front page i.e when I want my expose filter on front page to work like normal form but on inner page ...
1
vote
1answer
72 views

Problem to update a date_select field from a tableselect radio button via ajax callback. Other fields are well updated

Here is the corresponding code and a print screen of what happens when clicking a radio button (you can see it works well for type 'select' and 'textarea') I use Drupal core 7.31 and Date Date 7.x-2.8 ...
0
votes
0answers
45 views

Form wont submit using AJAX when logged out

I am trying to submit the Add To Cart form using AJAX, I have altered the form like so: function ajaxcart_form_alter(&$form, &$form_state, $form_id) { if(strstr($form_id, ...
0
votes
1answer
28 views

Can't set options on form ajax callback

I have created a custom form in a custom page in the admin of my Drupal 7 site. On this form I have two sets of radio buttons (cities and sectors). I want it so that when I change the cities radio ...
0
votes
0answers
39 views

AJAX callback not working on select list added via previous AJAX call

I have a large custom form using the excellent FAPI. A select list element is added through AJAX when a certain option is selected from a previous select list. This is working great, and the select ...
0
votes
0answers
52 views

Add ajax form submission in a panels content type pane plugin at render time

I'm writing a CTools Content Type Plugin for use as a Panels pane, specifically for output the existing user login slightly modified. Everything is working fine - but I want to add AJAX functionality ...
0
votes
0answers
26 views

Item list added by “Page_alter” disappear

I added a list item by HOOK_form and HOOK_page_alter. After cache cleaning, the list appeared and it did the job but when i changed page, this list disappeared for no reason. She never returned on any ...