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

learn more… | top users | synonyms (1)

0
votes
0answers
11 views

add custom error code in submitted ajax webform in drupal 7

hi i am trying to add add custom error msg in the field of submitted ajax webform in drupal 7 can anybody tell me how to do it
0
votes
1answer
28 views

Is there a callback for the managed_file form element, called on succesful upload?

Is there a Javascript/PHP callback for the managed_file form element that is invoked when the file is successfully uploaded? (I mean when the "Upload" button is clicked, not when the form is ...
0
votes
0answers
19 views

Add text box on

I'm trying to use AJAX to create another text box in a fieldgroup. I got it to work if I have a button, with a combination of 'submit' and ajax callback parameters. I'm trying to combine those two ...
1
vote
0answers
14 views

Populating a dropdown select list based on selection of a dropdown list in form alter

here is the code I have written in dynamic_form_alter if ($form_id == 'support_ticket_node_form') { $options_first = dynamic_add_options(); $value_dropdown_first = ...
0
votes
1answer
14 views

How to fix this error in drupal: ajax: ajax.form.ajaxSubmit is not a function

I am creating a form with ajax submission in my drupal custom form module when i click my submit button i got the following error:"ajax: ajax.form.ajaxSubmit is not a function". I am searching some ...
0
votes
0answers
17 views

Disable webform_ajax_page on the submission edit page

With the module Webform Ajax Page I want to disable it on submission edit form in the admin section... Is that possible ? and how to achieve that? Thanks
2
votes
1answer
30 views

How to omit form's validation at AJAX button click?

I have an AJAX button that should update form fields according to data already provided by user: 'ajax_button' => array( '#type' => 'button', '#value' => t("Scan for tags"), ...
0
votes
1answer
19 views

Re display captcha on form error in ajax form submit

I have a fancybox form and the form is sent via Ajax. I know that there is the error about "reuse attack" for captcha, but this is not my case. When I wrong the form (some required fields missing) I ...
0
votes
1answer
38 views

Simple dialog module and custom JavaScript not working properly. Ready function called multiple times on click

I am using the following code to convert unoredered html list into a select drop down list: jQuery(document).ready( function($) { //build dropdown - main navigation $("<select ...
0
votes
0answers
13 views

Trouble with jQuery handler function for #ajax response

I want to handle the #ajax response myself, but I'm having trouble intercepting the response before Drupal gets to it. I stole this approach from #ajax response handler function and though I love the ...
2
votes
0answers
37 views

Ajax error while creating views

views are created successfully, now i am not allowed to make change any changes to the view neither i am able to add fields apply filters. Any action i do on the view i am getting a alert message as ...
0
votes
1answer
21 views

How to override Drupal.ajax.prototype.beforeSend?

I need to add my own little if's and checks in 3 functions inside misc/ajax.js ( Drupal.ajax.prototype.beforeSend, Drupal.ajax.prototype.success, Drupal.ajax.prototype.error ) How can I ...
1
vote
1answer
35 views

Using Ajax-Callback with ajax_command_invoke to invoke custom jQuery command

I have a button on a form that when clicked adds an additional subsection to the form via ajax. Now I need to make it so the form automatically scrolls to the start of the newly added content. I ...
2
votes
1answer
29 views

How to NOT turn element read only when waiting for '#ajax' callback in Drupal 7 forms?

I need a simple '#type' => 'textfield' field. When user types in it, I want to update other section of my form. Just more elaborate version of built-in autocomplete field, really. So I added: ...
0
votes
1answer
19 views

Why is the AJAX replaced drop-down list value not being submitted?

I have an AJAX method for when a value is selected from the source drop-down list the target drop-down gets replaced with new values. The problem is that the new replaced drop-down list selected value ...
0
votes
2answers
19 views

ajax update seperate page when a button is clicked on a popup

I created a content type that is used to display a list of videos hosted on brightcove. I have a module that is setting a cookie for the anonymous user when they watch one. I created a module that ...
0
votes
0answers
34 views

Drupal 7 After adding a node using AJAX return node edit form

I have a node add form in a overlay, that is submitted using AJAX. Is there any way to return node edit form as ajax response once you add the node?. I have tried with drupal_build_form in the ...
0
votes
1answer
40 views

jQuery is not working for inserting data

I want to save data from a textbox on a button click. I am using jQuery AJAX for this task. Please note that I made this tags inside theme function. function theme_user_post_block($vars) { ...
0
votes
1answer
16 views

Trigger 'Add another term' using javascript

Is there any way to simulate the click event of 'Add another term' using javascript? I tried like this jQuery('#edit-field-attribute-und-add-more').trigger('click'); but no effect
0
votes
0answers
21 views

Use Privatemsg admin form in theme (Missing functions!)

I've exposed the privatemsg_list_view() form in my site theme with a bit of work and it's displaying well. However, updating message statuses or trying to delete bulk messages results in a sad error: ...
1
vote
0answers
54 views

Add fields dynamically using javascript or triggerring add field dynamically

I have a content type called article. I have added a field called attribute which can have unlimited values. At present there is an 'Add another term' button present in the add/edit node page to add ...
2
votes
0answers
24 views

How to test AJAX Callback with simpletest on Drupal 6

I know there is drupalPostAJAX() available on Drupal 7 to do this, but I want to use it on Drupal 6. So I found on this link : http://tiger-fish.com/blog/drupal-6-posting-ajax-callbacks-simpletest a ...
0
votes
0answers
12 views

Calling ajax after keypress

I would like to set up a search suggestion feature on a form. The search I'm doing is not related to Drupal's built in search feature. I've looked at the ajax functionality of the form api, but ...
0
votes
1answer
20 views

Setting a validation error via ajax

I am using the formapi to create a form. On one of my fields I have an #ajax call. When the field is changed I call the function. I recreate the form and then replace the whole form on the page. This ...
0
votes
1answer
25 views

hook_menu not available for ajax loaded links

I'm loading a datatable and its data into a panel, through ajax. Below is the link which can add the row(entry) to favorites. When I click the link, the jquery animation is executed properly but the ...
0
votes
1answer
42 views

How to change checkboxes options with ajax callback

I'm sorry if this is repeated somewhere, but I really did try to look and couldn't come up with anything. My scenario: I have a form, and within that form I have a div/wrapper, with two elements in ...
2
votes
1answer
47 views

Does using Drupal.ajax() offer any benefits over jQuery.ajax()?

I'm updating a node's references (list of them - rendered entities) manually with AJAX and experiencing performance problems. $.ajax() is used to call a view rendered with the simplest page.tpl.php ...
0
votes
1answer
40 views

jQuery gallery with imageFUpload

here's the code of kartinkin.php file: <?php $node = node_load(707); node_view($node); //$index = $_GET['index']; //dpm($node); ?> <script type="text/javascript"> ...
2
votes
0answers
29 views

Drupal ajax calls do endless redirect

After moving my drupal installation to another domain (and server) ajax calls end up beeing redirected from the login-page to the target and back until the timeout is reached. Why the target ...
1
vote
0answers
35 views

Ajax callback with db_select in tableselect (Drupal 7)

I have some problem with ajax callback. After add a description by Upload button to database I try to dinamically show this result in tableselect, but db_select isn't refresh after callback. Anybody ...
3
votes
1answer
22 views

How to secure ajax on automatically save field data

My custom module make ajax request on _node_edit form after input changed by user, and menu callback save this field's data (only this field, not all node object). Menu item is as ...
0
votes
2answers
44 views

$base_path is not added to AJAX URL request in login form

I have a D7 site in a subfolder, and would like for AJAX requests to find the correct docroot folder. When trying to login from localhost/mysite/user, AJAX sends a request to localhost/system/ajax. ...
0
votes
0answers
22 views

Ajax ready event for select field in form

I have a form that has an "item list" select field which lists all items in my database. Basically, I can just do $item_list = array( // ... // Obtained list from database // Let's say I have ...
1
vote
1answer
20 views

Validation error on term-reference field when ajax'd option is submitted?

I get the error "Illegal choice" when I submit a form with a multi-select option that was freshly created via ajax. Workflow is like this: User loads node edit form User needs to select a ...
2
votes
1answer
52 views

jQuery effects with exposed filters

I am trying to produce a view with exposed filters, where: The options are listed as text links, like a menu The page automatically updates when a link is clicked jQuery effects appear to seamlessly ...
0
votes
1answer
53 views

How to open jquery dialog on menu click

I would like to open a jquery dialog that asks a question before taking the user to the desired page (ie do some page set-up before they get there). The catch here is that I would like to open the ...
0
votes
1answer
38 views

Empty response after a callback in form_alter

I am trying to add a new field in a preexistent form and invoke a callback. The response of the callback is alway an error with an empty response: An AJAX HTTP error occurred. HTTP Result Code: ...
0
votes
1answer
30 views

Drupal 7 skip loading the template for ajax requests

I am trying to upload an image in my template page, using jquery ajax-form submit. And i am returning just the image name after it is uploaded in the module function. However, i am getting the entire ...
2
votes
2answers
44 views

arg(1) changed when doing ajax in hook_form

I created a custom module named my_module. In hook_menu() I define the following path. $items['my-module/item'] = array( 'title' => 'Item', 'page callback' => 'drupal_get_form', 'page ...
0
votes
1answer
20 views

How to get rid of error messages after second try where file was uploaded successfully?

My question is similar to: http://stackoverflow.com/questions/9676988/in-drupal-7-errors-for-file-managed-field-remain-even-when-fixed Why error message from my custom file validator remains the ...
1
vote
1answer
37 views

Drupal 7 views admin redirecting to json returned after changing jquery version

I have installed the seven theme on the admin side and blocks theme on the user side... after getting alot of errors from multiple files adding jquery library, i have removed the extra files and ...
1
vote
1answer
84 views

Button with Drupal Behavior jQuery Conflicting with AJAX 'Add More' Button on Unlimited Cardinality Field

I have a form with an unlimited cardinality field that creates an 'Add more' button to add more fields. I also have a separate pair of fields. One of these fields has a value prepopulated on starting ...
0
votes
0answers
36 views

Ajax call not working until page refresh

When I just logged in this ajax request not working. When I hit refresh (F5) in my browser, then works well on all pages, and see in firebug call to /js/my-callback/. History repeats if I logout, ...
-1
votes
0answers
31 views

Dynamically adding/removing fields to a form

I want to add some logic to my form and depending on the logic I wish different fields to appear. I know I can use state to hide fields using JavaScript but I am trying to use ajax and build the form ...
0
votes
0answers
16 views

Determing what's missing for Ajax behavior

I'm currently on a Drupal project handed to me, and apart from being a Drupal rookie, I have not that many clues where everything's lying. One on the things I was supposed to fix was that Add to Cart ...
0
votes
0answers
22 views

AJAX requests cause multi-nested response data output

We have Drupal 7. An AJAX request causes deeply nested divs like this screenshot: ( We experience phenomenum #2 from this Drupal 8 issue: View output gets deeply nested in blank divs. This could ...
1
vote
1answer
37 views

How to rediret to specific page depends upon user roles

I have 2 user roles. When a user logs in, I want to redirect the user to a specific page based on their role. I tried the Login_destination module, but it has not worked for me. I have also tried ...
0
votes
0answers
14 views

Image captch is not reloaded when user enter wrong captch

So in my project contact us form is there . In that I used image captch. But problem is there when user insert wrong captch then ajax throw error message but after that image captcha is not reloaded. ...
0
votes
1answer
38 views

CSS not work after ajax replace

I found when I replace forms with AJAX ,then the forms turn to be disordered,as the css for the forms are not working any more. How to solve this issue? Do i have to write js bind with .on() function ...
0
votes
0answers
23 views

add ajax to select filed of node add,but no values of the filed in form['status']['values']

I have a node type with field:Budget Items field_budget_items Entity Reference Select list. and I want add ajax when value change. so the code is : function ...

1 2 3 4 5 14