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

colorbox +colorbox node Ajax error in IE [on hold]

I am using colorbox + colorbox node to display node content in overlay but when I tested the site in IE I get an AJAX error: An AJAX HTTP error occurred. HTTP Result Code: 404 Debugging ...
0
votes
0answers
11 views

ajax pagination with back button drupal view

I have one view of multimedia page in that i use ajax for pagination.view show result of multimedia image.when i click on image its go to inner content page. In inner content page there is back button ...
0
votes
0answers
7 views

How do I ensure that a 'no results' view block is still refreshed by Block Refresh

I have Block Refresh enabled on my site. It does a great job refreshing content blocks unless the original block load contains zero results. If a block is loaded without results, and a new node ...
1
vote
2answers
30 views

Changing file name on upload

I'm trying to automatically add prefixes to uploaded file names so they can later be processed by non-drupal scripts. I want to do that while the user is uploading files during creation/editing of a ...
0
votes
0answers
11 views

Ajax does not run for first time after redirect

I have a custom content type with few custom fields. I alter the form and add ajax replace callback. So when I type first field 'name' ajax replaces the next field with '$name($nid)'. That works nice. ...
1
vote
1answer
110 views

how to distingush multiple ajax submit in single ajax callback

I trying to do add more functionality for adding video urls which I am able to do by using Ajax callback.I am referring a drupal examples for it.It has one remove one button which removes last created ...
0
votes
1answer
15 views

Run callback after Views exposed filter AJAX

I feel like I'm doing something really wrong here. I have a View block which has an exposed filter. Since it is in a block I have to use Ajax. I'm trying to run some JS on the views result but can't ...
0
votes
0answers
13 views

Use AJAX to replace contextual element on response?

I have a MENU_CALLBACK defined. If the callback was processed via AJAX, I ensure an array of commands is returned like so: $commands = array(); $commands[] = ajax_command_replace('selector', ...
0
votes
0answers
23 views

Is there another module to auto refresh a page besides Views Auto-Refresh?

I am currently using the Auto-Refresh module to build an page that stays up-to-date, without needing to be reloaded. However, this module will not cooperate with Features. Is there another module or ...
-3
votes
0answers
17 views

Module for animation when link is clicked

If a user clicks ANY of the links on the drupal site I am setting up, I want to show animation before the transition to another node/page. Is there a module for this? Or would jquery work/how would I ...
0
votes
1answer
18 views

set ajax event in drupal 7

$form['name'] = array( '#type' => 'textfield', '#title' => t('Name'), '#size' => '27', '#inline' => 'true', '#required' => TRUE, ...
0
votes
0answers
17 views

Add custom classes to modal popup

I am using Ajax Login/Register module for Drupal 7 for creating modal popups for login and registration. I am using bootstrap theme as parent. I want to customize login and registration form ajax ...
0
votes
0answers
19 views

Custom theme for form checkboxes causes AJAX behaviors to not attach

I have the following code implemented to override the theming for the checkboxes in a Drupal form. //themes neighborhood checkboxes with AJAX link wrapper function ...
0
votes
0answers
7 views

How to print a link to the ajax-deliverable path created using hook_menu?

I have created a ajax-deliverable path using hook_menu(). Here is the code: function custom_module_menu() { $items = array(); $items['get_mempages'] = array( 'page callback' => ...
-2
votes
0answers
29 views

An AJAX HTTP error occurred. HTTP Result Code: 200 nodeque and views contentype

My site was working fine and before some days i am getting "An AJAX HTTP error occurred. HTTP Result Code: 200" error in nodeque, views, content type, i am not able to edit any view and even nodeque ...
0
votes
0answers
30 views

How to make ajax call in jquery in custom module form api drupal 7?

Background: I am using module manualcrop within custom module using form api, where user upload image ( with managed_file type ) and can crop it and save the form. I want to show a preview as soon as ...
0
votes
1answer
39 views

Ajax example dependent dropdown callback [duplicate]

I have two custom Drupal modules moduleA and moduleB. moduleA has all the functions for Ajax calls i.e. ajax_example_dependent_dropdown_callback and _ajax_example_get_second_dropdown_options. I ...
0
votes
0answers
25 views

How to pipe file uploads to subdomain?

I've got a Drupal 7 site on Apache and Varnish, sitting behind the CloudFlare CDN. Everythin on mysite.com goes through cloudflare... I also have a "direct access" subdomain set up at ...
0
votes
0answers
29 views

Unable to submit rendered field

I have a custom form with text field and a submit button. $form['bid_amount'] = array( '#type' => 'textfield', '#title' => t("Your Bid"), '#prefix' => '<div id="test-ajax">', ...
2
votes
1answer
27 views

Views - How to suppress ajax errors

I have a views page that is continually updated using views_autorefresh. My setup works fine except for the occasional error message: AJAX Request terminated abnormally This only happens if the ...
0
votes
0answers
5 views

Views_autorefresh - prevent updates from scrolling the page

I am using the autorefresh module to update my pages so that users do not have to reload pages manually. The refresh happens every few seconds. My problem is: Every time the page updates, the page ...
0
votes
0answers
33 views

ckeditor not loading on element generated via ajax call?

I am using custom form and generating form elements with ajax call but textformat is not loaded with ckeditor. Here is my code: function form_callback($form, $form_state){ $form['features'] = ...
0
votes
0answers
17 views

Views Auto-Refresh: is there a way to deactivate the ''Please Wait" message

I am building a live message tracker, and I am using 'Views Auto-Refresh" to update my list of messages every 5 seconds. My problem: every time the page updates, a "Please Wait" message appears above ...
0
votes
0answers
10 views

changes ajax base on node page

I have made a panel xyz page for i.e for products.which includes fields like cars name,multiple images,details,webform for contact seller,maps.when i click the ad on main page i.e on mysite/abc ...
0
votes
2answers
91 views

How to reload page after ajax form submit

I'm using FAPI #ajax to make the form more user friendly (it reloads in-place on validation). Works like a charm. However I would like to reload the page after form is submitted. How to that? ...
0
votes
0answers
33 views

Ajax error in ubercart checkout - please help!

I'm getting a massive ajax error when I click calculate shipping in ubercart. I cannot find anyone else experiencing this so I'm submitting the issue here. No other ajax issues on the site that I ...
1
vote
1answer
26 views

Keep custom theme when using AJAX submit

I am using the following code to switch to a custom theme based on the URL function job_agent_custom_theme() { if (arg(0) == 'vista') { return 'vista'; } } This works great and will switch ...
0
votes
1answer
32 views

Why page call back is not needed in Ajax jQuery Drupal 6?

function example_menu() { $items['example-menu'] = array( 'page callback' => 'get-result', 'access arguments' => array('access content'), 'type' => MENU_CALLBACK, ...
0
votes
1answer
36 views

Submit to external url via Ajax & get return

I need a Drupal form to submit a file to an external server using ajax. I have done the form using Form API and I am able to submit it via Ajax, But the Drupal throbber never stops and I am not able ...
0
votes
2answers
55 views

My javascript is making the drupal admin menu disappear. Not sure how though

Ok, so any time I try to view a page on my Drupal 7 site while I am using either drupal_add_js(drupal_get_path('module', 'floormap') . '/includes/javaScript.js'); or ...
1
vote
0answers
34 views

Disable form altering for admin pages on Bootstrap 3

My default theme is Bootstrap but I use Shiny theme as admin theme. Bootstrap theme alters the forms and fields. And I use Hierarchical Select module, there is a dropbox for multiselection and the ...
0
votes
0answers
102 views

Google Map will not show on new ajax page load

I have added a styled google map V3 to a block using full html this all works fine and displays on page refresh. I'm have trouble with the map loading after linking to another page in conjunction with ...
1
vote
1answer
27 views

Route AJAX failure messages to console instead of popup

How can I prevent ajax failure popups and instead route the failure to the console log instead? Is this something I can do with Drupals implementation of jQuery?
0
votes
0answers
26 views

How to use [#upload_validators] in drupal 7 [duplicate]

I want to validate my form ajax based through serverside custom code I am using that code in the below , but ['#upload_validators'] is not working in Drupal 7,please give me any refrence. function ...
-1
votes
1answer
19 views

Views AJAX not work in block node.tpl

i have some block with sorting exposed filter on region "tab" and i show his in node.tpl like this: print render(block_get_blocks_by_region('tab')); In my block i not have any problem with AJAX in ...
-1
votes
0answers
31 views

Button not using correct callback function inside form function

so I'm having a bit of a problem on my Drupal 7 site. I'm trying to build a form that goes through a 4 step process using Ajax. First the user selects one of two buttons, both of these buttons call ...
1
vote
0answers
28 views

Drupal 7 AJAX error when running batch with Internet Explorer

I'm getting an AJAX error when running any batch with Internet Explorer 8, 9 and 10. This error occures when I'm using "feeds" module, "views send" module or when I delete a user. For example, when ...
1
vote
2answers
22 views

How can I add form elements in custom form on click of link?

I want to add form elements inside my custom form when some body clicks on the link outside the form. Links are like : Add textfield Add selectlist When user click on any link it via ajax add an ...
-1
votes
1answer
25 views

How can I load a view inpage using AJAX when a node is flagged?

I have a view that gives the users the option to flag nodes. Below this view I need another view listing the results of flagged nodes to show up without the page needing a reload. My skills are ...
3
votes
3answers
74 views

How can I gracefully interrupt an AJAX callback?

I have a form element that triggers an AJAX callback call when it looses focus. This callback can take a few seconds, which generally is not an issue. If a user submits the form before the AJAX ...
0
votes
1answer
11 views

AJAX link error (form API)

I have an AJAX link and a callback function. The problem is that when I click the link an error is thrown. I have absolutely no idea where did I make an error, the debug information unfortunately ...
0
votes
1answer
21 views

Ajax ignoring my default_value

I have a drupal form that contains a select box. Next to the select box is a link that pops a ctools modal up with an inner form that adds a value to the database table that drives the original select ...
1
vote
1answer
31 views

Show drupal message with ajax flags

I bound an action to my flag to display a message on flagging. However because I am using AJAX flags the message is only displayed after I refresh the page. Is there any way to make the message ...
0
votes
0answers
33 views

Views Quicktabs format

I am using views with its format as "Quicktabs" and Node Hierarchy module. Child pages are displayed as tabs in the same parent page. Tabs are generated dynamically through child node content with its ...
0
votes
1answer
30 views

Value from ajaxified form field not passed to ajax callback

This is a continuation of this issue, where I couldn't get the ajax to fire on an entity reference field in a node edit form. With the following code, I'm able to get the ajax to fire. /** * ...
1
vote
1answer
59 views

Rebuild form AFTER ajax callback has run

I have a form with a button that when pressed re-builds a different part of the form via an ajax request. Upon clicking the button the form is rebuilt, then my ajax callback is called which saves the ...
0
votes
0answers
10 views

How to load and display views block using ajax with ajax pager

We have created views block with mini ajax pager. How we call this block using ajax?
0
votes
1answer
36 views

Creating page with hook_menu, updating content with AJAX every 10 seconds

After doing research I'm still not sure what's the best way to do the following: Create a page with hook_menu, generate the content with a callback Run that callback and update HTML with new content ...
2
votes
1answer
57 views

D7 form field #ajax callback not called on autocomplete field

I have an entity reference field, and I'd like to do some ajax so that when a value is selected for that field, some text is displayed in a div below the field. Since it's on a node edit form, I'm ...
0
votes
0answers
34 views

Accessing custom PHP script in Drupal 6

While trying to migrate a JavaScript / PHP Web Application to Drupal i came to the question how to access my custom php scripts in Drupal 6. I created a new module named "Configurator" in which the ...