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

Problem with Ajax and Drupal form

i try to use ajax in my form in drupal. i created a select list with some options. For the moment i just want to show a sentence with my choice in the list like "examples modules". The options item ...
0
votes
0answers
10 views

how simplier to create a taxonomy menu with ajax?

What could be a simple way using existing modules or methods to create a taxonomy menu handled with ajax working across all pages of my site ?
0
votes
0answers
5 views

better exposed filter as block with ajax

i have created a view with BEF and parameters use ajax yes Exposed form in block: Yes Exposed form style: Better Exposed Filters | BEF Settings :radio buttons The filters are tag names. The ...
0
votes
0answers
20 views

ajaxify content via a callback function

I am trying to ajaxify my site. I want the "Main page content" to be passed via an ajax-command to a custom js-function. To accomplish this I would do the following: I need to register a path for ...
0
votes
0answers
11 views

Tags field with Drupal forms ajax

I need to do a form with select list and textfield. After user changes his choice in select list, this option is adding to textfield. It should work like "Tags" field on this site. I wrecked my brain ...
0
votes
1answer
12 views

trigger event before content is parsed after ajax

I want to ajaxify my site. Everything, that is usally parsed as "Page Content" sould be opened in a lightbox. So the idea is to ajaxify every link and let #lightbox be filled with the result. but ...
0
votes
1answer
59 views

How to execute Drupal form without waiting? Ajax? Jquery?

I am trying to code one of my first Drupal modules and hitting this problem. I have a simple form in a custom module, that checks value of field_status and depending on if it is "down" or "up" ...
0
votes
0answers
16 views

Drupal 7 dynamically populating a select field depending on the prior field value

As stated above, I am attempting to dynamically populate a select field based on the selection in another. The first field is dynamically populated with view names, and the second will hold the ...
1
vote
1answer
16 views

jquery script on view not working when filtering with (ajax on) 'better_exposed_filters' module

i have a script for dealing with node images hover (function ($) { $(function(){ $('.node-photos-teaser').mouseenter(function() { $(this).addClass('photos-hover'); ...
0
votes
0answers
15 views

Can I apply more than one ajax callback to a field?

I have the following code in hook_form_alter() $form['field_sector']['und']['#ajax'] = array( 'event' => 'change', 'wrapper' => 'sub-sector-wrapper', 'callback' => ...
0
votes
0answers
5 views

Ajax Save with CKEditor module

Is it possible to add a button to CKEditor which would save content in the background, without leaving the editor and without reloading the page and then show a message to the user about the save ...
0
votes
0answers
5 views

Multiple Field , same ajax callback

I created a custom field. The hook_field_widget_form has an submit element with an ajax callback: //Add more $element['add_zone'] = array( '#type' => 'submit', '#name' => ...
0
votes
2answers
19 views

Drupal 7 controlled field

I have 2 content types [Content 1 - Content 2] and in the content type 2 form of node add i have field list of entity reference of content type 1, and i also have field in the content type 2 lets say ...
0
votes
0answers
13 views

lightbox2 doesn't display Drupal messages displayed via Ajax

I am using lightbox2 7.x-dev version with Commerce module. My commerce products are opening in lightbox using code below : <a rel="lightframe[group|scrolling: none;]" ...
0
votes
1answer
20 views

My ajax Drupal form shows up old values

I have developed and AJAX Drupal add form (textfield and button) using #ajax key and callback function, where I do my process and return my form new element. So when I starts adding my data form, it ...
0
votes
1answer
17 views

Putting multiple Add to cart links / buttons on a page

I'm writing a series of blog posts on my eCommerce site. For example, "10 easy breakfasts for the busy mom/dad". Under each "breakfast idea", I want to put a small block like "Items you'll need". This ...
0
votes
0answers
17 views

ajax error 200 in views and imce module

i am a newbie to drupal i am using my own custom theme i created a slider using view slideshow module after 1 or 2 days it started giving ajax error 200 i am not able to make any changes in views. ...
0
votes
1answer
24 views

The uploaded file likely exceeded the maximum file size (32 MB) that this server supports on remove image

In my taxonomy terms,when I try to edit a term I got this error : An unrecoverable error occurred. The uploaded file likely exceeded the maximum file size (32 MB) that this server supports. ...
0
votes
2answers
45 views

javascript does not work after form load through ajax

I am using field collection module for showing some fields with add more option using ajax built in functionality of field collections. in my field collection I have added some javascript on some of ...
0
votes
0answers
13 views

Ajax drop down change with multiple arguments/paramters

I have showroom list, in every row there is drop down list of vehicle, Example No -------- Showroom Name --------- Vehicle 1 --------- Showroom1 (id=30) ---- Below drop down 2 --------- Showroom1 ...
0
votes
0answers
34 views

AJAX callback removed form items

I'm trying to make a dependent AJAX dropdown form. I create a dynamic form and I render it. But when I do the callback function (chili_callback) and I dpm my form, the newly added form items are not ...
0
votes
0answers
15 views

hide form after ajax finishes

I use a simple form that returns results using ajax (drupal 7 views). I need the form to hide after it returns results - after hitting submit button, wait until ajax finishes. Is it possible to do ...
0
votes
1answer
30 views

Ajax field default value on edit form

I want ajax dependent fields in one of my node's form so I am altering the form. here is the code function mymodule_form_alter(&$form, &$form_state, $form_id) { $selected_first = ...
0
votes
0answers
8 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
38 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
20 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
17 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
1answer
24 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
75 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
30 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
14 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
9 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
11 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
46 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
1answer
88 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
34 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
34 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
40 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
32 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
45 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
35 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
41 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
24 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
0answers
35 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
65 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
35 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
18 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
25 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
43 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 ...