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

Can't get ajax data sent to my php function

I recently took over an existing Drupal project and I tried to add a new php function (which works regularly) and link it with an ajax query. There were already some in place that worked, and I wanted ...
0
votes
0answers
10 views

Applying javascript to an ajax quicktab result

I have made an interface with some quite sophisticated functionality - tabs (module Quicktabs), containing views (module Views) from nested taxonomy (module views tree), containing tables which are ...
0
votes
0answers
7 views

How to get form_state values in _webform_render_component

I am making a custom component for the webform module. One of my elements triggers an ajax call to update the possible values of another field. In _webform_render_elem_courses($component, $value=null, ...
0
votes
0answers
11 views

ajax callback add more on a select field

I am trying to implement a "add x" on a select field but it doesn't seem to work. I've tried to follow this example but they use a submit for that. $form['myfield'] = array( '#type' => ...
-5
votes
0answers
24 views

I want support for drupal 7 [on hold]

I want to create filters for the node. I use the module "search api", "facet api" to create "search server" and "search index" then I create a "view index" to show the same node filters. I do not want ...
1
vote
0answers
23 views

Invalid form POST data - ajax for Authenticated users

I have a Drupal form using ajax. When I submit the form I am getting the following being displayed: When I check the Drupal log I have the following entry. I have Googled the error and found ...
1
vote
1answer
14 views

How do I create an AJAX callback to Drupal video link?

We have a number of videos which are hosted locally and are simple HTML5 video tags. We want to keep track of play clicks. So to be clear, we don't want to track clicks on the URL, we want click ...
0
votes
0answers
26 views

403 Error on AJAX Request in add new item (collection field)

I have normal content type which has 12 collection fields each field has unlimited value when i try to click add new item on any field it gives me ajax error An AJAX HTTP error occurred. HTTP Result ...
-1
votes
2answers
17 views

Autocomplete text field with add more custom module [closed]

I am trying to create one custom drupal form which contains ... auto complete text field add more dynamic above text filed Its working as have used drupal ajax and FAPI. But when I am adding ...
0
votes
0answers
18 views

views exposed filter listen to node form values

If view block with exposed filer or contextual filter is placed on node/add , node/edit form and node is having some field which could be used alternate to exposed filter or contextual filter. Is this ...
-4
votes
0answers
17 views

I want to work and her answers are counted [closed]

I want to work and her answers are counted and weapons are the class and the id and html and when I put the code aslaelh and answers on layer does not move to the second layer that I want to put also ...
0
votes
0answers
10 views

Ajax error message in hook_validate()

I'm using drupal commerce kickstart and kind of stuck in this problem. I'm using hook_validate() on my custom module and this validation is called in an AJAX way. I'm using form_set_error() to show ...
0
votes
0answers
3 views

How to add additional Ajax functionality to unlimited field collection items?

I have a field collection (cardinality = unlimited) that holds another field collection (cardinality = 3) that holds a select list with three options (required). For better understanding I left ...
0
votes
0answers
9 views

load mutifield value on button click by passing form field values with ajax

I needed to load field value from an existing node. This has to be done via clicking of button like "load defaults". I know this could be done without button using hook_form_alter while form is ...
1
vote
1answer
44 views

modal window “loading” not loading in SCALD

I'm working on a site using SCALD – and for some reason the modal media upload window does not work anymore. It's stuck with the status "loading…" but not going anywhere. I first had it running like ...
0
votes
1answer
20 views

Missing my custom ajax field values by image field in node form alter

I have created new content type and added two taxonomy reference field (select list) both referenced to same vocabulary "car" and one Image field with cardinality = 6, In car vocabulary listed brands ...
0
votes
0answers
14 views

how to refresh a view content pane each time a group of tabs is clicked without page refresh

Hi guys I need some help, I have used Swiper in my views to create a slide of contents, and have a views content pane which brings 4 items at a time sorted randomly. A random sort works with a page ...
0
votes
0answers
15 views

Webform Ajax Autocomplete based on other Autocomplete

I have a webform autocomplete field that populates for a database called country. What I would like to do is when the user types in their country another field (called iso3) populates with the ...
1
vote
0answers
21 views

Cancel function of AJAX fired from misc/ajax.js

How can I override Drupal.ajax written in misc/ajax.js? I need to check URL existence before firing an AJAX call. Is there any other way/better way to achieve that without overriding this js? ...
0
votes
0answers
9 views

Is it possible to port a jQuery module using ProtoType.js to Drupal 7?

I've been the maintainer of an integration module for phpFreeChat since Drupal 5. I ported it to Drupal 6 with no problems, and I tried to port it to Drupal 7, but it hangs when the chatbox starts to ...
0
votes
0answers
12 views

How to get tid of the taxonomy term from autocomplete field

One of my node types has Term reference field with Autocomplete term widget (tagging). I need to get TID of the term that user filled in in this autocomplete field - right after the field has been ...
0
votes
0answers
9 views

Commerce Ajax Add to Cart(dc_ajax_add_cart) - edit shopping cart fields

I'm having a hard time with editing the shown fields in shopping cart using Commerce Ajax Add to Cart(dc_ajax_add_cart). I already read the README.txt and it here it says: "5> This module provides ...
0
votes
0answers
18 views

how to fix ajax http request abnormally terminated

I ran to the trouble and I need a help. I cannot add a new content.(just in one type content). For everytime, when click on add button I get error: Ajax http request terminated abnormally Path: ...
1
vote
0answers
26 views

Ajax error while uploading image

i had a content type with title, body(Long text and summary) and image upload field. Tiny mce editor is added to body field. But once i tried to upload an image i am getting this error "An error ...
0
votes
0answers
15 views

AJAX HTTP error occurred Code: 200

I am using Drupal 7.34, and I am facing an AJAX error trying to use autocomplete fields in my backend (e.g. file field sources, product reference). After searching for solutions, I found similar ...
0
votes
0answers
21 views

How to use hook_js

I want to render some content without full bootstrap on hovering main menus. I heard about JS module which loads the request faster without Drupal full bootstrap But when I tried, it returns page ...
-1
votes
0answers
22 views

update ajax view complex filters

Using drupal 7 and latest versions of panels and views. I have a Panel, that includes a Panel with two views inside: a map and a table. Also some better exposed filters that when executed redraw map ...
0
votes
0answers
43 views

An AJAX HTTP error occurred in Drupal View

I got an Ajax Error when i am submitting the Appl(all display) in Views. The Following Error Displaying Popup: "An AJAX HTTP error occurred. HTTP Result Code: 200 Debugging information follows. Path: ...
-1
votes
2answers
81 views

How to create a single page application in Drupal?

I know Drupal and now I am creating a website by Laravel framework. I know what are single page application and how better they are. I used Angular and Backbone as JavaScript framework/library to ...
0
votes
0answers
35 views

Ajax - Dependant Autocomplete based on select list

I am trying to implement the solution that PrestonDocks gave to this question but am having 2 issues: When the fields are displayed on my form they are being inverted. The exhibitor field is coming ...
0
votes
0answers
23 views

Drupal behavior not working with Views ajax

I have a problem with applying my js to Views after its filter is changed using ajax. I'm really tearing my hairs out for a while... As obvious in this question - my js is applied only on first load, ...
0
votes
0answers
49 views

Render checkbox in a table row on click of button with #ajax property

I have a form element in hook_form as below, $form['check'] = array('#type' => 'checkbox',); and also an add button, on the click of which a table renders, with a checkbox in every row each time ...
0
votes
0answers
11 views

Using Lazy Pane: How to cache a panel pane after it was loaded using ajax

I have a panels page that uses Panels Tabs loading panes with Ajax. It uses the module Lazy Pane https://www.drupal.org/project/lazy_pane, but a solution with any other module or method is welcome. ...
1
vote
1answer
30 views

Drupal Commerce: Prices on Variations not displayed when selecting a variation

I am using Drupal Commerce Kickstart 2. When a user selects a value from the size drop down (variation), the price and other attributes do not update on the product display. I need to have something ...
0
votes
1answer
32 views

Ajax progress bar using example module

I am new to drupal, currently learning about example module and its sub module, I already created the form using custom modules, in that form I wish to add progress bar for submit button, i referred ...
0
votes
0answers
23 views

Trouble picking up Open Graph tags on page load

I am having issues doing a simple jQuery select to pick up the content of an open graph tag. The website this is an issue on makes heavy use of ajax, every page is loaded in via an ajax call. The ...
0
votes
0answers
7 views

Howto archive a new response page for a view block with exposed filters?

In drupal 7 i have created a view with a page and a block. Inside the views block I have exposed filters. I placed this views block on the frontpage. The exposed filters only work with ajax enabled, ...
1
vote
1answer
14 views

Ajax in a form produces an error

suppose this form: function test_ajax_form($form, &$form_state){ $form['school'] = array( '#type' => 'textfield', '#title' => t('School'), ...
0
votes
0answers
19 views

Ajax File upload breaks/repeats all custom javascript

I've created a multi-step entityform which includes a file upload field. Everytime file is uploaded the form navigation breaks. Nothing happens when clicking next or prev buttons and there's no ...
-1
votes
0answers
21 views

Problem with Taxonomy Terms and add image

I need some help to add articles to web. I cant add taxonomy terms or image.
0
votes
0answers
10 views

Repopulating DataTable via AJAX

The setting: I'm currently making an application which will handle the ordering process for a company. I currently have clients, products and orders which work perfectly well. Now I'm trying to add a ...
0
votes
0answers
7 views

drupal_realpath in ajax php script not working

I have an AJAX script, which boostraps the drupal system to get access to the drupal functions. The I like to convert a file's internal uri (e.g. "private://test.jpg") to a local filename (e.g. ...
1
vote
0answers
63 views

how to hide and show custom filter form on a drupal view

I'm new to Drupal and I'm trying to create a view with many filter options. Because it has a lot of filter fields I want them to be hidden and only show the filter fields the user decides he wants to ...
0
votes
0answers
14 views

managed_file upload clearing $form_state

I am having an annoying problem whereby $form_state['values']['region'] and $form_state['values']['country'] are being cleared when I upload an image via the managed_file field. This is causing a ...
-1
votes
2answers
27 views

Insert query using ajax drupal

I am totally new to Drupal Ajax. In my projects one simple form with submit button only there for insert "yes" value to Database. so it should be done with Drupal Ajax. So When that button submit the ...
0
votes
0answers
26 views

Validation on AJAX loaded webform

I load a webform when a user clicks on a certain button. $.ajax({ url: '/js/project-contact', type: 'GET', cache: true, dataType: 'json', success: ...
0
votes
0answers
26 views

Ctools modal with #ajax fields causes Fatal error: Call to undefined function ctools_plugin_get_function

I'm creating an access plugin for Ctools so it can be used on a page manager page for the access rule. I currently have the following code. $plugin = array( 'title' => t('Listing count'), ...
0
votes
0answers
14 views

Rules Link: how to immediately switch link label at click

There are two issues here: - to switch link label at click - to make the label show immediately at click and process the rule in the background This all in order to speed up things for the users. I ...
1
vote
0answers
25 views

How to ajax refresh one row in a view

Views are often used to modify entities (for example tasks and their status or priorities) and when a field is changed using an ajax button, a page or view refresh is required to update the rest (like ...
4
votes
2answers
125 views

How to get Form API #states selected value onchange?

When I'm using #states to set the visibility of a form field I'm checking an input element for its value. Is there then any way to grab the selected value the moment it's selected? In the working ...