Javascript

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.

John melone's picture

Javascript developer | ubergig

Employment type: 
Contract
Telecommute: 
Not allowed

Ubergig currently has a 4+ month contract for a Developer working in NYC

Roles and Responsibilities:

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
John melone's picture

Front end developer | ubergig

Employment type: 
Contract
Telecommute: 
Not allowed

Ubergig currently has a 4+ month contract for a Developer working in NYC

Roles and Responsibilities:

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.

John melone's picture

Javascript developer | ubergig

Employment type: 
Full time
Employment type: 
Contract
Telecommute: 
Not allowed

ubergig currently has a long term contract position for a OO javascript developer in NYC. All work must be done on-site.

Roles and Responsibilities:
We are looking for someone with strong CSS/DIV Layout with equally strong JavaScript (YUI/JQuery) skills. You will be working with graphic designers and developers to implement award winning designs. We are looking for a technical front end developer who has a solid understanding of OO JavaScript and the APIs.

NOTE: We will be requesting code samples and/or live Links to RIAs you worked on

Professional Skills and Requirements:

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?

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?


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.

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?

FredCK's picture

Advanced JavaScript Developer | CKSource

Employment type: 
Full time
Telecommute: 
Allowed

We're looking for 2 JavaScript gurus to join our team, the official developers of CKEditor and its Drupal module.

CKSource is a successful company with thousands of customers all around the world, including top names like IBM and Oracle. Our company is growing fast, with impressive results on sales. This strong growth expands our range of opportunities, followed by the growth of our team. Take this change and join us!

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?

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

Front End Engineer // Drupal Themer | Clarity Digital Media // Examiner.com // NowPublic

Employment type: 
Contract
Telecommute: 
Allowed

Clarity Digital Media (NowPublic, Examiner) is looking for a freelance theming contractor. We are currently moving the Examiner.com platform from the current ColdFusion footing to Drupal. The project is being developed in Drupal 7 with the intent of helping move needed contributed modules and core to a final release rapidly in 2010. Clarity Digital Group owns and operates Examiner.com (the source for local news and information in North America). Clarity Digital Group is migrating Examiner.com, a top 60 website to Drupal 7 using NowPublic.com as a model.

Read more
Subscribe with RSS Syndicate content