ahah

Loading additional CSS and JS with AJAX/AHAH requests

An issue when loading and rendering content via AHAH is that the content may rely on CSS or JS code not present on the original page. In this case, there is a need to load and execute the additional code (CSS and JS files, inline scripts, Drupal.settings data).

There are now two API modules to provide this functionality.

3 comments · Read more

AHAH/AJAX form validation and submission for Drupal core

· · ·

Currently there are various contrib modules implementing form validation and/or submission via AJAX/AHAH.

The earliest is Ajax submit. Originally part of the Javascript Tools package, Ajax submit was moved to its own project for Drupal 6. In Drupal 5 Ajax submit combined an API and a UI. For Drupal 6, the UI was (temporarily) removed in order to produce a pure API module that could be used by other module developers free from a UI. At the same time the Javascript was rewritten to use the jQuery forms plugin.

5 comments · Read more

Programmer/Analyst | EDUCAUSE

Employment type: 
Full time
Telecommute: 
Not allowed

EDUCAUSE is seeking qualified candidates for two full-time positions located in either its Boulder, Colorado or Washington D.C. offices. Candidates will be part of a fun, creative team that is responsible for creating web applications atop the Drupal Content Management System.

Read more

Asynchronous module: 100% AJAX Drupal

We have seen a lot of interest in making Drupal load content dynamically. This enables many use cases not currently possible. E.g.: on a past project, we have been asked to make a video player play continuous, while the user browses the site. On a Drupal 5 site, the only way to do this was using frames, and frames sucks.

Some improvements were done in Drupal 6 to pave the way for AJAX. We got dynamic form submissions (AHAH), jQuery forms library and javascript behaviors can now be re-attached. On the server side, however, things haven't achieved such maturity.

4 comments · Read more
persyl's picture

AHAH fungerar nästan...

Får inte riktigt AHAH funktionaliteten att fungera, men nästan...saken är att den path (#ahah['path']) som jag angett returnerar ju en hel sida och inte bara en delmängd html eller text. Hur gör man för att bara returnera det som funktionen för menu_call_back returnerar?

Som test har jag lagt till en dummy checkbox till loginformuläret och på sidan finns en div med id 'myahahdiv'.

Min hook_form_alter:

function minmodul_form_alter(&$form, $form_state, $form_id) {
if (in_array($form_id, array('user_login_block', 'user_login' ))) {
$form['foo'] = array(

5 comments · Read more
joshk's picture

Developing AHAH Submit Functionality

This post is intended to pull together my thinking and some of the discussions that took place in Boston around how to get a solid framework in place for real next-generation javascript into core for Drupal 7. My specific interest is in taking the promise of Nedjo Rodgers ajaxsubmit.module (part of the jstools project) and overhaul it to work in harmony with the amazing new AHAH features in Drupal 6.

My objective is to release a solid contrib module for Druapl 6.0 which provides a good framework for developers interested in this functionality, and implements some useful default behavior that will give it some purpose and life "out of the box." Assuming I can make decent progress on this in the next six weeks, this is a good way to figure out what's needed, and define functionality and code which can be engineered into Drupal core for the 7.0 release.

The full post here contains my initial spec, thinking on how to accomplish all this, and first experiments with extending the existing ajaxsubmit module.

1 comment · Read more
quicksketch's picture

Lesson #35 - Leveraging the AHAH capabilities in Drupal 6

Start: 
2007-11-11 10:45 - 11:45 Etc/GMT

This week in the Dojo, quicksketch will introduce the AHAH framework (think Ajax) in Drupal 6. The framework allows developers to build forms that dynamically change, without writing any new javascript. Come see examples of AHAH in core, and how you can AHAH enable contributed modules, such as adding a "More" fields button.

2 comments
ChrisBryant's picture

Dynamic Views module (AHAH page loads)

Hi Everyone,
I just wanted to let you know about a new views related module, Dynamic Views. (http://drupal.org/project/dynamic_views) It allows you to dynamically update the main content area (no page reload) when you click a node link in a view block. It also allows you to change dynamically update a view using a filter at the top. You can combine it with some elements of the jquery interface library for some pretty cool effects. (see http://warnerbrosrecords.com/artists)

Login to post comments · Read more
Syndicate content