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

learn more… | top users | synonyms

-3
votes
0answers
19 views

Php Website Design Help [on hold]

Hello I am A beginner of creating website.. How to put the page not using Frame Please Help me some sources For ex. If I click the product1 , It should the page of the product1 will be on the box. ...
0
votes
1answer
13 views

Change URL on ajax link

I've got a custom AJAX link on my site, which does it's current job fine, but what I'd like to do is make it change the href attribute of an element on the page as well. I'm not brilliant at jQuery, ...
0
votes
1answer
18 views

Immediately check if field content already exists in a node form

I am struggling with a problem which I thought might be answered simply... Any help would be appreciated! I have a content type called 'review'. Each review has a field called 'location'. As a user ...
0
votes
0answers
15 views

DRUPAL 6 Dependent Drop Down?

i need to create dependent drop down like, if i select drop down one then automatically load related list in second list through ajax call, using change event. But there is option in drupal 7 like ...
0
votes
0answers
16 views

dropdown ajax field not save fileds on databasse

I am trying to create my own module and I'm having trouble saving information in the database. in fact, the values are stored in the database, but the first value of the array (String) (violin) If I ...
2
votes
1answer
35 views

What is wrong with my JQuery UI datepicker option code?

I have an AJAX view using Views 3 and Better Exposed Filters (and therefore jQuery UI datepicker). One of the exposed filters is dates between [post-date] (core). The form works fine, but when dates ...
1
vote
0answers
29 views

How to populate a managed file field with ajax

Problem I have a large form with a select field tied to an ajax call. When an option is selected a large chunk of the form is rebuilt and a number of fields re-populate. All the fields pre-populate ...
1
vote
0answers
15 views

Programmatically loaded taxonomy form ajax errors

I load a taxonomy term in the edit form via the following code: module_load_include ( 'inc', 'taxonomy', 'taxonomy.admin' ); $vocabulary = taxonomy_term_load ( $tid ); $form = drupal_get_form ( ...
1
vote
2answers
65 views

How do other modules update elements using AJAX callbacks?

I have a block, of which I want to update the contents via AJAX. So the block is: $block['subject'] = t('My Block'); $block['content'] = '<div id="block_wrapper"></div>'; And the form ...
0
votes
0answers
11 views

when theming exposed filter in view template .. ajax not working

when I try to put my view exposed filter inside a div in view template .. filter ajax stop working: the original code: <?php if ($exposed): ?> <div class="view-filters"> <?php print ...
0
votes
0answers
33 views

AJAX HTTP Error (Code 500) occured, while editing Panel Content [closed]

In Drupal (7.38-dev) I am trying to edit content of Panel page. But each time I click on edit, I get this error. Please see attache screenshot for reference. This error is not specific for one page, ...
0
votes
0answers
9 views

The array $form_state undefined with ajax

Why when I submit form generated with ajax, the array $form_state is undefined? this is a part of module: 1) $form['#tree'] = TRUE; $form['addTel'] = array( '#type' => 'submit', ...
3
votes
1answer
23 views

Grab Data from non form elements and send as POST using AJAX

I am looking for an alternative solution to the way my form is being submitted right now. The problem is that the validation function does not work because I gave the submit button on the form an ...
0
votes
0answers
27 views

Remove button field of a field generated by AJAX

This is my custom Drupal module. I have a form containing text fields, each with a button to remove the field from the form. The problem is that the remove button always removes the last field, ...
0
votes
0answers
10 views

In module, callback data to jquery not received correctly

I have a custom module with a callback to some jquery (trying to refresh content of a block created via the module). I can get the jquery to be activated, but it does not seem to receive the data that ...
1
vote
1answer
22 views

Integrating external web application in Drupal

I have an existing web application written in Flask. I want to create a Drupal site that integrates this existing web application, so that the existing webapp will just be a back end, and the Drupal ...
1
vote
1answer
41 views

how to have conditional Help text for a listbox field [closed]

Remember the create password page of Drupal! While you are entering characters it tells you how strong your password is! Now I want to have something like this in a list box but a bit different. I ...
1
vote
2answers
28 views

Get Div's Text in Drupal Forms API

I have this code below: $form['id']['mypreview_modal'] = array( '#type' => 'item', '#markup' => '<div id="mypreview_modal" title="ID Preview">12345</div>' ); ...
0
votes
0answers
9 views

#states not detecting a change to form via ajax_command_invoke

I have a form. On an elements I have an ajax call back. In the callback I use the commands[] to update some elements on the screen. One of the elements I update is used by another form element using ...
0
votes
2answers
38 views

Add to cart form AJAX not working when loading a Drupal Commerce product display via AJAX

I am trying to create "quick buy" functionality. I have a product listing and a customer is able to click on "quick buy" for that product and then I want to be able to load up a view mode for that ...
0
votes
0answers
13 views

Views ajax update

I'm sure I've seen a response to this kind of question on here but I just can't seem to find it with any amount of searching Basically what I want to do is the same sort of thing exposed filters do, ...
0
votes
0answers
8 views

AJAX not working in view; giving weird Query variables in View Page

For some reason, AJAX within my view is not working. I have tried every possible way but it just doesn't work. I have also tried disabling JQuery Update module. I am using Pager for my view results, ...
0
votes
0answers
22 views

Anonymous users request to enter email to download files [duplicate]

I have a question that i thought originally i would able to answer myself. I have a site that show some pdf help files. The files is open to anyone so they can download freely. The question is how i ...
0
votes
0answers
44 views

Change form_state values with custom ajax call but without #ajax commands (fapi)?

(Sorry for my bad English) I’m building multi steps form with help of FAPI in front-end section. In the final step of my form I want use some third party js libraries for few task (like uploading ...
0
votes
0answers
24 views

How to add a text field to views exposed filter results?

I have a view that shows prices for different activities. Each price is a content type called Activity. On the content type, they choose the activity from a select list, enter the price and save. The ...
0
votes
0answers
26 views

Validation loses ajax form changes

I have a custom form. On an element on the form I have an ajax callback: $form['test'] = array( '#type' => 'textfield', '#title' => t('test'), '#ajax' => array( ...
0
votes
2answers
51 views

406 error on ajax calls in Drupal 8

Yesterday I upgraded from drupal 8 beta 3 to beta 10. I noticed all my ajax calls are now getting error 406 (Not acceptable). This is my route: switch_customer.user: path: ...
0
votes
1answer
39 views

Ajax Callback Function in Submit Button Doesnt Work

I have a submit button in my form and I want to implement it using ajax: function myid_user_page_form(){ drupal_add_library('system', 'drupal.ajax'); $form = array(); $form['id'] = ...
0
votes
2answers
29 views

Call a Javascript Function and Update my Form Element at the same time

This is my ajax callback function function myid_search_idnumber($form, $form_state) { return $form['id']; } It updates the values in $form['id']. But Because I wanted to call a javascript ...
1
vote
1answer
20 views

Can you get the itok value programmatically?

I appreciate the 7.20 security measure that requires a itok parameter for generating new images, but I need to expose that to Services / AJAX driven projects. Can you get the image token ...
0
votes
2answers
47 views

Reloading option in a select list with ajax

So here is my problem: I have a form so users can create orders. There is a 'Client' select list where they can select the client of the order. When we select a client, we use ajax to load client ...
1
vote
1answer
32 views

Send email when a user has finished watching something

A user watched a video (added listening event to id of video via jwplayer), and a person is notified of said user finishing the video. jwplayer('some-id-of-video').onComplete( function() { //$.ajax ...
0
votes
0answers
16 views

AJAX Errors on Scald-enabled CKEditor

I have a Scald-enabled CKEditor text field. Most of the time it's working fine – I can drag and drop images and change the context – all fine. When dragging and dropping files however I sometimes get ...
1
vote
1answer
17 views

Textfield Ajax Callback Function Conflict

I have 4 elements in my form: 2 text field and two search buttons. Below is an image: Code: function myid_print_user_page_form($form, $form_state) { $form = array(); ...
2
votes
1answer
35 views

Display term description below a field widget based on the selected option on node edit form

I am trying to show a block (or the term description) on the node edit form when a user selects the term. An example: User is creating a node with a "location" vocabulary. They select their state ...
0
votes
0answers
22 views

Collapsible Panels and ajax loading

I've been looking around for some solution on how to do something with my panel dashboard. Let me explain: I have a dashboard available for some company manager where they can manage the events ...
0
votes
1answer
16 views

What's the class or id of the autocomplete suggestions pane?

I'm doing a form with a fairly standard autocomplete_path textfield, like: $form['the_field'] = array( '#title' => t('A title'), '#type' => 'textfield', '#autocomplete_path' => ...
1
vote
1answer
41 views

Checkbox to make billing information same as shipping information does not work for Anonymous users

For Anonymous users, the My Shipping information is the same as my Billing information checkbox doesn't reload the Shipping Information checkout pane. I have the checkbox working for authenticated ...
0
votes
0answers
16 views

Detect if user presses the “Enter” Key in a Textfield using Drupal Forms API

I have a simple form with a textfield and a div element: function main_form() { $form = array(); $form['textfield'] = array( '#type' => 'textfield', ...
1
vote
0answers
22 views

Can't remove article image, AJAX error from ckeditor

When trying to remove an article image, i get the following error. Can anyone help me with this? "An AJAX HTTP request terminated abnormally. Debugging information follows. Path: ...
1
vote
1answer
10 views

Using placeholders in watchdog function

I know this is simple. I have a callback function callback below: function callback($id = '121-01927'){ watchdog('print', '%message : Sample',array('%message' => $id), WATCHDOG_DEBUG, $link = ...
0
votes
0answers
17 views

How to pass an argument in a callback function generated by an ajaxified link?

I have an ajax link in my form element: $form['print']= array( '#type' => 'item', '#markup' => l(t($record_uid), 'admin/callback', array('attributes' => array('class' ...
1
vote
0answers
10 views

Multiple Ajax Webforms on One Page

I'm building a site with two webforms on one page, both with AJAX enabled. While the first form works perfectly fine, the second page refreshes after submission (it doesn't refresh if there's an error ...
1
vote
2answers
19 views

Access Denied when Menu CallBack Function is Called

I am trying to call a function after the user clicks on an ajaxified link below. $form['link'] = array( '#type' => 'item', '#markup' => ...
1
vote
0answers
30 views

Drupal form #ajax callback and javascript toggleClass on radio buttons - reduced functionality

we're using drupal and I have setup an ajax callback on a form item. The form item is a radio button with two options on/off. also attached to the radio button is some js to toggle a class. The class ...
1
vote
1answer
46 views

AJAX in Form API element returned in another AJAX callback

I have a form like this: $form['my_button'] = array( '#type' => 'button', '#ajax' => array( 'callback' => 'my_callback_1', 'wrapper' => 'some_wrapper', ) ); Which works ...
1
vote
1answer
43 views

Getting AJAX 200 error when view with custom exposed filter has no results

[Edit 3: this turned out to be one of those phantom views problems (*) - after messing around w/ a test view cobbled together to use the custom filter, etc., etc., I ended up simply cloning the ...
0
votes
1answer
26 views

Is it possible to trigger an Ajax CallBack Function After a Link is Click

I have a simple link in my form. $form['myid_print']['myid_print_search_idnumber_wrapper'] = array( '#type' => 'item', '#markup' => '<a>Im a link....</a>', ...
0
votes
1answer
29 views

Is there a way to implement drag and drop for image upload in drupal 7

I amn looking for a way to inplement drag and drop image upload for the profile image field and serveral other image fields as well for drupal 7 is there a module that is easy to use or an easy way ...
0
votes
1answer
37 views

Get values from ajax replaced text field in a form

On a edit page I added a form so the user can select what he wants to edit. With that info I used ajax to show the info which belongs to that item. But when submitting the form it isn't taking the ...