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.

Anonymous's picture

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

Posted by Anonymous on January 30, 2012 at 11:12am
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

js core clean-up

Posted by nod_ on January 29, 2012 at 12:11am

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

Issues after update drupal core to 7.10 version

Posted by trotsak on December 14, 2011 at 3:50am

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

Return key in autocomplete menu submits form?

Posted by Garrett Albright on December 3, 2011 at 2:28am

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

Lets pretty up the JS groups homepage

Posted by ericduran on November 14, 2011 at 3:53pm

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

The JavaScript tag in core issues

Posted by ericduran on November 14, 2011 at 3:48pm

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

D7: Ajax post on node edit page

Posted by giorgio79 on November 14, 2011 at 7:45am

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

History.js integration for Drupal

Posted by rypit on November 11, 2011 at 1:15am

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

Populate selection list based on selection from other selection list

Posted by molcom on October 7, 2011 at 2:10pm

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

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

Posted by haojiang on October 5, 2011 at 9:28pm

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

Javascript help required for a custom module.

Posted by aac on March 15, 2011 at 11:23am

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

multiple behaviors in a single .js file failing

Posted by firebus on March 1, 2011 at 7:13pm

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

Neel help with checkboxe and autocomplete

Posted by katy55 on January 27, 2011 at 2:36pm

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

How to add javascript files to Drupal

Posted by jruffino on November 23, 2010 at 8:41pm

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

Help

Posted by voyelle on November 17, 2010 at 5:27pm

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

How to do IE conditional JS from a module?

Posted by realityloop on November 15, 2010 at 11:47pm

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

Overlay/Modal options in D7

Posted by rwohleb on October 23, 2010 at 11:13pm

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

How to use AHAH inside a form_alter hook?

Posted by altrugon on October 20, 2010 at 5:26pm

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

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

Posted by mahyarsbt on October 5, 2010 at 4:34pm

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

Javascript

Group notifications

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

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