Javascript

Events happening in the community are now at Drupal community events on www.drupal.org.

All you Javascript crazed developers out there, this is the group for you.

Drupal is in need of some usability improvements and after a few meetings and a lot of discussion, it is now time to take advantage of our new JQuery library in Drupal.

stefano73's picture

Keystrokes module: brainstorming

I'm working on a module that implements site-wide keystrokes. Keystrokes may execute specific actions on the site, like clear cache, show logs, etc... The reference is this project: http://rikrikrik.com/jquery/shortkeys/), and comments written here http://groups.drupal.org/node/1592#comment-5721 and below.

The initial release of this module simply shows javascript alert when you press specific keys on your keyboard. It sends an Ajax GET request and returns an output to the user.

Read more
mixel's picture

jqselect demo

Hey,

I've been creating some javascript or jquery (mostly used for some safari compatibility). Its an advanced multi-select function, didn't find any js for it so made one myself. It's posted on my personal site.

Read more
andreashaugstrup's picture

Handling user access and Ajax

How does one handle access control when doing Ajax requests? Take a completely hypothetical example: I have my Drupal install setup in a way where only authenticated users may attach comments. I also want to add comments using an Ajax call instead of a normal fom submission (I said this was hypothetical, not that it was practical).

How would I make this secure? The comments box is stripped automatically for anonymous users, but anyone who knows where the Ajax call submits to will be able to send along the usual arguments. How do I make sure it was a validated user who submitted?

I have read some general articles on security and Ajax.

Read more
alex_b's picture

Asynchronous node loading

In the last couple of weeks we were working with Avi Mehta on a module that allows for asynchronously loading nodes. The module provides an interface to views as well as themable functions for the ones among us who love to tinker. An asynchronous pager like on http://www.searchmash.com/search/drupal is also in the works. There is a concept for asynchronously loading blocks.

Read more
jjeff's picture

January Lullabot Workshops in Providence, RI

Start: 
2007-01-15 10:00 - 2007-01-19 17:00 US/Eastern

Lullabot has another round of workshops coming up in January. We've got a great space in Providence, RI centrally located for people in both the Boston and New York areas -- and close to the airport for people coming from further away. Over the course of the week, we'll be building a single project – a Drupal-based CRM and attendees can sign up for individual workshops, or stay the whole week to see the project from beginning to end. Here's the rundown:

Read more
verbal@drupal.org's picture

Right Click Admin Menus (Idea in progress)

I was listening to the lullabot podcast interview with Konstantine
Kaefer
who was talking about his Summer of Code work. During his
discussion
of a module he referred to as "Live Editing", where text could be
clicked
and edited in place like on Flickr, He ran into a technical hurdle on
being able to edit button text by clicking on it. I had an idea of a
possible work around for this.

My general idea is to use javascript to create custom right-click menus
so
instead of the browser right click menus of copy/paste and all, an
administrator would see options like "edit" and "delete" or whatever

Read more
jasonwhat's picture

JQuery for front end editing

Today I saw a presentation on a site that had small icons next to each editable field on a website. It truly was "dummy proof" and got me to thinking about how this could be done in Drupal. Could the jquery editable plugin be integrated to update drupal nodes?

Read more
mfredrickson's picture

jQuery comes to Drupal 4.7

There have been a few threads on jQuery in 4.7, mostly filled with disappointing tales of incompatibilities of Drupal's JS files and jQuery.

Not being a JS guru, and not wanting to be, I decided to use jQuery for a client project and created a jquery47 module to allow anyone else to use my hacked up jQuery.

You can find it here: http://drupal.org/project/jquery47

Read more
ultraBoy's picture

jQuery brakes gmap.module

Hi folks.

I followed this advice http://groups.drupal.org/node/1008#comment-3690 and modified /misc/*.js files. Now I see gmap.module doesn't work after this modification. (the module works OK when I copy those files back). Well, I mean not the module itself, but google maps. They just don't appear :(

Can anybody help please?

Read more
raspberryman-gdo's picture

Prototype v. jQuery - One blogger's conclusions

Hi all,

Here are a few sketchy to interpret, yet interesting tests results benchmarking Prototype v. jQuery, by Claudio Cicali. The blogger's conclusions: Despite rumors on the internet, jQuery is not slower than Prototype.

ajaxian.com has a few more comments on these tests.

Read more
sime's picture

New docs in the Handbook

I've done a couple of handbook pages regarding Drupal/jQuery etc. I've been doing some stuff with jQuery and thought it was useful to document it. If you see any major issues or mistakes, which I expect will be there, please add your comments to the pages.

Read more
kkaefer's picture

Page of ongoing todo lists of jQuery stuff for Steve McKenzie

Post your suggestions here ;)

Read more
kkaefer's picture

behaviors.module: docking JavaScript behaviors into Drupal

Now that we have jQuery in Core, there are new JavaScript enhancements for Drupal popping up everywhere. Most of these enhancements are pretty small. To add them to a page, it usually requires a module. But those modules don't do much more than just adding the JavaScript file with drupal_add_js - the whole module system with all of its callbacks and so on is just overkill for that problem.

On #drupal we have discussed the need for a module that gathers all those JavaScript enhancements in just one module. In the rest of the proposal, I will use the word "behavior" for a JavaScript enhancement file.

Read more
ica's picture

jquery-tooltip

I just stumbled upon this jquery tooltip script thought someone might interested

http://codylindley.com/Javascript/264/jtip-a-jquery-tool-tip
demo
http://www.codylindley.com/blogstuff/js/jtip/

Read more
ica's picture

jQuery WYSWYG editor

I am not 'JS or 'Ajax' developer myself but I just spotted the 'JCE Utilities Mambot' jQuery integration of WYSWYG editor. I thought I should post here.

Since Drupal jQuery is in the core Drupal5, to integrate a 'simple' jQuery WYSWYG editor ~alternative to TinyMCE and HTMLarea (which reqires a 3rd party code) would be possible idea i presume.

'JCE Layout Manager'
http://www.cellardoor.za.net/

some screenshots
image browser and attachment
http://www.cellardoor.za.net/images/stories/sort.jpg
http://www.cellardoor.za.net/images/stories/window2.jpg

JCE Joomla Content editor is overkill like the Joomla itself -imo- But I a WYSWYG editor with basic HTML tag marking + image/media/file browser&attachment functionality would greatly help to improve Drupal on that front.

Read more
Anonymous's picture

seeking maintainer for the chatroom module

hi all,

due to developments in my personal and work life, i've decided to step away from drupal development (chatroom and otherwise), for the foreseeable future.

i won't have the time take the chatroom module to the next level, so i'm seeking a maintainer to take over the module.

if anyone is interested, please contact me off list.

cheers
justin

Read more
owen barton's picture

phpFreeChat module for 4.7 available for testing

I finally found a few days to work on this, and have made several improvements along the way - however this is still BETA, so I wouldn't recommend trying it on a production site (yet!). If you have time it would be great if you could help testing this out, so we can work out any major bugs before I tag it as a 4.7 release. The download is: http://ftp.osuosl.org/pub/drupal/files/projects/phpfreechat-cvs.tar.gz

Please add any bugs or support requests to the issue queue at: http://drupal.org/project/phpfreechat
If you have time to work on bug-fixes or feature patches that would be great - please post them to the issues queue!

Read more
kkaefer's picture

Idea: General structure of the new drupal.js

Some of my ideas for the future drupal.js:

Note: This is demo/fake code, not actual, working code.

var Drupal = {
  jsEnabled: false,
  basePath: 'http://example.com/drupal',
  locales: {},
  settings: {},
  
  addLocales: function(translations) { ... },
  t: function(str, args) { ... },
  watchdog: function(type, message, severity, link) { ... },
  parseJson: function(data) { ... }
};

jQuery.dimensions = function() { ... };
jQuery.absolutePosition = function() { ... };
jQuery.freezeHeight = function() { ... };
jQuery.redirectFormButton = function() { ... };
Read more
dikini's picture

SOC: Collaborative Editor

I just want to draw your attention to SOC: collaborative editor. It is a summer of code project to create a (surprise, surprise) a collaborative editor for drupal. If you are interested, please consider giving feedback to Ernest. This will help him make better progress and bring an interesting and very useful functionality to Drupal.

Read more
kkaefer's picture

What JavaScript library should we use? (Regardless of licencing issues)

jQuery
69% (86 votes)
Prototype
15% (19 votes)
Other library (specify in comment)
4% (5 votes)
Custom built library
12% (15 votes)
Total votes: 125
Subscribe with RSS Syndicate content

Javascript

Group notifications

This group offers an RSS feed. Or subscribe to these personalized, sitewide feeds: