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.
Adding Flash using attachBehaviors and SWFObject
$(document).ready(function(){
var flashtags = $('
[swf file="sites/all/modules/flashtags/flash/flashtags.swf"]
').appendTo('#privatemsg-new').get(0);
if (Drupal.jsEnabled) {
Drupal.attachBehaviors(flashtags);
});
This is my code. I'm using SWFObject.
[swf file="sites/all/modules/flashtags/flash/flashtags.swf"]
The above is being printed on the page but it is ignored by SWFObject. It needs some sort of forced refresh or maybe the use of an alternative method to add Flash objects. Or otherwise using a totally different approach like hook_alter
Yani
Read moreMedia + Styles + Media: YouTube Demo!
Join us at #drupal-dojo in IRC for a DimDim screencast demonstration, discussion, and quick Q&A of the Media, Styles, and Media: YouTube modules. Built to harness the new PHP stream wrappers in core Drupal 7, this powerful file browsing solution will awe and amaze.
Read morefiring node form submit from javascript?
Hi all,
I have a situation where I need a function defined in the Drupal.theme to fire the node form submit. Wondering if anyone can steer me in the right direction.
This is what I'm doing:
Read more"Meta Accessibility" - How to Make Accessibility Features Known to the User
What if your site is perfectly accessible but no one knows about it?
This question came up while working on Accessibility improvements for vertical tabs , together with some first thoughts on this issue.
Read morejQuery Visualize Plugin: Accessible Charts & Graphs from Table Elements using HTML 5 Canvas
Visualize is a Views style plug-in for implementing the jQuery Visualize charting tool.
jQuery Visualize provides accessible charts providing textual information to non-visual users.
It uses a technique with JavaScript to scrape data from an HTML table and generate charts using the HTML 5 Canvas element.
Try out a demo: http://lakeandweb.com/visualize/
Read moreIE creating proble all the time with javascript modules
Hi Folks,
I am creating this discussion because i am getting problem of javascript all the time in IE7.
First i tried popupapi module and its working fine in FF but when I tried it in IE7, it messed up all things. Then i tried jquery moduler popup, thickbox and other but no success...
Then i tried editablefields, and again same problem. Editablefields module also not working in IE7...
I mean to say javascript is not rendering at all in IE7. I always getting two javascripts errors
1. "htmls.length is null or not an object"
2. "Object doesn't support this property or method"
Keyboard Navigation - Resources & Best Practices
Last updated by mgifford on Tue, 2011-05-03 19:39
Following the suggestion at Accessibility improvements for vertical tabs here's a page to collect some of the scattered information on keyboard navigation.
Read moreAuto-resize text field on window resize?
Hi everyone,
I still consider myself a newby to jquery / javascript / css, though I've managed to write an ajax application that supports a multi-user callout processing system for my local SAR team.
As you can see in the attached picture, I have a "Notes:" text field that has fixed-sized font and width. I'd like to make this prettier where, if the user resizes the browser window, then I resize the width of the text field to better fit within the newly resized browser window.
Read moreBad Interaction between jCarousel and Dynamic Display Block
We're using jCarousel on all pages on a site. The carousel is set to slide from one set of images to the next every few seconds. The transition effect is slide-left. This works great -- almost everywhere. On the main page, we have a Dynamic Display Block front-and-center. This block is set to use fade to move between four different images. This works as well. But, on that one page, the transition effect of the jCarousel is lost. Instead of sliding from one set of images to the next, the images just change.
Read moreUsing custom javascript files
Having only begun working with Drupal about 6 weeks ago it is a robust platform but there is a real learning curve in regards to how to do things. Although the use of jquery is great (especially appreciate the jscalendar) this is focused outside of that resource.
The issue here is that the web site mockup was created using HTML and Javascript. Most of the processing logic resides in the developed javascript. How then do you adapt these javascript files?
Read morebuttons problem in slider
Hi all
i am using slider module for sliding the content page
i want change the "next" and "previous" button?
when slider page is loaded i want to hide the "previousbutton"
when i click "next" button the "previous" button should display and when i go to last slide "next" button should hide
how can i do this
any one pls help me out
i am using "Slider " module and drupal 6
thanks and regards
Read moreSlider for the any content type
Hi all i want to display the page exactly same as the below link
http://www.methodologie.com/what-we-do/boeing-company
the above site is developed using drupal so i was wondering how they did the slider effect for the page using jquery technique
any one pls suggest me how to do it , Or is there any module which helps out t9o solve the problem
pls pls any one help me out for this i will be grate full to them
thanks
Read moreDrupal variable into Flash
Hi
I am new to Drupal/Javascript and would like to read the parameter (language selector: $language) into a flash that run on another site (server) within the same domain.
Anyone that can help me ?
Accordion Blocks module released for Drupal
Folks, we're happy to roll out yet another module for Drupal. It's called “Accordion Blocks”. As the name says, this module provides an accordion effect to all your blocks. You can also apply jQuery UI themes through the configuration settings of the module.
This block is for those of you who deploy apps with a lot of blocks on either side bars, and are looking for newer usability enhancements with regards to visibility of the blocks. It not only minimizes all blocks on a Drupal page, but provides a cool accordion effect to help your user to concentrate on a single block at a time.
Read moreHas somebody tried to use the autocomplete jquery plugin with drupal?
I need a better autocomplete field for a Drupal project. Has somebody tried to use the autocomplete jquery plugin with drupal in any way? Any integration with the actual autocomplete functionality already found in Drupal?
Read moreWhere should new functions go?
When you need to create a new function in your script (just the code in your Drupal.behaviors child function won't cut it), where in terms of namespace should that function go? Is there an official decision or consensus on this?
Read moreJQuery for CCK field best practices and help
Hi all.
I'm still relatively new to the development side of Drupal, so please excuse these dumb questions.
Essentially, I am attempting to add a jQuery plugin (http://plugins.jquery.com/project/spin-button) that works on a text box to increment/decrement an integer value in the box. That text box was created using the CCK for a custom content type. Upon inspecting the DOM when adding/editing that content type, I see the ID = "edit-field-player-strength-0-value".
So, I am attempting to use the Spin plugin with my CCK field in the following way:
<
ol>
Read morePiggybacking on AHAH
For the Media module, I'm trying to attach a new behavior to an AHAH form submit button. I need to open a previously hidden form element, BEFORE the ajax has loaded. This is ultimately for a throbber/progress indicator, and to allow the user to enter meta-data without having to wait for the 120MB video to finish uploading.
Read moreBehaviors and Ajax
I am using the http://drupal.org/project/quicktabs module to load custom block content which comes from a custom module. In that content are links and I want those links to have the same functionality as the tab links, i.e. they should load new content into their respective tab.
There are two issues--one is to ajaxify links in content loaded by the initial click on the tab (or when the page loads) and then to again ajaxify links in content loaded after the user clicked on one of those ajaxified links.
Read moreCCK option field with dynamic option
I would like to create a cck field with dynamic options based on user's tag's input on the same form, can anybody help/showing me how to do this ? many thx
Read more