Ajax is a group of interrelated web development techniques used on the client-side to create asynchronous web applications.

learn more… | top users | synonyms

1
vote
1answer
61 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 ...
-1
votes
0answers
19 views

custom module to update product lists [on hold]

I would like to create a custom module that will be used to refresh page contains list products. That module have to update list of products in the page after new product is arrived in product ...
0
votes
1answer
26 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
9 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
39 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
47 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
0answers
26 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
29 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
43 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
19 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
28 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
23 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
27 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
32 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
21 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 ...
0
votes
1answer
29 views

Drupal 7 ajax calling steps [closed]

I would like to know how to create simple ajax call in my custom tpl file. For example in tpl file there is hyper link on clicking on this link display helloword below that link. Please provide ...
-2
votes
0answers
43 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
31 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
42 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
38 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
24 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
37 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
60 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
25 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
27 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
80 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
11 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
69 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
108 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
69 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
44 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
93 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
116 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
65 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
49 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
32 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
44 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
36 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
13 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 ...