Javascript

We encourage users to post events happening in the community to the community events group on https://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.

ClearXS's picture

Should AJAX be depreciated in favor of a AHAH module?

I read some discussion (maybe find them back later) about that AJAX is replaced by AHAH and CTools in D7.

As I'm constructing a module rich site, it will take me at least a year to change to D7 when all those modules have been upgraded.

But I prefer to work with the new technology for D6, not the old one. Will AJAX be modernized for D6 to be fully AHAH?

Or would it be better to start a AHAH project and move all functionality of AJAX over to that project for D6, as well as for D7?

Read more
ClearXS's picture

Years looking for very difficult to find modules, but now there is a way?

I have an enormous list of over 600 modules and manually types some specifications in an extensive list.

Still I haven't seen all the modules that I might use, now going through this complete list:
http://drupal.org/project/modules/index?drupal_core=87 (D6)

And why all this work for months and months..?

Something must be basically wrong here.

Today I found (after years) this module by searching on "sort" in the above list:

http://drupal.org/project/views_tablesorter - http://tablesorter.com/docs/#Demo

Read more
jacobroufa's picture

Fivestar Help?

So I'm using the latest version of Fivestar for Drupal 5. When I click the star, I expect the (x votes) number to update, but it doesn't. Is this a feature that already exists? If not, how can I implement it? My JS-fu isn't so great but can't I do something like register a click handler that runs a parseInt on div.fivestar-summary span.total-votes span and then iterates a count +1? I've got a general idea how to do it but the specific implementation I'm not so sure.

Read more
killerrabbit's picture

Adding js files to specific pages

I have two different plug-ins that require two different versions of Jquery. I need to have the specific file load according to the page it is on. I have found the following code but have not been able to get it working.

<?php
function yourModuleOrThemeName_preprocess_page(&$variables) {
if(arg(0) == 'yourPage') {
$scripts = drupal_add_js();

$new_jquery = array('yourNewJQueryPath/jquery14.js' => $scripts['core']['misc/jquery.js']);
$scripts['core'] = array_merge($new_jquery, $scripts['core']);
unset($scripts['core']['misc/jquery.js']);
Read more
killerrabbit's picture

Jquery Carousel in Drupal

Hello,

Read more
stuartEngelhardt's picture

Conflicts with Cycle's updateActivePagerLink

I am somewhat new to initiating discussion on the Drupal Groups site, and am not quite sure where to bring this up. We have a conflict with two modules we are using, and while I have discovered the problem, I am not quite sure why what is being done is being done, and am not sure where to file a bug (if that is the right thing to do).

We are using both the rotor module and the jquery_plugin module.

This is from the rotor module's rotor.js file:

12 // redefine Cycle's updateActivePagerLink function
13 $.fn.cycle.updateActivePagerLink = function(pager, currSlideIndex){

Read more
killerrabbit's picture

jQuery Help

Hi All,

I was wondering if there was any books or tutorials out there for implementing jQuery plug-ins.

Read more
ltwinner's picture

Showing views in a popup dialog?

I am basically looking to replicate the functionality of the facebook friends dialog. You click the link saying 'See All' in the friends block and you get a popup listing all your friends. Is there an existing drupal module that can do this?

Read more
49nq1's picture

Jquery web form

Hello,
I'm using 2 different scripts on my web form
1) accordion - to display it in a few different sections.
2) preview before submission.

now, when I'm testing it on my computer (using wamp) it's all working
fine according to my expectetions.

the problem starts when I'm uploading it to my website, for some reason
only the accordion script seams to work, and the preview before submission don't.

I have looked in the view source and the script is loaded, and I also tried to clean all the site cache but nothing is changing.

Somebody have any idea?

Read more
ClearXS's picture

Group organization, streamlining, jQuery 1.8/1.9, JavaScript, AJAX, jQuery Eye Candy, etc.

Hi,

actually I don't know the differences between AJAX, JavaScript and jQuery. But before answering here, maybe a wiki page is missing and could be mentioned in the group description?

In many groups such info lacks in the description. Yes I'm familiar with groups, but from Yahoo and the Dutch http://Clubs.nl (they WERE the first & the best, Yahoo bought the software and made a cut down version for its groups). So I'm not that happy with the features and design of Drupal groups, but that's another issue...

Read more
BWind's picture

Need Help

I have this Javascript that I am using on our companies webpage. It works fine in Firefox but will not work in IE. Can anyone help me please?

Only local images are allowed.

var interval = 5; // delay between rotating images (in seconds)
var random_display = 0; // 0 = no, 1 = yes
interval *= 1000;

var image_index = 0;
image_list = new Array();

Read more
calebtr's picture

proper way to handle drupal hook_submit from jquery $.ajaxform() calls

I'm adding a from to allow users to change a node's taxonomy without going to the edit page, similar to the community tags module, except with a controlled vocabulary instead of free tagging.

I built the form in a custom module and made sure all the hooks worked. Then I added the call to JQuery's .ajaxform() function. It works beautifully except that I want to apply some effects after the changes, so I wanted a different, JSON-y response if the call was from Ajax, rather than if it was a usual http request from the browser.

Read more
jdln's picture

This javascript effect in Drupal?

I have a series of headings with text and images underneath. I want it so just the headings show, and when you click on a heading the content slides out. Clicking the heading again will hide the content.

This is basically what im trying to achieve;
http://demos111.mootools.net/Fx.Slide

This is similar to the accordion except that I want users to be able to have multiple sections open at once. With the accordion (as far as i know) clicking on a different heading will close one thats open.

Read more
erinclerico's picture

Trying to build custom taxonomy drill-down with jQuery & Ajax

Post deleted. I was so far off the mark on this post that it is not worth keeping up - sorry for the bother everyone.

Read more
scafmac's picture

How to set JS setting from a theme

Using drupal_add_js($data, 'setting') doesn't appear to work from the theme. I've tried adding a setting from the template.php as well as the page.tpl file - neither worked. If I move the same exact code to a module, it worked fine.

I've combed through the D6 api page for drupal_add_js & saw no mention that the setting type wasn't an option from a theme. Am I missing something? Is there any way to pass a JS setting from a theme?

Read more
styles24's picture

Adding jquery to views output

I am interested in installing this jquery function: http://desandro.com/demo/masonry/ to my taxonomy terms page, which is being displayed by views, I have already added the .js file to my .info theme file. The javascript loads fine, but I seem to be lost on where I should put the

$('#primary').masonry({
columnWidth: 100,
itemSelector: '.box'
});
for example.
I've already tried placing the code in the output of the views field but the effect still doesn't work. What do I seem to be missing or doing wrong?

Read more
BWPanda's picture

drupal_add_js and form caching

I have some jQuery code that acts on the core search form for my site (it hides the default text ('Search...') when you click/focus on the search field and shows it again (on blur) if you leave it blank). This code is in an external .js file. I have added this file to my site (using drupal_add_js) by placing it in my site's implementation of hook_form_FORM_ID_alter.

However, it seems form caching is causing problems with this - when I flush all caches the jQuery works fine, but when I reload or go to a new page, it stops working.

Read more
aaron's picture

Forthcoming Media Alpha!

So we're this close to an alpha for the Media module (for d7). There are only a few outstanding critical alpha-blocking issues that need to be resolved. I'd hoped to have it today, but it looks like it'll probably be Monday.

Next week is the time for you to jump in if you're interested in developing for the project! It's been loads of fun, from the initial discussions and plans over a year ago with arthurf, dopry, drewish, Roger López, myself and others, to fantastic core Drupal 7 integration of stream wrappers by pwolanin and GSOC student jmstacey, to some powerhouse #d7ux magic by mverbaar and Jody Lynn, to the latest overhaul introducing Media fieldable entities (with an eye for core Drupal 8) and WYSIWYG integration by JacobSingh and dipen chaudhary, with some potential upcoming fine-tuning from jQuery guru dmitrig01.

If you're interested, join us in IRC at #drupal-media. After giving the module a spin (you'll need Drupal 7 Alpha 1, Media, Styles, and WYSIWYG + CKEditor, and optionally Media: Flickr and/or Media: YouTube), you should subscribe to the Issue queue. (You can also see recent screenshots at AaronWinborn.com.)

Read more
aaron's picture

Drupal Media, Now with Fieldable Entities!

If you haven't looked recently, there's been some huge progress recently for Drupal's Media module. Jacob Singh from Acquia has jumped on board, paving the way for fieldable entities! This allows Media asset objects to be a first class Drupal citizen, alongside Nodes, Users, Taxonomy, and Comments. (Hopefully in core for Drupal 8!) Also, Dipen Chaudhary has been hard at work providing WYSIWYG support!

Media as an Fieldable Entity

Read more for a tutorial...

Read more
monti's picture

calling a drupal view with argument selected by user

I'd like to let the user select a value from a dropdown list and have the selected value passed as an argument to a view, to be embedded on the same page of the dropdown. Later, the user should be able to select another value ans get another set of results.

I cannot use the url to pass the argument. any ideas ?

Thanks !

Read more
Subscribe with RSS Syndicate content

Javascript

Group notifications

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

Hot content this week