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.

Should AJAX be depreciated in favor of a AHAH module?

Posted by ClearXS on September 30, 2010 at 5:56am

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

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

Posted by ClearXS on September 20, 2010 at 3:51am

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

Fivestar Help?

Posted by jacobroufa on September 12, 2010 at 7:00am

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
Categories: , ,

Adding js files to specific pages

Posted by killerrabbit on August 30, 2010 at 8:17pm

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

Conflicts with Cycle's updateActivePagerLink

Posted by stuartEngelhardt on August 17, 2010 at 1:53am

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

jQuery Help

Posted by killerrabbit on August 10, 2010 at 3:44pm

Hi All,

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

Read more

Showing views in a popup dialog?

Posted by ltwinner on July 27, 2010 at 8:38pm

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

Jquery web form

Posted by 49nq1 on July 6, 2010 at 5:09pm

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

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

Posted by ClearXS on July 2, 2010 at 5:52pm

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

Need Help

Posted by BWind on July 2, 2010 at 4:16pm

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

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

Posted by calebtr on June 16, 2010 at 9:47pm

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

This javascript effect in Drupal?

Posted by jdln on May 20, 2010 at 12:14pm

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
1 comment Categories:

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

Posted by erinclerico on April 22, 2010 at 9:34pm

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

How to set JS setting from a theme

Posted by scafmac on April 19, 2010 at 5:40pm

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

Adding jquery to views output

Posted by styles24 on February 17, 2010 at 6:58pm

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
Anonymous's picture

drupal_add_js and form caching

Posted by Anonymous on February 10, 2010 at 10:44am

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
14 comments Categories: , ,

Forthcoming Media Alpha!

Posted by aaron on January 22, 2010 at 4:18pm

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
2 comments Categories:

Drupal Media, Now with Fieldable Entities!

Posted by aaron on January 8, 2010 at 7:28pm

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
18 comments Categories:

calling a drupal view with argument selected by user

Posted by monti on December 21, 2009 at 5:13pm

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
3 comments Categories: , , ,
Categories:
Subscribe with RSS Syndicate content

Javascript

Group notifications

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

AltStyle によって変換されたページ (->オリジナル) /