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

Getting “an error http 200 occurred” on every ajax call [on hold]

I'm getting the error everywhere in my website. In views, flags, pretty much everything that uses AJAX. I tried reinstalling jquery update module, cleared cache dozens of times, just can't seem to fix ...
0
votes
0answers
6 views

Editable fields save all instead of onchange update?

I have a panel with a view that contains a table of data. With the editable fields I can edit these values. The problem is, that everytime I change such a field it is firing an ajax call to update the ...
1
vote
1answer
29 views

How to prevent drupal form's managed file upload ajax field from resetting the $form_state?

Edit: working code, although pretty ugly: if ( isset($form['submitted']['stelle']['#default_value']) && $form['submitted']['stelle']['#default_value'] !== '' ...
0
votes
2answers
18 views

Remove AJAX in views form (on change)

I have a problem with a views form. It should only be submitted when I hit the submit button. Currently it is submitting when I change a value in any textfield. When I select "Using AJAX: no" it ...
0
votes
0answers
13 views

Render module form to node template

First of all, I dont want to use the drupal five star widget, as I have special requirements to star animations and stuff... I try to generate a voting block element, that uses AJAX to send the vote ...
0
votes
0answers
16 views

Tablefield module does not rebuild table - Undefined index in ajax call [closed]

I have downloaded and installed the tablefield module. I can define the tables just fine in my fields but when the time comes to add some values to them I cannot seem to be able to use the ''Rebuild ...
0
votes
0answers
19 views

drupal_json_ouput passes html instead of json [closed]

I am having an issue with my ajax. For some reason, the returned code is a fully rendered html page and not the json array I am requesting. Any ideas as to what may be going on? $.ajax({ type: ...
0
votes
1answer
21 views

My website suddenly started giving Error 200 on anything AJAX related!

The other day my website suddenly started acting weird. When using the Flag module to flag content, i get a 200 error! The content does get flagged once i refresh the page, but when clicking the flag ...
1
vote
1answer
67 views

How can I refresh a view block as soon as new content is added?

I want to refresh a views block whenever new content is added. I am using views auto refresh module Quick HOWTO: Using a ping script Using a ping script is essential for production ...
0
votes
1answer
27 views

Grey out other checkboxes

My scenario looks as follow: I have a form element of checkboxes, e.g. 3. If the rightmost checkbox is marked, the other 2 are greyed out and so on. I don't know how to do this, because if I use the ...
0
votes
0answers
10 views

AJAX File & Image Remove Buttons Not Working

I'm using a custom theme and allowing certain users to edit nodes that have single image fields, file fields and multiple upload image fields. My problem is that when any of those users go to remove a ...
0
votes
0answers
8 views

Jquery Ajax to Drupal to External site, reading response

I have a drupal site. There is a page (page 1) with a form that gathers user info and submits it via AJAX to a Drupal Module page. The AJAX format is jquery var responseTarget = ...
0
votes
0answers
9 views

Fivestar custom widget not picking up custom stars

I have a content type with a fivestar field. I then have a custom modules that renders a text area under the stars. I want to change the stars and make them pink (for example). so I have copied one of ...
0
votes
2answers
41 views

Submit form when field value changed

I have a simple form with method GET as follow... function MYMODULE_form($form, &$form_state) { $form['#method'] = 'get'; $params = drupal_get_query_parameters(); $form['cat'] = array( ...
0
votes
0answers
55 views

URL variable not respected when ajax call happens in user registration form

There are some fields (some required, some not) I need to (conditionally) hide in the user creation form: function hook_form_alter(&$form, &$form_state, $form_id){ switch($form_id) { ...
1
vote
1answer
29 views

Field Collection module Ajax error

I'm utilizing the Field Collection module to allow me to associate objects of one content type (say, Authors) with another content type (say, Books). When viewing the Edit page for one of my specific ...
0
votes
1answer
30 views

Ajax callback called on textfield typing

I'm trying to reach exactly the same state as autocomplete field does. When user is typing in textfield I'd like ajax to wait with its callback so the user can write all the text. I'm trying to ...
0
votes
1answer
44 views

Issue implementing Ajax in form

I created a basic page which has a basic form and implements ajax, or attempts to do so. My issue is that it doesn't seem to be functioning as it should. What might be Ajax, only works after I press ...
0
votes
1answer
25 views

How to redirect user when new node save by ajax in advance form block drupal 7?

I have a website in drupal 7. I used advanced form block module to create add form block. Advanced form block module create block for form to edit and add new content. All node saved by ajax ...
0
votes
1answer
29 views

How can I load content on the same page from a search

So the idea is to load the results of the search on the same page. I was told to look into SOLR, but it looks like we have something similar to SOLR , and we just need to know how to load new page ...
0
votes
0answers
27 views

AJAX HTTP error occurred. HTTP Result Code: 503 for Views

I was trying to transfer my developed website from WAMP to Host - if I go to VIEWS - any button click responds with Error code: AJAX HTTP error occurred. HTTP Result Code: 503 Then - I did a fresh ...
0
votes
1answer
29 views

Make Commerce Checkout Form Submit via Ajax

I think its a simple question, but I havent find an answer yet. I want to make the Commerce Checkout Form Submit as an Ajax Form Submit. I have searched for a while but I havent found something ...
0
votes
2answers
33 views

Can I call two callback function in one ajax call?

I just want to know how we can achieve two ajax callback on one form submit.Is it possible?and how?
-1
votes
1answer
23 views

Ajax call failing in Workbench email module

I'm having trouble with ajax in the workbench email module. On two nodes (out of hundreds), the ajax call to get a list of users to notify when the publication status changes will fail. The error is ...
-2
votes
0answers
48 views

An AJAX HTTP error occurred. HTTP Result Code: 200 Debugging information follows

I'm trying to use the Views Bulk Operations module for posting automated tweets to my twitter account. but when I execute the 'post to twitter' operation I get this error: An AJAX HTTP error ...
0
votes
0answers
32 views

How to show a confirmation form in a modal to delete one entity whilst adding/editing a different entity/node?

I have entity 1 (E1), the main entity, in which entity 2 (E2) can be used/edited/deleted. I would like to be able to show a confirm_form after choosing to delete E2 in a modal whilst creating/editing ...
0
votes
1answer
50 views

Use AJAX on a form with multiple buttons

I have a form that has two text areas and three buttons, "Copy", "Reverse" and "Clear". I would like the buttons to, respectively, copy the text from one text area to the other, take the text from the ...
0
votes
1answer
32 views

AJAX change field is required

I have simple form, two fields one is checkbox and second is text. When checkbox is checked. Text field is required, and when checkbox is unchecked textfield shouldn't be required... To perform this ...
0
votes
1answer
14 views

How to render ctools_custom_content_type_edit_form with ctools_modal_form_wrapper()

I have a scenario where I would like to reload/re-render the ctools_custom_content_type_edit_form after closing another ctools modal. To do so, I've bound an ajax object to the .close element within ...
0
votes
2answers
24 views

Ajax error and weird white space when connected

When connected in Drupal (the problem does NOT happen when logged out), I see a strange � character. The character seem to break Ajax calls all over the admin (I get an alert, with code 200, and the ...
0
votes
1answer
40 views

Drupal hide form items completely with states

I try to hide a whole date/image/taxonomy block on my node form dependent on a checkbox. If use the following for my title field it works perfectly. The title field is hidden/visible dependant on the ...
0
votes
1answer
29 views

Drupal 7 add ajax listener directly to node form

I'm trying to register an ajax listener to a checkbox on one of my standard node forms. I want to display certain regions of the form only in case, the field is checked. I can get the drupal ajax ...
1
vote
1answer
39 views

Commerce checkout does not work when loading from AJAX

In D7, I have a dropdown form field that has an #ajax attribute pointing to a callback function that triggers when the drop down value is selected. In the callback function, I load the current ...
3
votes
1answer
64 views

How to preserve form values for user who navigates out of form and back?

I have a form that works, essentially, as a search / filter: foreach($search_properties as $property) { $form['properties'][$property->idProperty] = array( '#title' => ...
0
votes
0answers
28 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
12 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
13 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
33 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 ...
0
votes
1answer
94 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
15 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
12 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
37 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
33 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
73 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
117 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
79 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
30 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
48 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
107 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
138 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 ...