Ajax is a group of interrelated web development techniques used on the client-side to create asynchronous web applications.
0
votes
1answer
28 views
How do I create a selectable configuration or options for a item?
I am trying to do something similar to this http://store.apple.com/us/configure/MD093LL/A but I don't know how to pull it off in drupal 7. Any solutions?
5
votes
1answer
291 views
Slow “Add another item” with unlimited valued fields
In Drupal 7, when you have node with field which has unlimited values (let's say, image field), "add another item" response time becomes very slow after you added 10 - 20 items. How do you fight this ...
0
votes
0answers
131 views
Implementing ajax callback disables my form submit
I hit the submit button and the "throbber" effect happens, but my form is not being processed. I cannot get the POST values or anything after hitting submit. Why is this?
function test_processed() ...
1
vote
1answer
57 views
Why are responses for AJAX POST calls in admin UI so delayed
Just in the past day or so, something has happened to my site.
For some reason, all AJAX calls from Drupal's admin UI are now taking about 50 seconds a piece.
This is absolutely maddening because ...
0
votes
2answers
51 views
How to create a module to process AJAX request?
I want to create a module to process some AJAX request like this:
$.ajax({
url:'/?q=mymodule/path',
dataType:'json',
type:'POST',
data:{'key':'abc', 'value':'123'},
...
3
votes
1answer
219 views
Status messages with AJAX
I'm making an AJAX call in drupal 7 via the standard AJAX Framework. My problem is that when a status message is set by the AJAX callback, it is simply lost (or displayed at the next reload of the ...
0
votes
1answer
151 views
Hide the “view exposed filter” form or reload the page after submit the form?
I am using view exposed filter on a view display as "block". The block is added to dashboard.
I added a second function to "Apply" button using hook_form_alter. I want to hide the expose form of view ...
2
votes
1answer
236 views
AJAX calls fail when the base URL is set
I have installed the Drupal 7.17 security update, and I am having some issues with my site.
If I comment out the $base_url ='www.xxx.com'; line in the setting.php file, the AJAX calls work; when I ...
1
vote
0answers
135 views
Migration from Wordpress AJAX error [closed]
I am currently working on WordPress content migration (all posts) to Drupal 7. I have downloaded the WordPress WXR file and checked with xmllint for validation. The file is valid and no issues found.
...
0
votes
0answers
84 views
drupal_get_form() doesn't return ajax settings
I have a problem.
I have an form that contains:
$form['submit']['#ajax'] = array(
"callback" => "site_basic_form_callback",
"wrapper" => "ajaxBasicInfo",
"effect" => "fade",
...
1
vote
0answers
170 views
Ajax Throbber Global Location
How to change the ajax throbber location and make it appear in one place in the site whenever any ajax action is running.
For example I have
I want the ajax image to stop appearing in its normal ...
0
votes
0answers
61 views
How to handle nested ajax forms
I have a ajax form(parent) which has a several other ajax forms(child) within it, When I submit(ajax submit) the parent form, its re-renders the parent form and other child forms too, however the ...
0
votes
0answers
156 views
Pager in cached ajax view doesn't work
in drupal 6 I have an ajax view that I cache manually. The following is a block of the function that returns the markup of the view:
....
$cache_key = sprintf('user:products_listed:%s', ...
0
votes
0answers
124 views
Form generated by ajax response not calling submit handler!
i have an AJAX form which upon submission returns another form. The problem is that new form has to submit with full page load not thru ajax. Somehow new form is returning blank screen with the URL ...
0
votes
1answer
33 views
Ajax Form to pull two different views
I have two different views that need to be toggled on a node page. I cannot put these two views together so I have created a form that will basically take the values of the form that I create, and ...
0
votes
0answers
36 views
Populate Front page via ajax and allow “More” loaded via ajax as well
I'm working on a highly customized front page (due to lots of javascript and css). The primary requirement is that if a user wants to see more nodes on the front page, the "More" link needs to load ...
3
votes
1answer
229 views
Drupal using panels with ajax
I have two questions.
I wish to build a website that will use a three column look. I was told to use panels, I found it easy to use.
My question is I have a menu bar, all menus point into different ...
0
votes
1answer
96 views
How can I have all drupal links work on ajax based?
Is it possible to have all drupal internal links work on ajax based without any page refresh?
If there is any ready module, please share the link. Your help is really appreciated.
1
vote
2answers
629 views
How to trigger a form and pass variables to $form_state with jQuery?
What is the best way to trigger a drupal form via js/jQuery? And pass new values to the form_state while doing so.
My use case is the following: I have a main form, which has an element that triggers ...
0
votes
0answers
81 views
update views based on drupal 6 form fields ajax-jquery
I m using drupal 6. I want to create a page that contains a node add form at top and a view at bottom both. When user filling form's field than on the based of this form field's values, I want to ...
1
vote
0answers
197 views
$form_state['rebuild'] and AJAX handlers
I have form with the most common AJAX handler (managed_file field). In this field the user can upload a picture and after some processing a preview is available.
Also i have some inline JS which does ...
0
votes
0answers
141 views
Error while trying to add content to panels
I am getting this error while trying to add new content to panels as shown in the screen-shot.
I have the following modules installed.
panels 6.x-3.10
chaos tools 6.x-1.8
jQuery UI 6.x-1.x-dev
...
0
votes
0answers
177 views
Drupal managed_file issues
I have a few forms trying to utilize one to many managed_files. On the initial load of the form, everything works fine. I can upload a file, remove, re-upload, save, it all works. I think because ...
0
votes
1answer
275 views
Ajax error while saving a view
When I edit a view, and click on the "Save" button, I get the following message:
An AJAX HTTP error occurred.
HTTP Result Code: 200
Debugging information follows.
Path: ...
0
votes
1answer
45 views
Use Ajax in a view outside Its path
I am using a view that I get from views_get_view('') and I put it inside a node page.
The problem is that the view normally uses AJAX (to filter,pagination,etc...) only when called through Its path.
...
1
vote
1answer
376 views
trigger attribute AJAX using custom select element
I'm currently theming the product page for a Drupal Commerce site. Our frontend developer has insisted we use his custom "fancy" select dropdown for the attributes, which is causing a bit of a theming ...
-1
votes
1answer
208 views
can't get $form_state['values'] when ajax Dynamic select list in the form (dependent dropdown)
I write a form like ajax_example way to bulit a dependent dropdown select.
when select one and called the ajax_call_back function ,the values I get in $form_state['values'] (use dpm($form_state))has ...
0
votes
0answers
75 views
Rate widget 1.4: Ajax does not work any more
Since I have updated the rate module to 1.4 Ajax does not work any more for voting. That means, that the whole page is reloaded by clicking the rate button. The cause of that problem is, that the ...
0
votes
0answers
74 views
AJAX does not work for content that is loaded via AJAX
The AJAX code for the Rate module does not work when the content is loaded via AJAX. Voting leads to the whole page being reloaded.
I have experienced this behavior after applying some updates to the ...
0
votes
0answers
85 views
New node form with ajax
I want to add a button to a page that would load a form to create a new node on that page.
Preferably I would also like to be able to submit that node without leaving the page but that is not as ...
2
votes
1answer
180 views
Drupal & AJAXified links: hook into requests before they are sent?
I've got a link 'test/nojs' on a page. I've added the class 'use-ajax' to that link, so that Drupal automatically AJAXifies the link and replaces the 'nojs' part with 'ajax'. So far so good.
However, ...
2
votes
1answer
151 views
Drupal 7: Looking for suggestions on AJAX-base update to view
I have a requirement that I'm not sure how to go about implementing. The flow goes something like this:
User clicks button: share your update
Popup window opens
User fills in form and clicks Save
...
1
vote
1answer
94 views
Making a REST AJAX call from Basic Page
The following successfully calls a REST Services Module endpoint when contained in a module but I cannot get it to work within the script tags of a basic page.
(function ($) {
var myapi = {
...
1
vote
1answer
131 views
Status message “The changes have been saved” displays when updating user data using AJAX and Services module
I am using navigator.geolocation.getCurrentPosition to get the user's current location, and then using the Services module to update the user's location (part of the user object) via AJAX.
Here is ...
0
votes
0answers
45 views
alter form in ajax form
I have a form prepare like this to add a node.
$output = drupal_get_form($type . '_node_form', $node);
and I alter some fields in Hook_form_alter to set defaults values.
but when I submit,I ...
2
votes
4answers
135 views
How can I insert a block into each page of a view if the page is loaded via ajax?
I am trying to insert a SimpleAds block for each page of a View. But pages are loaded via AJAX using infinite pager. How can I insert a SimpleAds block into each dynamically loaded page of results?
1
vote
1answer
395 views
Use Ajax to load full node including comments and comment form
I tried to use Ajax links API Module, nice module it even replace url when loading page but it works so slowly... I can wait page loading even for few minutes. I found another solution seanbuscay.com ...
1
vote
1answer
108 views
Inserting additional AJAX using hook_flag
I'm trying to insert additional AJAX commands when a Flag link is toggled. The flags link type is 'JavaScript toggle'.
Hooking into the Flag callback seems simple enough using hook_flag.
function ...
1
vote
0answers
144 views
attachBehaviors to rate button after ajax load
I have a view that randomly loads two nodes with rate buttons. Once a rate button is clicked, I have it set to click the "next" pager to load another random view with ajax. However, after the first ...
1
vote
1answer
137 views
How to filter views using Ajax
I have an array that I stock in the browser's storage. I retrieve it in Javascript.
I'd like to use those values to display a view. They IDs represent a nid.
I already created a view, took a ...
0
votes
1answer
151 views
How to write test cases for custom ajax functionality using simpletest in drupal7
I am trying to write the test case for my custom ajax functionality in Drupal 7. I am firing the event on click in my .js file but the test case gets a fail.
In my .tpl.php template file I have the ...
0
votes
0answers
141 views
Infinite scoller and ajax paging not working after the second page loads
After the second set of items loads, the JavaScript code no longer works. I searched, and found information about using the .on method, but I am not sure how to use it.
Here is an example of the ...
0
votes
1answer
198 views
How to delete a form element via ajax?
This is my custom form with working add more and dummy delete button.
function mymodule_mycustom_form($form, $form_state){
$form['checkboxes_fieldset'] = array(
'#prefix' => '<div ...
1
vote
1answer
243 views
Views News slider
I have this design:
E.G. Click "Structure" header, open contents and come img.
Created content type and installed Views. Seperate image, header, content fields via block.
Like our design but ...
0
votes
1answer
67 views
How to get a themed form via Ajax in D7?
I'm trying to get a D7 form into a Bootstrap modal dialog. I had this working on D6, through a semi-straightforward process:
The jQuery code that's building and showing the modal does an $.ajax ...
2
votes
1answer
70 views
how to implement a data receiver service in Drupal
I have a Drupal site which will host a flash application. The application will be inserted in a node body (or as an attachment, not sure yet). I would like this application to send some data to Drupal ...
0
votes
0answers
61 views
How to load homebox blocks using ajax
I have a dashboard which was created using homebox module. The current functionality of homebox is, all the blocks will be loaded upfront, however I want to load the blocks async once the page was ...
0
votes
0answers
158 views
AJAX-form replaced div comes back empty when logged out
I have an AJAX form that replaces a section of itself successfully when the user is logged in. But when logged out, the demo-area section comes back with the #prefix and #suffix but no item-header or ...
0
votes
1answer
45 views
What do all these problem have in common (can't find the origin)?
A series of problems appeared in my install and I need help to narrow them down to a probable cause.
Most problems come in Views
1) All the dropdown menus that group options are gone. Clearing the ...
2
votes
0answers
158 views
Adding fields via ajax in form does not show in arrays in form_submit
I have am trying to add fields to a form in drupal via ajax. I am able to have my fields show up on the form without issue but the problem is seeing values of those fields when the form is submitted. ...

