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

CSS not working after Commerce AJAX processed on field

I have got a problem with css after Drupal processes radio buttons on Drupal Commerce product page. Radio buttons are formatted (images instead of typical radio) Formatted radios After clicking ...
-3
votes
0answers
14 views

encription submission login issue with chrome [on hold]

jquery.jcryption.js Uncaught TypeError: Cannot read property 'jCryption' of undefined Uncaught TypeError: Cannot read property 'lib' of undefined. And also issue with when empty filed ...
0
votes
0answers
33 views

How do I get ajax callbacks from working example to execute in Views handlers?

I can't seem to get a callback function to execute in Drupal 7 Views 3 argument handler. All I want to do is have one displayed form element change when the user changes another. Simple. This ...
0
votes
0answers
49 views

Drupal behaviors has conflict with .load() jQuery method

I am using drupal behavior i need to reload a menu after any ajax request. i have a jQuery function to reload the menu by .load() method. menu items reload properly after any request. but when i ...
0
votes
1answer
19 views

Built-in AJAX versus custom AJAX

As the title suggests, I would to know what are the pro and cons of use Built-in ajax of drupal compared to a custom ajax code. I created 100 <li> with images on a page through a callback ...
0
votes
0answers
9 views

Drupal Commerce changing product attributes not firing AJAX update

I'm currently building an e-commerce website using Drupal 7 and Drupal Commerce (not kickstart). I've built my product display page, and added an attribute to the product called "size" where the ...
0
votes
0answers
13 views

AuthCache and Drupal Commerce Ajax Attributes change

I have an implementation of Drupal Commerce with many many field collections and other data on our products, colors, attributes etc. That makes the product object render around 7-10seconds, and I need ...
0
votes
0answers
30 views

How can I detect ajax request by drupal behaviours? [closed]

I need to create a 'full ajax' site. I used the Ajax Links API module to load the main content region. My issue is that my site has a menu block that shows categories (taxonomy) on every page. The ...
0
votes
1answer
18 views

How to validate file is selected or not on ajax processed drupal 7 jquery validation

Hi I am trying to do jquery validation on file upload for file is select or not. I want when user click on upload before submit check file is selected or not. if not stop ajax request. Any Idea to ...
1
vote
2answers
38 views

Attach an #ajax callback to a field when the form is reloading from previous ajax request

Is it possible to attach an #ajax callback to a field when the form is being regenerated from a previous ajax event (like a submit button)? What I tried Adding the #ajax callback to the field ...
0
votes
0answers
14 views

know the url path of a file loaded via file upload

I need to know in real time (with JavaScript) the destination URL of a file that I loaded via file upload in the page to create nodes. What I need to do is pass this URL to a jQuery plugin that load ...
0
votes
1answer
22 views

Registration form to be submitted via ajax [closed]

I want to submit drupal'S registration form to be submitted via ajax .How can I acomplish this???
0
votes
0answers
30 views

Do not fire ajax on blur on textfield when a button is clicked

I have a textfield with autocomplete, ajax on blur, and a search button next to it: $form['order']['keyword'] = array( '#title' => t('Keyword'), '#type' => 'textfield', '#prefix' ...
0
votes
1answer
28 views

Security concerns with cache_get() and cache_set()

are there any security concerns with Drupal's cache_set() and cache_get() functions? I mean, I receive some values through an Ajax-GET-request. Can I pass them to the two functions with the following ...
1
vote
1answer
21 views

Can jquery code be triggered by ajax success?

I know that I can add any code inside ajax success like this $.ajax({ type: 'GET', url: element.href, dataType: 'json', success: function (data) { //mycode And ...
0
votes
0answers
10 views

Drupal AJAX, pass values

Because I want to be able to position (absolute CSS positioning) fields from a View, I'm making a custom module to add two new fields to a view (from a custom table). The part for linking the custom ...
0
votes
0answers
7 views

How to use drupal form submit id in custom js which already uses ajax callback

My form uses ajax callback as submit on an event 'click'. And again I want to use that submit div class in my custom js file for the event click. How can I use it?
2
votes
0answers
19 views

Views Load More: Showing X number of item initially

I have a view which shows 6 items per page using Views Load More (Ajax). However what I would like to do is, on the very first page I would like to show 6 items and when clicked on Load More button it ...
0
votes
0answers
16 views

Hierarchical select list using AJAX on Address Field form not updating

I'm using a custom module with an Address Field plugin to pull Address Field fields from a web service. The first bit is working (pulling a towns list) but I want to have a hierarchical select list ...
0
votes
0answers
12 views

Checkboxes not rendering after changing options

I'm developing a module that alters the node submission form to accomplish the following: The user selects a value from an autocomplete field The user clicks a button (add_courses) that shows a set ...
0
votes
0answers
19 views

Using Ajax/JQuery to replace content in custom module in Drupal 6

I am relatively new to creating custom modules in Drupal 6. What I have is a page that displays some forms and a table. I am trying to implement a method to allow the user to enter data into the ...
0
votes
0answers
41 views

Assign values to dynamically generated textfield based on select option in custom form

In my below code i have dynamically generated fieldset. Each fieldset has select option field and textfield that are generated dynamically. Based on select option i want to fill textfield Eg. ...
1
vote
0answers
14 views

Invalid form POST data. Error

I have a node form which I placed in a block, and user need to login to submit the form. There is a login link in the form itself where user can login which I implement through ajax and its working ...
2
votes
2answers
58 views

View AJAX Refresh causing multiple refreshes

In attempting an AJAX refresh on several views contained in separate blocks on a single page, I seem to be coming across a problem. This is running on D7.34 The idea is for the page to contain 4 ...
0
votes
0answers
38 views

Ajax callbacks in a form retrieved by ajax

We have a list of themed nodes output on a page. Each node acts as an ajax callback to the edit form. The hook_menu definition for these links is: $items['rates/%/%'] = array( 'page callback' => ...
0
votes
1answer
54 views

Autofill texfields based on select option in dynamic fieldset

In my custom form i am dynamically generating multiple fieldsets.Each field set has select option(dropdownlist) and textfield generated dynamically. The value for textfield is dynamically generated ...
0
votes
0answers
11 views

Duplicate ids in submit elements when form loaded via ajax

I have a page that uses a form (form 1). A user interacts with the page and javascript loads a second form (form 2) as part of this. So now we have two forms on the page, in separate places in the ...
0
votes
1answer
42 views

Load view with ajax and contextual/exposed filters

I am trying to access content, that is provided via and can be filtered via a view. I want to load this content dynamically with Ajax. My problem now is, that I can access the view without problems ...
1
vote
1answer
24 views

Returning HTML through an ajax-call in Drupal 8

I am trying to grasp the MVC/Symphony integraton of Drupal and am making use of the controllers. My controller has a function named "returnHTML" which is called by a normal XMLHttpRequest. Problem is ...
-1
votes
0answers
23 views

Ajax works with some roles in drupal

I know the title isn't explicit but i have a problem with my ajax function and the differents roles in drupal. I created two function in my code and none is working when i used a normal role like ...
0
votes
2answers
39 views

Alter a field by select list in entity form

I have a problem with Ajax and some fields in my entity form. i have a select list in my form and when i change the selected option i wanna increment another field. To explain better, i can create ...
0
votes
0answers
12 views

execute separated views from a panel by user demand

I have a map and a table syncrhonized by the params that are sended on executing the context. All these 3 'elements' are in a Panel. Elements on table that are georeferenced will be plotted on the map ...
-1
votes
0answers
22 views

append new form with ajax_command_append

My task is to add multiple forms to a page, with a simple select. Eg: user selects an option in select and based on the selection, i need to add new form to the page. I wanted to do this with ...
-2
votes
0answers
14 views

Is there a module or package to allow Select2 on both entity reference fields and webform lists?

Is there an existing module, or specific process for implementing Select2 on all entity reference fields and all webform select lists?
0
votes
0answers
63 views

How to reindex $form_state values' deltas when deleting or unsetting one of the options?

In a module, I provide a form to the user to select a value from a select. The form allows multiple values and the form updates itself via ajax to provide always one more select field than selected ...
1
vote
0answers
27 views

Remember View results on a browser back button click

I have a view with some exposed filters that show some links. When I select a filter option, an ajax search is done and it shows the results. I click in one link and then I click in the browswer back ...
0
votes
1answer
55 views

ajax_deliver returns json instead of content

I have a panel with two columns. In the left is a views with teasers, in the right the full body text of a node. If you click on a link in the views the content in the right panel should be replaced ...
0
votes
1answer
33 views

Request an Ajax form through Ajax [solved]

I want to load a form through Ajax in a custom Javascript Event as it is explained in this tutorial. I receive the form, but its ajaxified behaviour is very strange. My Javascript: var address = ...
0
votes
1answer
39 views

Problems trapping AJAX'ed form input click event

Using Drupal 7.x w/ jQuery 1.4x, I'm trying to trap the click event when I click on a submit input of an AJAX form generated from this Commerce AJAX Cart module. In my custom.js behaviors file, I ...
0
votes
1answer
27 views

Image widget stopped working after core update [closed]

I recently did a long overdue update from 7.20 to 7.33. However, after I've made the update, the "Image" widget has stopped working when trying to edit content through the admin screen. I cannot add ...
0
votes
0answers
23 views

Drupal Ajax Form and Output Toggle

I want to a a block with data, say DATA One DATA Two Edit Data When I click button Edit Data, It should replace data with form fields, i-e Field One and Field Two, with a submit button, after ...
1
vote
0answers
18 views

Updating multiple elements in Form Ajax Callback [duplicate]

The Form In a Drupal Form I have (amongst other elements): Two select lists: Retailers, Products. One Table select: Selected Products. Two buttons: Add, Remove The Functionality I want: The ...
2
votes
4answers
383 views

Populate multiselect options onchange of dropdown using AJAX

I have created a content type (Geological Locations) with 2 fields, Country and States. The Country field is a select box, and States field is a multiselect. So if i select a Country, the States ...
0
votes
0answers
19 views

Implement a pager for my table and navigate into it in ajax

I'm looking for a way to implement a pager for my table knowing that I don't use a query and I can't use that kind of solutions: $query = db_select('node', 'n') ->condition('status', 1) ...
0
votes
0answers
20 views

how can i add record to db, and load the table records under the form in specific theme using ajax?

I need a form to add record in db. after the form has been submitted the new table content should be shown (in a specific theme) without refreshing the page so I need ajax submit but I don't know how ...
-1
votes
1answer
21 views

I have Created a form to upload images, where i should display error message if i upload more than 3 images and should disable submit button

I have Created a form to upload images, where i should display error message if i upload more than 3 images and should disable submit button to delete already uploaded image if i want to upload more ...
0
votes
0answers
6 views

Drupal7 ajax and wellfeeler_url_inbound_alter

I have a webform. On it I have a button this ajax. It saves some data into the db and refresh the page with new data. The problem is: When I use "wellfeeler_url_inbound_alter" to show this form on ...
0
votes
1answer
38 views

Where is my AJAX call going?

I'm very new to Drupal so I hope you'll forgive the silly question: where is the server-side code for my AJAX call? I've read the documentation on the Ajax Framework, but I can't find any instances ...
0
votes
1answer
54 views

ajax modified form drop down doesn't save

I have used form_alter to add a ajax callback to an element to my form. When the user chooses an option, it creates dropdown options for the other field. However, while this works fine for changing ...
0
votes
1answer
37 views

Drupal 7 ajax on webform

I have added a button to webform: $form['submitted']['some_placeholder']['own_btn'] = array( '#type' => 'button', '#value' => t('Add'), '#name' => 'ob_add_food', ...