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.

Anonymous's picture

Drupal Brighton February - Introduction to jQuery in Drupal - Craig Moore - Mon 6 Feb

Start: 
2012-02-06 19:00 Europe/London
Event type: 
User group meeting

On 1st Monday of the month we hold a session talk at http://theskiff.org and this month it's the turn of Craig Moore who is going to be giving us a little introduction to jQuery and Drupal.

Building on the session Craig gave at the recent Drupal ScienceCamp in Cambridge, Craig will be showing us the power of jQuery and how Drupal behaviours help us connect Drupal easily with jQuery plugins.

This is a free event, 7-9pm at Brighton's coolest coworking space http://theskiff.org, then we'll be off to the pub for a pint and more Drupal chats after.

Read more
nod_'s picture

js core clean-up

Hi fellow JS coders,

I've started working on JS clean-up of core. If you're interested, help is welcome and reviewers will definitely be useful :)

Here is the tag for issues : JavaScript clean-up

See you there!

Read more
trotsak's picture

Issues after update drupal core to 7.10 version

On my site, I upgrade drupal core from 7.9 to 7.10. version, after that I got some problems with javascript function of site - dont work butch, can't install module, cant cancel user, FCKEditor disappeared.

Is this a common issue with the upgrade? Is there a simple solution?

Console show:

Opera/9.80 (Windows NT 5.1; U; ru) Presto/2.10.229 Version/11.60 (Core 2.10.229)
Используйте команду clear() для очистки консоли.
Для получения дополнительных сведений введите «// help()».
Uncaught exception: TypeError: Cannot convert 'settings' to object

Read more
Garrett Albright's picture

Return key in autocomplete menu submits form?

Hello, all. I've run in to some odd behavior working with Ubercart - which is itself an "odd behavior," I know, but I'm hoping someone else out there may have run into it and can help me figure out how to avoid it.

Read more
ericduran's picture

Lets pretty up the JS groups homepage

I tend to find it hard to keep track of a groups issues with the regular list view on the groups homepage.

What does everyone think of adding some og_panels to the home page?

Have a look at the html5 group or the NYC group.

I'll be more than happy to set it up all if we think this is a good idea.

Read more
ericduran's picture

The JavaScript tag in core issues

Lately I've been trying to get more involved with all the JavaScript issue on drupal. While doing this I noticed that a lot of the JavaScript issues where tagged differently.

The different tags being jQuery, Ajax, JavaScript, JS (actually JS is only in 3 issues ;-) but still).

I think we should start tagging all JS issues with the JavaScript tags. Essentially if a JS file is touch the JavaScript tag should be added to the issue. This would make it super simple for anyone interested in JavaScript specific issues to be able to find them all.

Read more
giorgio79's picture

D7: Ajax post on node edit page

Hello,

I am trying to perform an ajax post on node edit pages in a new module I created http://drupal.org/project/proofread_bot. This module adds a button and clicking it performs an ajax post to a url for processing text. When I do this on node edit it seems the whole page gets submitted. I tried adding event.preventdefault jquery call, and also return false for the button but no luck. Here is the code:

function proofread_bot_node_prepare($node) {

drupal_add_js('
jQuery(document).ready(function(){

Read more
rypit's picture

History.js integration for Drupal

Hey everybody, I wanted to let you know about some exciting projects I'm working on - The first of which is already live here on d.o (History.js for Drupal), and adds the History.js library to Drupal 7.x via the Libraries API. The second (and more exciting) project that I'm working on is called StateHandler and is detailed below.

History.js for Drupal

Read more
molcom's picture

Populate selection list based on selection from other selection list

Hi,

I have installed drupal 7.8 and related cck, views module.
My problem is to populate a selection list based on selection from other selection list.
Anyone any ideeas? I don't wan't to solve the problem writing a new module...is it possible?

Best Regards,
Mihai Catan

Read more
haojiang's picture

introduce a high performance free hosting (for drupal)--sae---a GAE like China project , i just finished deploy drupal 6 there

ok , example first to prove that i am telling the truth : http://trackself.sinaapp.com/ just feel its speed!

[background:]
1.SAE: sina app engine , belong to sina.com (China), it's a service like google app engine ,but provide PHP hosting and mysql hosting and more! well , i think it's better than GAE, because i only know php but not python/java. It declare itself cloud service. And better than GAE, it use SVN.
2.Since it offer php and mysql hosting , drupal can be hosted. But a little hack to install.php , nothing more hack

Read more
rmjackson's picture

Architecture Advice re: cck type modification with Javascript

Hi Guys,

Read more
aac's picture

Javascript help required for a custom module.

I have created a custom module and using hook_form_alter() to do the following-

<?php
$form
['title']['#prefix'] = '<div id="title-ajax-check-wrapper">';
$form['title']['#suffix'] = '</div><div id="title-ajax-check-message"></div><div id="title-ajax-check-informer" class="title-ajax-check-informer">&nbsp;</div>';
?>

Now in my js file i am using the following-

<?php
// $Id: title_ajax_check.js$

Drupal.behaviors.titleAjaxCheckBehavior = function (context) {
$('#title-ajax-check-wrapper input:not(.titleAjaxCheckBehavior-processed)', context)

Read more
firebus's picture

multiple behaviors in a single .js file failing

Howdy.

I have a small helper module in D6 with a .js file that adds a function to Drupal.behaviors.

I've found that if I try to add a second behavior function, neither behavior is triggered.

so:

Drupal.behaviors.first = function (context) {
  alert('first');
}

works and shows an alert on page load. but:

Drupal.behaviors.first = function (context) {
  alert('first');
}
Drupal.behaviors.second = function (context) {
  alert('second');
}
Read more
katy55's picture

Neel help with checkboxe and autocomplete

Hi all,

I need to do modify the form where the user need to check some boxes and after that display in the textfield just the childres items that are in the parents select .

this is the code where i did the autocomplete but i need to add the parent select any idea? im really stuck, thanks

function cookbook_ingredients_xhr($name) {
$name = urldecode($name);

$query = "SELECT nid, title FROM node WHERE status = 1 AND type = 'ingredient'";
$query_args = array();

// Check language
if (module_exists('i18ntaxonomy')) {
$query .= " AND language IN('','%s')";

Read more
jruffino's picture

How to add javascript files to Drupal

I am working with a form that is heavily coded with JavaScript, and before our upgrade, my js links worked, now that we upgraded to Drupal 6.19, nothig works, all of my js/css links are gone. I have done research and found the drupal_add_js for php. My question is where do I put this (documentation and discussions are not very forthcoming)? I have 6 js and one css script to incorporate into my form. Any help would be appreciated.

I am linking to my css and js using:

Read more
voyelle's picture

Help

Hi,
I don't know if I can ask for help here, but I'm desperate I've been looking around (documentation, support) but not luck so far

I have a website (php/mysql) that I converted to Drupal v.6.19, everything work besides those three issues:

Read more
realityloop's picture

How to do IE conditional JS from a module?

I'm trying to build a webform plugin that requires some additional JS included for IE browsers based on the version, the JS I'll need to output on webforms is as follows:

<!--[if gte IE 7]><script type="text/javascript" src="excanvas-r71.min.js"></script><![endif]-->
<!--[if IE 6]><script type="text/javascript" src="excanvas-r3.min.js"></script><![endif]-->

I've been trying to get drupal_add_js to work, I'm still learning jQuery and am not sure that it is the best way to check for browser or having a lot of luck getting it to work.

Here is where I'm at:

Read more
rwohleb's picture

Overlay/Modal options in D7

Drupal 7 has an overlay module that looks pretty nice. Unfortunately, it's really setup to only handle admin pages. I've looked for documentation on using it outside of this scope, but without luck. What are people planning to do for overlays/modal dialogs in Drupal 7?

Read more
altrugon's picture

How to use AHAH inside a form_alter hook?

I'm trying to add AHAH functionality inside a hook_form_alter() to be able to add an icon next to the block titles.

Here is how all this procedure works:

Read more
mahyarsbt's picture

i Need help dynamic load content without refresh page (Drupal full AJAX)

hi

i need help for finding a way to have a full ajax drupal website (dynamic loading content without refresh page) like "Asynchronous" module

i just found "Asynchronous" module but this module is developing and not stable

i used that module and had a problem in pagination:
when i click "next" or "page 2" error displays:

page can't find
The requested page could not be found.

http://localhost/mydrupal/#category/textcontent/shortstory?page=1&page_r...

please help me this problem or recommend me a better solution...

thanks for help me

Read more
Subscribe with RSS Syndicate content