javascript

Fix for Fix for Making conditional fields with Drupal, CCK, and jQuery.

  1. Making conditional fields with Drupal, CCK, and jQuery.
  2.  
  3. by MatteusX
  4.  
  5. I'll be posting this as a handbook page at Drupal.org.
  6.  
  7. The Conditional Fields (http://drupal.org/project/conditional_fields

Fix for Javascript GOST R 34.11-94 hash function implementation

  1. /**
  2.  * Javascript GOST R 34.11-94 hash function implementation.
  3.  * Based on C-code by Alexei Kravchenko and Markku-Juhani Saarinen
  4.  * and Utf8 class by Chris Veness.
  5.  *
  6.  * Usage: gosthash("<strin

Javascript GOST R 34.11-94 hash function implementation

  1. /**
  2.  * Javascript GOST R 34.11-94 hash function implementation.
  3.  * Based on C-code by Alexei Kravchenko and Markku-Juhani Saarinen
  4.  * and Utf8 class by Chris Veness.
  5.  *
  6.  * Usage: gosthash("<strin
ratioswitch's picture

example sitename

  1. <html>
  2. <head></head>
  3. <body>
  4.  
  5. <script type="text/javascript">
  6.  var str = "My Site Name"; //Need to access Drupal's $site_name var instead of using string here
  7.  var arr = str.split(" ");
  8.  var s =

Fix for Fix for jQuery pattern

  1.  

Fix for jQuery pattern

  1. (function($) {
  2.   var self = Drupal.behaviors.foo = {
  3.     attach: function(context) {
  4.       if (!self.initialized) {
  5.         self.init();
  6.       }
  7.     },
  8.     init: function() {
  9.       // initiali

jQuery pattern

  1. (function($) {
  2.   Drupal.behaviors.foo = {
  3.     attach: function(context) {
  4.       var self = this;
  5.       if (!self.initialized) {
  6.         self.init();
  7.       }
  8.     },
  9.     init: function() {
  10.    

add JS in views hack

  1.  // this returns an array that can be used by the #attached attribute in the style 0 => script1.js, 1 => script2.js
  2. $includes = galleria_includes('classic');
  3.  
  4. // add this in the appropriate templa

Fix for Making conditional fields with Drupal, CCK, and jQuery.

  1. Making conditional fields with Drupal, CCK, and jQuery.
  2.  
  3. by MatteusX
  4.  
  5. I'll be posting this as a handbook page at Drupal.org.
  6.  
  7. The Conditional Fields (http://drupal.org/project/conditional_fields

Fix for Progressbar demo

  1. <?php
  2. /**
  3.  * page callback for javascript
  4.  *
  5.  * Normally I'd just include a javascript file
  6.  * but I wanted to put all the code in one file for this demo
  7.  *
  8.  */
  9. function progresbardemo_javas
Syndicate content