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
12 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
21 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
12 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
43 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
4 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
12 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
12 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
48 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
9 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
42 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
15 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
9 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
25 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
10 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
2 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
11 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
10 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
11 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
21 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
82 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
16 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 ...
0
votes
0answers
14 views

Drupal fancybox is not working with ajax callback of form [closed]

in fancybox,I'am showing my form,in which there is a ajax callback,but on fancybox popup, ajax callback is not working? Thanks
1
vote
2answers
33 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
38 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
41 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
26 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
64 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
21 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
61 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
41 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
23 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
67 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
43 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
25 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
34 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
42 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
25 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 ...
0
votes
0answers
18 views

Error using 'use-ajax'

I am trying to ajaxify my site. every path should be ajaxified (view-pages, nodes, user-pages, etc) I simply start with adding the class use-ajax to my links. As a result I get an Error: An AJAX ...
0
votes
2answers
57 views

prevent script to run twice after 2 ajax loads

I use colorbox node, which loads a node inside colorbox overlay. Inside colorbox I load a jquery script to add some parameters to all links inside. However, the loading is done by 2 ajax calls and I ...
0
votes
0answers
51 views

Problem with Ajax and Drupal form

I try to use Ajax in my form in Drupal. I had created a select list with some options. For the moment I just want to show a sentence with my choice in the list like "examples modules". The options ...
0
votes
0answers
11 views

how simplier to create a taxonomy menu with ajax?

What could be a simple way using existing modules or methods to create a taxonomy menu handled with ajax working across all pages of my site ?
0
votes
0answers
16 views

better exposed filter as block with ajax

i have created a view with BEF and parameters use ajax yes Exposed form in block: Yes Exposed form style: Better Exposed Filters | BEF Settings :radio buttons The filters are tag names. The ...
0
votes
1answer
93 views

ajaxify content via a callback function

I am trying to ajaxify my site. I want the "Main page content" to be passed via an ajax-command to a custom js-function. To accomplish this I would do the following: I need to register a path for ...
0
votes
0answers
11 views

Tags field with Drupal forms ajax

I need to do a form with select list and textfield. After user changes his choice in select list, this option is adding to textfield. It should work like "Tags" field on this site. I wrecked my brain ...
0
votes
1answer
19 views

trigger event before content is parsed after ajax

I want to ajaxify my site. Everything, that is usally parsed as "Page Content" sould be opened in a lightbox. So the idea is to ajaxify every link and let #lightbox be filled with the result. but ...
0
votes
1answer
109 views

How to execute Drupal form without waiting? Ajax? Jquery?

I am trying to code one of my first Drupal modules and hitting this problem. I have a simple form in a custom module, that checks value of field_status and depending on if it is "down" or "up" ...
0
votes
0answers
33 views

Drupal 7 dynamically populating a select field depending on the prior field value

As stated above, I am attempting to dynamically populate a select field based on the selection in another. The first field is dynamically populated with view names, and the second will hold the ...