jQuery is a fast and concise JavaScript Library that simplifies HTML document traversing, event handling, animating, and Ajax interactions.

learn more… | top users | synonyms

0
votes
0answers
5 views

Module for animation when link is clicked

If a user clicks ANY of the links on the drupal site I am setting up, I want to show animation before the transition to another node/page. Is there a module for this? Or would jquery work/how would I ...
0
votes
0answers
18 views

Drupal load jquery plugin file with error: Uncaught TypeError: undefined is not a function [on hold]

I am new to theme develop, I load a js file that contain some jQuery code. this following is my error screenshot from chrome develop tool. But I run the html in local, it work fine: It seems ...
0
votes
0answers
22 views

How to make ajax call in jquery in custom module form api drupal 7?

Background: I am using module manualcrop within custom module using form api, where user upload image ( with managed_file type ) and can crop it and save the form. I want to show a preview as soon as ...
0
votes
0answers
18 views

Display a page portion from another page [closed]

May be this is not connection with drupal, Sorry for that may be someone will help me on this scenario, I have two pages as like the image, if i click on page 2 link that i want to load the page 1 ...
-1
votes
0answers
21 views

Drupal / Jquery Toggle + Mouseout

Currently I have 2 divs that can be hidden or shown when their respective parent divs are clicked. This works great and the div closes if the parent div is clicked again. How would I go about adding ...
3
votes
1answer
23 views

How to override jquery update preprocess page

The objective is to exclude certain javascript files from some sections of the website. I exclude javascript and css files in this way in the template.php file of the theme: function ...
3
votes
2answers
93 views

How do I make a Drupal 8 theme require Jquery (for anonymous users)?

I'm creating a theme for D8 called 'herchel'.I'm trying to get this theme to require jquery on all pages (D8 doesn't load Jquery for anonymous users by default) Looking through the what little ...
0
votes
2answers
48 views

My javascript is making the drupal admin menu disappear. Not sure how though

Ok, so any time I try to view a page on my Drupal 7 site while I am using either drupal_add_js(drupal_get_path('module', 'floormap') . '/includes/javaScript.js'); or ...
1
vote
0answers
31 views

Disable form altering for admin pages on Bootstrap 3

My default theme is Bootstrap but I use Shiny theme as admin theme. Bootstrap theme alters the forms and fields. And I use Hierarchical Select module, there is a dropbox for multiselection and the ...
2
votes
1answer
74 views

When using hook_form_alter to modify a content type's node add / edit form, where do I put the #states property?

This is actually a compound question. All in all the question is: When using hook_form_alter to modify an existing content type's node add / edit form, where do I put the #states property, and, ...
0
votes
1answer
24 views

User relationship module - error strict warning: Only variables should be passed by reference

module name: User Relationships. module version is: 7.x-1.0-alpha5 whenever i try to add relationship type or edit it give me this error: Strict warning: Only variables should be passed by ...
1
vote
1answer
65 views

How to prevent jQuery from loading during ajax callback

Using Drupal 7's implementation of jQuery and Drupal.behaviors, how can I get some of my jQuery to run only once when the page is initially loaded, and the rest to run when the page is loaded AND ...
0
votes
2answers
66 views

Hover over image and display above like EBAY and AMAZON [closed]

I've tried searching but i cant figure out how to achieve this effect. Basically i have a VIEW of a content type PICTURE. In the view a main Image is displayed and 3 other images displayed below it, ...
1
vote
1answer
26 views

Route AJAX failure messages to console instead of popup

How can I prevent ajax failure popups and instead route the failure to the console log instead? Is this something I can do with Drupals implementation of jQuery?
0
votes
1answer
21 views

How to get jquery switchClass working in Drupal 7

I want to use the jquery "switchClass" in a Drupal 7 Website. I already got the jquery accordion and tabs working, by adding the library in this way: drupal_add_library('system', 'ui.tabs'); ...
0
votes
1answer
27 views

Get node path via javascript

I am attempting to add history states to view items that are loaded using the infitine scroll module. On my first attempt, I am adding the following code to the infinite scroll.js file in the load ...
0
votes
1answer
52 views

Stop Youtube when changing between tabs (Quicktabs)

I am trying to stop a Youtube video when I change between tabs using QuickTabs but the video is still running, even in the iPad, I can even play the both videos, in this case Trailer and Full Movie at ...
1
vote
3answers
88 views

How to create the slideshow as the background slideshow using drupal 7?

We are currently developing a single page responsive site in drupal 7.In our home page we tried implementing slideshow through view slideshow module (drupal 7). The slideshow is working perfectly ...
0
votes
0answers
29 views

Views Quicktabs format

I am using views with its format as "Quicktabs" and Node Hierarchy module. Child pages are displayed as tabs in the same parent page. Tabs are generated dynamically through child node content with its ...
0
votes
1answer
31 views

how add js files to create a responsive theme?

is possible to add these files http://alvarotrigo.com/blog/fullpage-jquery-plugin-for-fullscreen-scrolling-websites/ in a theme? I created from scratch and from Zen without success. some how i think ...
-1
votes
2answers
52 views

Drupal 8 Add Javascript [duplicate]

What is the best way to add javascript to Drupal theme now that drupal_add_js is gone? I want to use specifically jQuery ui animate, which I suspect is in Core, but I cant find out how to add it to ...
0
votes
1answer
22 views

Views Ajax error with jquery 1.8

I'm using Bxslider which required jquery 1.8 to be responsive. However, when using jquery 1.8 I get errors with views when trying assign and change values. How should I solve this problem?
0
votes
0answers
32 views

Receiving internal error autosave/handler 403 forbidden

I am using autosave module. When I log out and log in, after restoring when autosave handler tries to save again I get another through inspect element which is autosave/handler 403 forbidden. If I ...
0
votes
1answer
24 views

using ajaxComplete with drupal quicktabs

I am trying to use .ajaxComplete() on my quicktabs but i cant seem to get it to hit. Would anyone have any ideas? jQuery('#quicktabs-tab-find_a_doctor-1').click(function(){ console.log('CLICKED'); ...
0
votes
1answer
35 views

How to set a banner slideshow to run if images are only fully loaded

I am new to Drupal, and not that good in Jquery. I just created a Drupal animated banner in Jquery. Each banner image is kinda large about 500kb each jpeg. My problem is, the banner images starts to ...
0
votes
2answers
117 views

how can I use jquery autocomplete in drupal 7

I want to use jquery autocomplete jquery plugin, I test below code but nothing happend, I check, the file added correctly and there is not js error. function ...
0
votes
1answer
11 views

Call a drupal behavior method from inside another behavior

How do you call a drupal behavior method from inside another behavior? My example below (function ($) { Drupal.behaviors.exampleOne = { attach: function (context, settings) { ...
0
votes
0answers
23 views

view_slideshow incompatibility with jquery_update 1.8

I installed view_slideshow and it works correctly but after installing jQuery_update and setting the version to 1.8 it suddenly stopped working. again I changed the version to 1.7 and it again worked. ...
0
votes
0answers
36 views

Reloading Webform after confirmation message using AJAX mode

I am using Webform with ajax mode. I have added the Webform in block so as only the block is refreshed instead of whole page,its working fine. All I want to do is open new form after getting ...
0
votes
0answers
57 views

check webform is successfully submitted by ajax or not

i am using ajax webform module to submit a webform in block via ajax.the form is submitting properly with ajax without refreshing page. i want to hide a div on successful submision after validation ...
0
votes
1answer
21 views

Adding sitewide JS file in module

I have a module that will provide a dropdown when creating a new block. Selecting either none, option 1 or option 2 will add a corresponding class to that block. That class will be targeted by a small ...
0
votes
2answers
49 views

Hide a div on webform submission using ajax

I am new to drupal i am using webform ajax module to submit my webform , its submiting values properly after validating them , but along with this i want to hide a div also on submit . what is the ...
0
votes
0answers
24 views

How to configure annotator and annotation modules in Drupal 7?

I would like to provide an MS Word -like annotations (review comments) functionality in some text areas of my Drupal 7 website. I have experimented with the co.ment and annotator - annotation Drupal ...
2
votes
2answers
216 views

Is jQuery interpreting it wrong? or Drupal outputting wrong?

I'm facing a peculiar problem. My Drupal website uses Jquery 1.4.4 version. As you all know, Drupal outputs Drupal.settings json to Javascript as: when I enable devel_themer module: The following ...
0
votes
0answers
34 views

JavaScript Conflict in Fivestar Module

I have added Fivestar Module as a Field (Widget: Rated while Viewing) in my content type. Before Adding the Module, My display was fine as in the picture below: After Adding Fivestar, the display ...
2
votes
1answer
53 views

ApacheSolr Search results with AJAX (D7)

I've been searching the web for ways to display my search results directly in a block after submitting the input form with AJAX. Unfortunatly, i haven't found alot of good information on this ...
1
vote
0answers
50 views

Fixing D7 Bug: Block caching within views breaks JS

I have a number of block on pages throughout my site which use views. Within these blocks I have slideshows(flexslider) or use masonry to produce a dynamic layout. If I enable block caching the JS ...
0
votes
1answer
31 views

Searching thousands of nodes quickly using advanced searching - datatables?

I have a site that has thousands of nodes. I want to be able to use some kind of search so I can browse by title. I tried datatables module which works great for the visible nodes in the view - if I ...
0
votes
0answers
68 views

Set focus back to the textbox after selecting date using date_popup

I am using date_popup in my custom Drupal Form. Every thing is working fine. The problem is that I am using client side validation and when I click on the text field to select a date the client side ...
0
votes
1answer
516 views

is it ok to have multiple versions of jquery?

I'm facing some peculiar problems(my devel_themer is also not working). There are multiple versions of jquery included. Its not me who included them, its different modules: <script ...
2
votes
2answers
92 views

Drupal ui inside module

Am i doing wrong to define, jQuery Accordion inside my .module file, just like this: <?php drupal_add_library('system', 'ui.accordion'); Drupal no longer loading jquery itself.
0
votes
1answer
48 views

How to dynamically pass a user field value to jQuery?

I have a notification bar with a counter, it actually prints the user's "notifications" field value (if it's greater than 0): <div id=container> <a href="#" ...
0
votes
2answers
68 views

Jquery not working in Drupal 7

I have this code in page.tpl.php which is a link that toggles an option menu and makes the first link "I'm a link" become red: <a href="www.google.com" class="select1">I'm a link</a> ...
1
vote
2answers
53 views

with BEF collapse expand items under their parent

How to collapse and expand items under their parent using better exposed filter and Nested Checkboxes .. What i mean ...that all the child items to be collapsed and they expand when the user click on ...
0
votes
1answer
238 views

How do I get third party jQuery plugins to work with Drupal?

I am trying to use the Slider Revolution jQuery plugin (from ThemePunch) on my Drupal site to create a slider on the front page. I cannot for the life of me figure how to get this working. I have ...
0
votes
1answer
28 views

Insert a collapsible fieldset or region in a panels layout

I created a custom layout for a panels display and I would like to have a region or multiple regions in my custom layout be collapsible with javascript/jquery. Ideally the state of the collapible ...
0
votes
0answers
17 views

Troubleshoot hook_library_alter() not being called for the jQuery Update module

I have the jQuery Update's development shapshot version 7.x-2.x-dev installed and enabled. The version jQuery configured in UI is not being imported. As result, it is importing version 1.4.4 instead ...
0
votes
1answer
46 views

Attaching a system js library using #attached property (D7)

When defining a form using the form api I can attach my own css and js like this: $form['#attached']['css'] = array( drupal_get_path('module', 'my_module') . '/my_css_file.css', ); ...
1
vote
1answer
80 views

Behaviors/JQuery: What's the standard/convention in Drupal 7 for running Jquery code on event *OTHER* than DOM ready?

Searching online docs so far and I've found much about Drupal Behaviors running when the DOM is ready i.e. the ready JQuery function. But what about for example if I want my JQuery code to run once ...
0
votes
1answer
69 views

Make autocomplete window appear above accordion pane

I have created a node add form using the field group module to put the form in a jQuery accordion. I have a auto-complete field that is at the bottom of one pane so the div that appears that lets ...