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
1answer
11 views

How to keep modal open after form submission?

I use Bootstrap theme for D7 site. On a front page I have a simple form which can be filled by anonymous user. When user submits form he is forced to register to move forward. I saved ...
0
votes
2answers
28 views

Ajax replaced elements not available in form submit callback

I have some elements in a form as below: $form['provider'] = array( '#type' => 'select', '#title' => t('Provider'), '#required' => TRUE, '#options' => $some_options, ...
0
votes
1answer
20 views

How to add JS Confirmation popup when clicking an #AJAX button in custom module?

$form['button4'] = array( '#value' => 'RESET', '#type' => 'submit', '#submit' => array('form_test_form_button4'), '#ajax' => array( 'callback' => ...
0
votes
1answer
18 views

How to prevent page reload when switching between calendar view displays?

I created a Calendar view, and I put yes on the setting "use Ajax" This setting works only for next and previous buttons. I would like to have the page doesn't reload while the user switches between ...
1
vote
1answer
27 views

Nested ajax calls to a Drupal website

I've been making this cordova app against this casting agency website, and I've come across this nasty situation where I need to list each user's created nodes. For this purpose, I have created a view ...
0
votes
0answers
26 views

How to replace one url link by another url link in drupal? [on hold]

I have created a link using l function. l("my_link",'/admin/abc/def/'.$cid); Now What I want is when I click "my_link" , this string gets replaced by "replace" string and call some another url say ...
0
votes
0answers
23 views

Is there any better approach for using ajax to fetch data in drupal 7 on some event? [closed]

I have build some notification system for logged-in users in Drupal 7 , like some one comment on their node, some one voted on their node, revision of node is made. Instantly on one of above events ...
0
votes
2answers
16 views

Retrieve argument in hook_menu() item url

On my custom module, I defined the following hook_menu() function. function motel_events_menu() { $items['ajax/pastevents/%'] = array( 'title' => 'Get Past Events', 'page ...
0
votes
0answers
31 views

Infinite Scroll on Drupal 7 with AJAX

I am trying to create an Infinite Scroll system to display past events on a page. What I want is, when the top of the page is reached, I want to load past events. I created the following JQuery: ...
0
votes
0answers
13 views

Can I call specific fields and field groups in a node.tpl using Ajax

I'm building a fairly large content type and some of what's in there doesn't need to be loaded until the user asks for it. Is it possible to not load certain fields and field groups in the content ...
0
votes
1answer
18 views

JSON Menu Link Without Invoking Init Hooks?

Our Drupal site utilizes a number of menu hooks to return JSON from an API we manage in a separate Web API. We also have a number of intensive tasks that happen on each page load via the hooks_init in ...
0
votes
0answers
15 views

AJAX HTTP error occurred while updgrading Drupal to version 7

I upgrade my Drupal 6 to Drupal 7. At the last step, I opy all the Drupal 7 files into my main directory. While I run update.php, at the run update step. The following error appear. An ...
1
vote
0answers
14 views

3 Way Content Filtering With Taxonomy and Content Type

I have one taxonomy named "Project Parameters" with hierarchical select and another taxonomy names "Project Sub Parameters" with hierarchical select. I Want to filter the content with those ...
0
votes
1answer
28 views

Drupal form disable form error message or use ajax validate instead of #require

I have a complex form. Which will let users to select some drop-down items to add a food diary record. Currently, I'm using this if (!form_get_errors()) {.....} to decide whether to insert new ...
1
vote
1answer
21 views

I want to save and view the node content in the same page without page refresh using content types

I have to create content type as CELL. CELL content type have some fields. I want to show the fields in the node create page. How to save the data without page refresh. How to view the saved ...
0
votes
0answers
15 views

Block view listing node using ajax, After clicking on link and page refresh not able to get the same paging [closed]

I have created a page having the block view listing on the left sidebar. This sidebar having the paging as well. Now using paging in views if I go to second or third paging listing and select a link ...
0
votes
0answers
13 views

How to force form_state['input'] to form_state['values']

I have a custom form that uses AJAX to add new fieldsets internal users can specify a default set of artists, e.g. 4, and send this to a record label/management etc. the rep can come to the form, ...
0
votes
1answer
37 views

How do I keep unique form id for ajaxified form?

I have a form(which is extending the FormBase class) that requires entity as argument(but I am not manipulating with this entity so that's why I am not using the EntityForm which is irrelevant to this ...
1
vote
1answer
45 views

How can I make form_alter work with Ajax Comments?

I did some manipulation (with JavaScript and CSS) on my comment form. It works good. Then I needed to install the Ajax Comments module because I don't want visitors to go another page while replying a ...
2
votes
2answers
173 views

Drupal site Phonegap application field collection

I'm in the process of making a Phonegap application to create nodes of a certain content type. The site I'm writing data to/getting data from utilises Field Collection module, and I've looked at the ...
0
votes
1answer
36 views

File field upload in modal/dialog

I have a custom content type with file field as one of the fields. For theming/UI purposes I should make this file field as clickable button. And only when user clicks on it, he/she gets modal window ...
0
votes
0answers
13 views

Autocomplete ajax callback with solr

I am trying to implement a custom autocomplete field (AJAX) which is fetching data from solr in drupal 7. It is taking 1.4s to show the result. Could anyone help me in reducing the callback time.
1
vote
1answer
36 views

FormAPI cannot get checkboxes return value from AJAX call via external database query

I have not been able to get the return #options value when using AJAX for a dependent checkbox after selecting a value from select. My AJAX isn't great, and I've searched all over, I'm hoping someone ...
1
vote
2answers
47 views

How to call view block on click?

I have a page/node that contains 15 view blocks, each view block has many fields and all of this causes the page to load really slow. How do I load the view block only when I need it? for example I ...
0
votes
1answer
62 views

Synchronous XMLHttpRequest on the main thread is deprecated error at the end of ajax call

I'm a developer on a freelancing site (the only one actually) and I'm trying to allow anonymous users to bid on a project too. For this reason, I have the following code to check whether the username ...
0
votes
0answers
17 views

How to use JS and browser's local storage to store ( on each page visit) the node' taxonomy term?

We are trying to create a way to write some JS to utilize a browser's local storage to store the node's taxonomy terms of all the Drupal pages a user visits. On top of that we want the JS code to be ...
1
vote
1answer
36 views

Drupal.behaviors function can't detect Views object when user is Anonymous

Goals: 1. have a button in a View that refreshes that View via AJAX on click event. 2. Load refresh script only on pages that have View named "my_view". I was able to achieve both of the following ...
0
votes
0answers
50 views

Ajax on node add/edit form causes missing values on submission

I'm using my theme's form_alter function to ajaxify a select dropdown field on my node add/edit form. When the ajax is triggered, my callback function enables/disables other elements on the form and ...
0
votes
1answer
32 views

How to reload Google chart on ajax submit?

I have a simple Drupal form. I am using hook_theme() to draw a chart right under my form. I am using Google chart API. When the page loads first time, my chart appears with no problems. But when I ...
1
vote
2answers
50 views

How to alter default ajax_view default ScrollTop?

In ajax_view.js, the code responsible of smooth Ajax View ScrollTop when changing the exposed filters is the following : Drupal.ajax.prototype.commands.viewsScrollTop = function (ajax, response, ...
0
votes
0answers
22 views

ctools with panels colon issue IIS

When using Panels module I have noticed that one of the ajax calls is creating an url with colon inside : For Example : dev-www.redbusbingo.com/panels/ajax/editor/select-content/panel_c %3A = : ...
0
votes
0answers
15 views

Drupal ajax nav with friendly URLS

Im stuck on this... :-/ heres the problems im facing: The site navigation links should be in the form of: url.com/final-page I've managed to build out a ajax navigation module using a few ...
0
votes
0answers
7 views

ajax_deliver and Advanced Form Blocks issue

I am new to AJAX framework in drupal 7. Scenario: I have two content types (Type-A and Type-B). I am displaying node add form of Type-B on Type-A edit form using Advanced Form Blocks module. There ...
0
votes
1answer
20 views

Table Pager Rendered in an Ajax Callback Shows White Page

I have the callback function below that renders a table with a pager. Every page of the table is 20 rows. Below is the code: function myid_print_all_submitted_id_callback($form, &$form_state){ ...
0
votes
1answer
42 views

An AJAX HTTP error occurred. HTTP Result Code: 500 [closed]

Everytime I try to edit content on one of my panels I get the following error message. An AJAX HTTP error occurred. HTTP Result Code: 500 Debugging information follows. Path: ...
1
vote
1answer
28 views

Ajaxly set Text Field Value with Drupal Forms API

I have a text field and a ajaxified link in my form: $form['id_number'] = array( '#title' => t('ID Number'), '#type' => 'textfield', //textfield '#suffix' => ...
2
votes
1answer
41 views

How to add javascript after form was validated with ajax callback?

I created a simple form. How could I add JavaScript commands after form was validated? Why is it so hard do this? $form['submit'] = array( '#type' => 'submit', '#value' => 'submit', ...
0
votes
0answers
11 views

How to create tables for multiple fields in the “node add form” template

How do I create a table for fields in the "node add form" template as image below
0
votes
0answers
14 views

Drupal form ajax focusout

Why drupal does not fire focusout/blur unless I change the value on the textbox? I need to execute the callback no matter if the textbox it's empty.
0
votes
0answers
35 views

'#ajax' is not working with drupal_render(drupal_get_form())

I've a html form in a page. And also I've added another form at end of the form. My code should look like something below: $customer_details = array('name' => 'Guru'); $form['#suffix'] = '<div ...
0
votes
0answers
31 views

How to change event registration(attendance) form in hook_function()

I am working on event page with registration (attendance) form with drupal commons. How to change custom function for that attendance form in event page. My requirement is when user will need to ...
0
votes
1answer
43 views

TimePicker Rendered by an Ajax Callback Function Doesnt Show Up

I have a select form element that fires an ajax callback function everytime its value changes. $form['template_options'] = array( '#type' => 'select', '#options' => array( 1 ...
0
votes
1answer
19 views

Drupal Ajax breaks after one fire

This is a very frustrating and recurring problem for me because it seems to come and go at random, one minute it is working beautifully, the next moment I make a change and it breaks. Even if I ...
0
votes
1answer
17 views

Ajax pager failure in view after modifying view on hook_views_query_alter

The requirement is for different pages on the website to show different Twitter feeds according to the current page. There is a context (triggered according to the path) that inserts a view block into ...
0
votes
0answers
10 views

drupal ajax with customized event

Is it possible to have drupal ajax callback called on customized event ? I have tried the callback on input type button and submit but I want to expose this event submission in JS so would like a ...
0
votes
0answers
22 views

drupal ajax changes my fieldset to a copy of the incorrect fieldset

Hi I'm a newbie to drupal and I'm practicing using drupal 7 forms #ajax. I have 2 fieldsets the ingredient fieldset and the steps fieldset. when I click add step it works fine but when I click add ...
0
votes
0answers
34 views

Trace a “An AJAX HTTP error occurred. HTTP Result Code: 200” error [closed]

I get the error posted bellow everytime I try to manage a field display at 'admin/structure/types/manage/page/display' It was working fine until yesterday, I didn't enable nor disable any module. I ...
-1
votes
1answer
29 views

Drupal Multiupload Filefield Widget conflict with mutiselect ajax dropdown

I have created a multiupload field in my node using Multiupload Filefield Widget. I am using the code below to alter the default node form. There is an ajax based dependent dropdown field in the ...
0
votes
0answers
21 views

How to get page argument of hook_menu as a parameter in a form generated by ajax url request?

I have an url : abc/def/1/add. This url has some elements: title blah blah blah When I click "title", an ajax request gets generated which opens a form in dialog box.This hit is on another url. I ...
0
votes
0answers
19 views

how to trigger ajax on selected item in drupal ajax commands framework?

I am having form element of type "#select", I want, whenever I changed select list options, an event is called and call my function on that event change. for example: function ...