Ajax is a group of interrelated web development techniques used on the client-side to create asynchronous web applications.
0
votes
0answers
15 views
Drupal: $_POST and MENU_CALLBACK. How works?
I've read this and this but nothing is working for me I'd like to create a menu like this
$items['login'] = array(
'page callback' => 'mymodule_login',
'access arguments' => array('access ...
0
votes
0answers
24 views
Ajax Dependent Select List Taxonomy
I have dependent select lists in a webform where the select options are dynamically populated by parent/child taxonomy terms. (First select list is parents; second is children).
I've gotten both ...
0
votes
0answers
27 views
use-ajax newbie question [closed]
I would like to get the href of a link dynamically via Ajax. I've started with very easy examples but I think I'm missing some conceptual links, and here is where I would need your help.
I was ...
1
vote
1answer
26 views
How do I retrieve un-submitted values from a form and pass to another module?
I have created a custom module called trim_users. What the module does is to alter the (menu) page callback of the user references module to execute a modified (by me) function of the user references ...
0
votes
0answers
13 views
Drupal 7 taxonomy terms and custom views
I am developing an interactive map of the U.S. states.
A user can click on the states that are highlighted in blue to get a list of the properties in that state from a menu on the left. The user can ...
-1
votes
0answers
18 views
Drupal Ajax not loading the Content [closed]
I am using Mini Panels when I edit the existing content we can't edit the content (not loading the content in Ajax view) and same thing Content Analysis in Analyze content part not loading the content ...
0
votes
0answers
18 views
Changing a form value or input field value during the submit handler
I am trying to change the value of a text area field at the end of my submit handler. I have tried using form_set_value and $form['form_id']['#value'] = 'something'; to accomplish this but after ...
0
votes
1answer
22 views
webform save draft after each field update - ajax error for anonymous user
I wanted to save webform's draft after each field's update, and i did it with help of this post: Webform save draft after each field update .
But it is only working for logged in user, if i try it ...
1
vote
0answers
14 views
How to add HTML5 history.pushState() to ajax callback?
Somethink like this not working:
$commands[] = ajax_command_invoke(null, 'history.pushState', array(NULL, NULL, 'path'));
1
vote
1answer
32 views
Loading a form by ajax
I've been stucked on problem since two weeks.
Basically, what i'am trying to do is:
1) Create a page, in which there is an link ("Click me"),
When i click on it, a form is fetched from another page ...
1
vote
2answers
27 views
Perform custom Ajax on Views
My problem is quite complex here:
I have a view table with pager. However, I don't want the "items per page" to be a select list. I want it to look like links: 5 | 10 | 15 | all. My solution for now ...
0
votes
1answer
38 views
Attach #ajax to submit button created in hook_form_alter with #markup
I created a custom submit button for the user-login form using #markup because I couldn't alter submit button html to resemble what I needed. The second custom submit button with the needed html is ...
0
votes
2answers
15 views
Use node_load via Ajax
I'm using horizontal parallax jQuery plugin and have a page--front.tpl.php file. That's my structure:
MENU:
<li><a id="mymenu" href="#/menucontent">news</a></li>
When I ...
0
votes
0answers
24 views
Replace text output of link into <div>
I'm using the "AJAX Login/Register" module for Drupal 7, and the three links it outputs are 'Login', 'Create new account', and 'Reset your password'.
What I'm looking to do is replace the outputted ...
1
vote
2answers
25 views
Adding #ajax to checkboxes and getting selected values in callback
I've been trying to use #ajax callbacks on a form. I've got this working with radio buttons, so when I've debugged the form I get the value associated with the radio button as '#value' under ...
0
votes
0answers
12 views
Altering form state based on ajax generated field value
I have a form generated with the the D7 api that includes an ajax generated radio group. I would like to alter the state of another form element based on the value of the generated group but it is not ...
0
votes
0answers
17 views
AJAX reloads flash elements
I am working on a module that creates an exercise form for a school. It has some audio files for certain questions and I've added those with Flowplayer.
Now whenever I use any AJAX function while on ...
-1
votes
0answers
17 views
Flashcard: How to fix AJAX error?
I am a newcover with respect to Drupal modules. I am using Drupal 7. I installed the Flashcard module. I've enabled flashcard, flashcard-cycle, libraries modules. I am trying to change its format from ...
-3
votes
0answers
21 views
How to create a view similar to the glossary view but with pictures(instead of alphabetic letters) and image galleris in the content? [closed]
I'm a beginner in Drupal 7 and wanted to know how to create a view similar to the Glossary view in Drupal 7.
I would like to add images instead of the alphabetic letters and onclick of an image, its ...
0
votes
0answers
16 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
45 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
21 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
26 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
20 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
19 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
51 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
29 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
85 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
21 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
40 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
43 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
67 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 ...
1
vote
1answer
45 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 a user types in it, I want to update another section of my form. Just a more elaborate version of built-in autocomplete field, really. So I added:
...
0
votes
1answer
36 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
26 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
50 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
47 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
20 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
1
vote
1answer
36 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
85 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
29 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
19 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
24 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
27 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
54 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
48 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
47 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
32 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
67 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
29 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 ...