Linked Questions

2 votes
1 answer
3k views

Remove jquery script [duplicate]

Possible Duplicate: How do I update jQuery to the latest version I can download? In Firefox I get an unresponsive script error from Google hosted jquery but can't echo the problem on other ...
Scott Lawrence's user avatar
0 votes
2 answers
974 views

Change script in preprocess [duplicate]

Possible Duplicate: How do I update jQuery to the latest version I can download? I need to upgrade jQuery from 1.5 to 1.7 in Drupal 7. In Drupal 6 I could implement a hook_preprocess_html() ...
Shyghar's user avatar
  • 1,074
0 votes
0 answers
82 views

Need to change order of js in Drupal 7 [duplicate]

I have js jquery 1.10.1 min js which append after drupal.js. Due to that i got following Error: "Uncaught ReferenceError: jQuery is not defined drupal.js 5". So how can i change the order of js so ...
Meet R. Pachchigar's user avatar
11 votes
2 answers
7k views

How can I use jQuery 1.7 without having issues in the admin pages?

Is anybody successfully running jQuery 1.7? I'm using a jQuery component on my pages which requires jQuery 1.7 or later. This version causes some unwanted side effects in the admin UI, such as checked ...
no more drupal's user avatar
4 votes
2 answers
7k views

console.log() renders elements as "D.fn.D.init"

I have a strongly ingrained habit of using console.log() to pinpoint where an element is on the page. Usually if you had a page like this <html> <div>hello Drupal.stackxchange.com ...
Wray Bowling's user avatar
0 votes
4 answers
11k views

jQuery Uncaught TypeError: Object #<Object> has no method 'on'

I downloaded a jQuery Lightbox2 library (not module, just a raw library) and added the following in my custom module: drupal_add_js($libpath . '/js/jquery-ui-1.8.18.custom.min.js'); drupal_add_js($...
camcam's user avatar
  • 2,111
2 votes
2 answers
3k views

How to update to jQuery v1.11.1?

I'm trying to implement a full screen bootstrap carousel base on this tutorial. He mention to use the jQuery version 1.11.1. And I was wondering what is the best way to upgrade to this version. I'm ...
itsdarrylnorris's user avatar
1 vote
2 answers
2k views

Adding javascript in html.tpl

I am trying to add JavaScript in footer with drupal_add_js(drupal_get_path('theme', 'mytheme') .'/js/libs/jquery-1.7.1.min.js', array('type' => 'file', 'scope' => 'footer'));, but for some ...
user269867's user avatar
1 vote
1 answer
726 views

jQuery integration problem

I have an problem to get my jQuery code working with D7. In HTML it works fine but with D7 it doesn't work at all... the code: (function ($) { Drupal.behaviors.exampleModule = { attach: function(...
Jim's user avatar
  • 111
0 votes
1 answer
552 views

How to include jquery from URL in custom module?

I've got a question about module building and including JS. I'm working on a D6 custom module, and for JS files I'm including from within my mod drupal_add_js(drupal_get_path('module', '...
StephanieF's user avatar
0 votes
4 answers
135 views

nice menu mobile gesture

i've developed a project using Nice Menus module, but on mobile can't use well with submenus. So i thought to use JS injector to listen swipe on screen and make menu visible. i wrote this code $(...
Michele S's user avatar