javascript

We encourage users to post events happening in the community to the community events group on https://www.drupal.org.
nedjo's picture

Form structure from Views?

We've talked about future CCK tie-ins to the form builder, and are keeping this in mind as a future add-on.

What about Views?

Views module provides a code-accessible representation of tables, fields, etc. Presumably, on this basis we could pre-populate a draft form array, or provide a data reference for the form builder (default values for fields, etc.).

Read more
webgeer's picture

Plan for changes to GMap

I have been thinking about some things I would like to do a bit differently with the GMap module. I think it is time to clean up some things and optomize some other things and generally make a number of improvements. My first plan of what to look at is the javascript produced and specifically the marker creation and manipulation js.

I am thinking that rather than having the gmap.module create the js to write the markers I will have the gmap script to a drupal_to_js() conversion of the markers array and then have it call a function in gmap.js to add the markers from the array that is created. This will allow easier extending of capabilities of the gmap functionality.

Read more
nedjo's picture

Step by step or all at once?

Big question #2: do we rewrite drupal.js all at once, or do we do it in a (long) series of small patches?

The issues to be addressed are many. There's the basic restructuring from its current form to an object-based structure. There's incremental and larger improvements to the methods:

  • improve the add/remove classes, as Konstantin has shown
  • improve the model for registering events--addEventListener rather than our somewhat clunky workaround in addSubmitEvent
  • gather a form input and submit it via AJAX, rather than the current hidden iframe
  • improve effects (collapse, resize) and expose them
Read more
nedjo's picture

A Drupal Enhancement Proposal for core Javascript improvements

There's broad interest here I think in improving the core Drupal Javascript. Shall we channel this into a Drupal Enhancement Proposal (DEP), http://drupal.org/node/39407? Here's some rough beginnings, please jump in.

Title: Javascript Library Improvements
Status: Early draft for discussion
Reference: See http://groups.drupal.org/ajax-developers

Introduction

This DEP aims to improve Drupal's built-in Javascript library, making it extensible and introducing a Drupal Javascript namespace to prevent namespace collisions.

Motivation

Drupal 4.7 introduced a slim and well designed set of Javascript utility functions (drupal.js) and behaviors (autocomplete, collapse, etc.). As Drupal contributors continue to develop Javascript and AJAX behaviors, there is an emerging consensus around ways we could make Drupal's Javascript library more readily extensible while solving issues such as namespace collisions. There is also interest in the possibility of adopting or piggybacking on one of the several leading Javascript/AJAX utility libraries (jQuery, Prototype, etc.).

Read more
kkaefer's picture

AJAX or JavaScript?

One question: Is this SIG just for AJAX or also for JavaScript issues? If so, I'd suggest renaming this group to "JavaScript & AJAX" or something similar.

Read more
nedjo's picture

'Battle plans'

How best to move forward implementing priority AJAX functionality?

We've got a lot of pieces in the works.

  • Drupal.js helpers and the existing core behaviours (collapse, autocomplete, etc.)
  • Thox's contributions beyond existing core pieces, including AJAX spellcheck
  • Steven's contributions beyond existing core pieces, including tablesorting
  • Jaza's Activeselect
  • Jjeff has 'prototyped' methods for scriptaculiousifying Drupal in S/P Ajax.
  • Based on his Moo module, Steve McKenzie has roughed in a very cool edit in place behaviour.
  • I've recently sketched in a number of behaviours (AJAX form submitting with preview, dynamically loading content into a block, etc.) as Javascript Tools
  • etc.
Read more
Subscribe with RSS Syndicate content