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

Drupal behaviour javascript test executing twice (using AJAX)

Using Drupal 7, I want to manipulate the generated view using JavaScript. The code below is fired only once when I 'start' (refresh) the view, but when I apply a simple filter, the code below is ...
0
votes
1answer
11 views

Buttons get longer when pressed if using AJAX

I'm using Ajax Commerce Cart Cart with a custom Drupal 7 theme that I made with Artisteer, but the issue does not seem to just be related to the one module. Whenever AJAX is attached to a button, when ...
0
votes
0answers
11 views

Ajax-Form and #value

ok, so I have a custom form with some ajax stuff. The relevant part is this: $form['prices']['saleprice'] = array( '#type' => 'textfield', '#title' => 'Price', '#required' => ...
0
votes
0answers
16 views

Ajax not work in dynamic fieldsets of chechboxes

I have Drupal form with some fieldsets. Each fieldset contains checkboxes. Every checkbox has code for ajax processing: $fieldset[$checkbox_id]['#ajax'] = array( 'callback' => ...
0
votes
0answers
7 views

Drupal 7 views ajax submitting twice [closed]

I am trying to figure out how to prevent ajax from submitting twice. The complete callback is executing twice. Its also firing on page load and I want to prevent that. ...
0
votes
0answers
15 views

Views Ajax Pager not working when loading view with ajax

I have a page with a view that has a pager with ajax. the pager is working fine when the page first run. the page has a button that loads the next page using ajax, the view is loaded fine but the ...
-5
votes
0answers
58 views

How can I import an external web page to my drupal site? [closed]

I am using HotelsCombined's search box for my drupal website. When user clicks search for the hotel, it goes to the result page of HotelsCombined. However, I would like to change it, to display ...
0
votes
1answer
25 views

CTools: Ajax modal form window not loading

I already had success in ajax loading a form into a modal window with Ctools but now it fails and I do not why. Maybe someone can help me?! The problem: I create a link on a page which should open a ...
1
vote
0answers
11 views

How to create an AJAX callback when hovering a View item?

In my previous question How to mark a message as 'viewed' when a user sees it in a view?, I explained that I'd like to flag a Message in a View when it's hovered. @Geoff suggested to create an ...
0
votes
0answers
9 views

Error in Pager of a Ajax View

I am getting the following error in Ajax Enabled View, which uses Load More Pager. I am not sure if its, entirely because of OG, as the error doesn't appear in Views Preview but only in the actual ...
0
votes
0answers
28 views

AJAX submission from html.tpl.php?

Is it possible to have an AJAX form referenced from html.tpl.php? When I have it on this template, then the form doesn't submit via AJAX, only a normal POST request. I'm rendering the form like so ...
0
votes
0answers
29 views

Autosave returing Service Unavailable Without any response text on restore

In autosave v:7.x-2.2, I am getting this error: An AJAX HTTP error occurred. HTTP Result Code: 500 Debugging information follows. Path: ...
2
votes
2answers
53 views

Hide “Submit”/“Save” button until file has finished uploading

I'm having a problem where my site users are submitting a form before the files they are uploading into filefield are finished, this is causing an ajax error to pop up along the lines of "an ajax HTTP ...
1
vote
1answer
72 views

How to alter textfield auto-submit delay?

I have a view with exposed filters using AJAX and auto-submit feature. The problem is it reacts too fast, submitting the request after every key up very fast, so that the view is reloaded before ...
1
vote
1answer
36 views

use-ajax class for ajax link not working in dynamic content load

use-ajax class link not working when i load new content using custom ajax code, which has the use-ajax class links. I use normal jquery ajax to load the content because, i have drag and drop ...
1
vote
0answers
28 views

How to filter a view's attachment by clicking the links on the main view and using AJAX

I have a view listing node titles of a content type, using Views Accordion to group them by categories. And an attachment display attached to it which shows an individual node filtered by node id ...
0
votes
1answer
31 views

Prepopulating county/state field (ajax driven field)

Before I describe my problem, just going to mention that I tried Commerce Addressbook and Commerce Extra (address populate) modules but the first one is not suitable in general for my project (because ...
0
votes
3answers
47 views

Error: Undefined index: form_build_id in ajax_get_form()

I have a custom widget form that I use on a node reference field. The form outputs a list of nodes with a pager (jQuery Infinite Scroll plugin to append next results using the pager links) which can ...
0
votes
1answer
67 views

Drupal and event on bootstrap modal

I have a following problem. I have a bootstrap modal with a form which I submit using jQuery. Upon sussesful Ajax I hide the form in the modal and append a message. Now, when I close the modal and ...
0
votes
0answers
44 views

It is posible to change the css (background-color) of an html code with ajax in a form?

I've done the next form. That has the next code. $form['secciones']= array( '#type' => 'vertical_tabs', '#default_tab' => 'edit-tab2', '#prefix'=>' ...
0
votes
0answers
34 views

Form ajax populate select list using REST

I am having trouble with two things in this form. I am using form_state with AJAX to do a cURL to a webservice based on what they user selects. So if they select "project" it will show only ...
0
votes
1answer
31 views

ajax form element sometimes triggers submit

I have found some strange behaviour of form ajax elements. I have added #ajax to my form elements: ['#ajax'] = array( 'callback' => 'mymodule_ajax_callback', 'event' => 'change', ...
0
votes
1answer
38 views

AJAX Calculator

I'd like to have three separate but interconnected calculators that generate their output with AJAX (i.e., no page refresh). Would this process work or is there perhaps a simpler/more trodden pathway ...
0
votes
0answers
26 views

drupal 7 views - access entire (!) views content after ajax refresh as json

im facing the following situation: i have a view with exposed filters. after the user has altered the view using the filters, i need to access the view's entire data as json. therefore its not enough ...
0
votes
0answers
9 views

form w #ajax attribute to change content based on keyword input to be called to query Json from youtube

I am a PHP developer but new to Drupal development, although I am creating a module. Seen here http://vperry.co/drupal-aif-14/ I have created block that is displaying Json from Youtube, using a query ...
2
votes
1answer
42 views

Form API #states with #default_value?

I have a form which has a select with a #default_value which get's set when the user has errors/has filled out the form. Then I have two fields with a #states that show them when the select has a ...
0
votes
0answers
18 views

method replace dosn't work in ajax form

I've a select form that implements ajax. When the value of the select change an other form has to change. You can see in the next code. $form['a1']= array( '#type' => 'select', ...
1
vote
1answer
39 views

How to cache POST requests with Boost

Boost reacts and caches only GET requests. Does anybody know how to force it to cache POST requests too e.g. using specific key param in URL? Or at least how to call Boost method that caches request ...
0
votes
1answer
46 views

An AJAX HTTP error ocurred. HTTP Result Code: 500 (while trying to rebuild content access perms)

I have installed a module that ask me everytime to rebuild content Access Permissions, but every time I try to do it, it shows me an error I do not have idea why is it happening. Please help An AJAX ...
0
votes
1answer
48 views

An AJAX HTTP error occurred using commerce coupon percentage

I'm able to create coupons with no errors. When I enter coupon code into the field and click on the submit button I get the following error. An AJAX HTTP error occurred. HTTP Result Code: 500 ...
0
votes
0answers
27 views

drupal_html_id() alternative for non-Ajax content?

I am looking for a drupal_html_id() function alternative which returns incremented ID's of non-Ajax contents only. Is this "ajax/non-ajax" distinction feasible in this context or any other way? If ...
0
votes
0answers
20 views

ajax form element with normal submit

I need help/suggestions with ajax forms. I have a simple form, with a few elements and submit button. What i want to do is save each form field async. with ajax before user submits form. A have a ...
0
votes
0answers
27 views

Ajax in forms - does it reload whole page?

Trying to understand the default ajax behavior on drupal forms. Let's say I have a form builder function that creates few textfields and a submit button. Before form elements are generated I'm running ...
0
votes
0answers
31 views

Using ajax in forms

I've done the next form: It has html code, and some radiobuttons. $form['diagram']= array( '#type' => 'vertical_tabs', '#default_tab' => 'edit-tab2', ...
5
votes
1answer
245 views

Delay ajax call on textfield to allow for typing

I would like to delay ajax from firing in the same way that the autocomplete seems to work. For example, if a user it typing, the ajax will not run until 500ms has elapsed since the last keyup. I am ...
0
votes
0answers
34 views

Secure pages and installing new modules (AJAX error)

I've just configured my website to work with secure pages and everything seems to be working fine except for the ability to install a new module. Whenever I try, I get this error: An AJAX HTTP ...
2
votes
1answer
42 views

Drupal 7 - HTTP/AJAX/JSON responses at same URL with Accept Header (like D8)

Drupal 8 has this new amazing in-built functionality for handling requests from browsers and via AJAX at the same URL using the Accept header, which makes the CTools way of adding "nojs" to URLs, and ...
0
votes
2answers
22 views

Create a script page for handling ajax

I am a bit confused on the appropriate way to generate a drupal page for handling ajax posts. For example I'm creating a custom module that has favorites buttons. When a user clicks the button the ...
0
votes
0answers
11 views

AJAX on multiple views pagers fails to work

I have a situation that not all of my AJAX enabled pagers are working. I have several blocks on a page where each block is a view with a pager. Each pager has a unique ID. I use Context to determine ...
0
votes
2answers
28 views

Drupal 7 - Giving correct path to callback function in #autocomplete_path

I have this below code for autocomplete implementation but I just get AJAX error As you can see there is not anymore details for tracking down the issue. I also checked the logs but seems like this ...
0
votes
0answers
29 views

Autocomplete text field implementation: why autocomplete textfield is not render required form elements?

I am simply trying to implement autocomplete textfield. After so many tries I ended up copying entire code (which is 99% copied from the drupal 7 example. I get the form but the text autocomplete ...
0
votes
0answers
20 views

Page specific js despite loading pages with ajax

I am currently building a small site which loads menus and content using ajax (which works), however I can't find a way to add additional scripts to specific pages. Usually I would add the js.script ...
0
votes
1answer
23 views

Instant search and ajax events

I want to make a search field for a form that automatically refreshes the form as you type with the answers that match the filter, like google does it. I looked at ...
1
vote
0answers
40 views

Ajax breaks jQuery Toggle

I use a small script that hides/shows a pane when a certain element is clicked. (function($) { Drupal.behaviors.luminary = { attach: function (context, settings) { ...
0
votes
0answers
7 views

Ajax event on child element

I have a field that I display in the pop-up and I'm adding a button for this field as a child element to refresh possible values. This field is renders by the function described in #theme also the ...
0
votes
0answers
27 views

AJAX form - Trying to add an 'add more' button

I updated form_node_form_alter to add a set of questions to a content type: function mymodule_form_node_form_alter(&$form, &$form_state) { // load questions associated with node. ...
0
votes
1answer
21 views

Drupal.behavior unexpectedly triggered by Ajax callback

I work on a sandbox project which provides a Responsive Tabs to Accordion Panel style. Everything works fine except that once the page loaded, any Ajax callback (i.e add to cart or colorbox) seems to ...
0
votes
1answer
24 views

Is there a template for the comment links field?

I want to use ajax-links-api so that when someone replies to a comment, the url comment/reply/60/51 is loaded with ajax on the current page. I need to add rel="a class" on the reply link's anchor, to ...
1
vote
0answers
31 views

Does AJAX callback functions work differently for BEF views?

I am breaking my head since last two days to implement dependent drop down list. I have followed so many examples in the internet, SE and examples project but for some reason the simple thing isn't ...
0
votes
0answers
10 views

Better Exposed Filters Input Required Showing Results

I have a view set up as a block, with Better Exposed Filters, using AJAX. It shows no articles on load, which is the expected response. However, on submit if no filters are selected results show. This ...