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
2answers
26 views

Alter a field by select list in entity form

I have a problem with Ajax and some fields in my entity form. i have a select list in my form and when i change the selected option i wanna increment another field. To explain better, i can create ...
0
votes
0answers
9 views

execute separated views from a panel by user demand

I have a map and a table syncrhonized by the params that are sended on executing the context. All these 3 'elements' are in a Panel. Elements on table that are georeferenced will be plotted on the map ...
-1
votes
0answers
18 views

append new form with ajax_command_append

My task is to add multiple forms to a page, with a simple select. Eg: user selects an option in select and based on the selection, i need to add new form to the page. I wanted to do this with ...
-2
votes
0answers
11 views

Is there a module or package to allow Select2 on both entity reference fields and webform lists?

Is there an existing module, or specific process for implementing Select2 on all entity reference fields and all webform select lists?
0
votes
0answers
6 views

How to reindex $form_state values' deltas when deleting or unsetting one of the options?

In a module, I provide a form to the user to select a value from a select. The form allows multiple values and the form updates itself via ajax to provide always one more select field than selected ...
1
vote
1answer
18 views

Remember View results on a browser back button click

I have a view with some exposed filters that show some links. When I select a filter option, an ajax search is done and it shows the results. I click in one link and then I click in the browswer back ...
0
votes
1answer
22 views

ajax_deliver returns json instead of content

I have a panel with two columns. In the left is a views with teasers, in the right the full body text of a node. If you click on a link in the views the content in the right panel should be replaced ...
0
votes
1answer
24 views

Request an Ajax form through Ajax [solved]

I want to load a form through Ajax in a custom Javascript Event as it is explained in this tutorial. I receive the form, but its ajaxified behaviour is very strange. My Javascript: var address = ...
0
votes
1answer
30 views

Problems trapping AJAX'ed form input click event

Using Drupal 7.x w/ jQuery 1.4x, I'm trying to trap the click event when I click on a submit input of an AJAX form generated from this Commerce AJAX Cart module. In my custom.js behaviors file, I ...
0
votes
1answer
24 views

Image widget stopped working after core update [on hold]

I recently did a long overdue update from 7.20 to 7.33. However, after I've made the update, the "Image" widget has stopped working when trying to edit content through the admin screen. I cannot add ...
0
votes
0answers
4 views

how to add confirm and hide the deleted row in ajax forms with multiple submit buttons

I need to find the pressed button in a page that has a delete button per each row and each button has different id. also I need to hide each row after submit. I can hide the correct row but delete ...
0
votes
0answers
13 views

Drupal Ajax Form and Output Toggle

I want to a a block with data, say DATA One DATA Two Edit Data When I click button Edit Data, It should replace data with form fields, i-e Field One and Field Two, with a submit button, after ...
1
vote
0answers
18 views

Updating multiple elements in Form Ajax Callback [duplicate]

The Form In a Drupal Form I have (amongst other elements): Two select lists: Retailers, Products. One Table select: Selected Products. Two buttons: Add, Remove The Functionality I want: The ...
2
votes
4answers
230 views

Populate multiselect options onchange of dropdown using AJAX

I have created a content type (Geological Locations) with 2 fields, Country and States. The Country field is a select box, and States field is a multiselect. So if i select a Country, the States ...
0
votes
0answers
12 views

Implement a pager for my table and navigate into it in ajax

I'm looking for a way to implement a pager for my table knowing that I don't use a query and I can't use that kind of solutions: $query = db_select('node', 'n') ->condition('status', 1) ...
0
votes
0answers
11 views

how can i add record to db, and load the table records under the form in specific theme using ajax?

I need a form to add record in db. after the form has been submitted the new table content should be shown (in a specific theme) without refreshing the page so I need ajax submit but I don't know how ...
-1
votes
1answer
20 views

I have Created a form to upload images, where i should display error message if i upload more than 3 images and should disable submit button

I have Created a form to upload images, where i should display error message if i upload more than 3 images and should disable submit button to delete already uploaded image if i want to upload more ...
0
votes
0answers
6 views

Drupal7 ajax and wellfeeler_url_inbound_alter

I have a webform. On it I have a button this ajax. It saves some data into the db and refresh the page with new data. The problem is: When I use "wellfeeler_url_inbound_alter" to show this form on ...
0
votes
1answer
38 views

Where is my AJAX call going?

I'm very new to Drupal so I hope you'll forgive the silly question: where is the server-side code for my AJAX call? I've read the documentation on the Ajax Framework, but I can't find any instances ...
0
votes
1answer
39 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
36 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
31 views

Ajax pager of views does not work when using in quicktabs [duplicate]

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
31 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
14 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
13 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. ...
0
votes
0answers
17 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
59 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
17 views

Why AJAX form is 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
27 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
23 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
33 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
15 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
50 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
6 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
14 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
2answers
32 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
215 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
13 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
60 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
25 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
23 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
37 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
21 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
11 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
21 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
28 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
16 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
34 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
40 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
94 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 ...