jquery

Fix for Fix for Fix for jQuery to change banner on page

  1. Drupal.behaviors.setBanner = function (context) {
  2.     var img = {
  3.         '/content/services': 'Banner2.jpg'
  4.     }[location.pathname] || Banner1.jpg';
  5.    
  6.    $("td#header").css("background","ur

Fix for Submit and hide a form

  1. $(document).ready(function(){
  2.  
  3.   //removes submit button - assumed the class of the button is "form-submit"
  4.   $('.form-submit').remove();
  5.  
  6.   //adds a new submit button to the form with the class

Submit and hide a form

  1. $(document).ready(function(){
  2.  
  3.   //removes all 'Vote' submit buttons
  4.   $('.form-submit').remove();
  5.  
  6.   //adds a new submit button
  7.   $(".my-form").append('<input type="submit" value="Submit" class

Fix for Fix for jQuery Form Plugin's POST is incorrect

  1. // $_POST after browser form submit:
  2.  
  3. Array
  4. (
  5.     [title] =>
  6.     [taxonomy] => Array
  7.         (
  8.             [1] => Array
  9.                 (
  10.                     [hierarchical_select] => Array

Fix for jQuery Form Plugin's POST is incorrect

  1. // $_POST after browser form submit:
  2.  
  3. Array
  4. (
  5.     [title] =>
  6.     [taxonomy] => Array
  7.         (
  8.             [1] => Array
  9.                 (
  10.                     [hierarchical_select] => Array

Fix for jQuery onChange not taking effect

  1. Here's the form:
  2.  
  3.  <div id="pager"><div class="pager-title">Test Feature Package 2</div>
  4. <form action="/node/19"  accept-charset="UTF-8" method="post" id="pager-navigate-form">
  5. <div>Go to: <div c

jQuery onChange not taking effect

  1. Here's the form:
  2.  
  3.  <div id="pager"><div class="pager-title">Test Feature Package 2</div>
  4. <form action="/node/19"  accept-charset="UTF-8" method="post" id="pager-navigate-form">
  5. <div>Go to: <div c

Fix for jquery xmlrpc plugin

  1. window.jQuery = window.jQuery || {};
  2. window.jQuery.fn = window.jQuery.fn || {};
  3.  
  4. jQuery.fn.rpc = function(url, dataType, onLoadCallback, version) {
  5.         version = version || "1.0";
  6.         dat

Fix for Fix for jQuery to change banner on page

  1. Drupal.behaviors.setBanner = function (context) {
  2.     var img = {
  3.         '/content/services': 'Banner2.jpg'
  4.     }[location.pathname] || Banner1.jpg';
  5.    
  6.    $("td#header").css("background","ur

jQuery scroller

  1. // The following example assumes you have:
  2. // * An outer div with id="latestnews-scroll" and CSS overflow: hidden
  3. // * An inner div with id="latestnews-scroll-inner" and CSS position: relative
  4. // *
Syndicate content