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
2answers
33 views

How to call a javascript function?

I have included in my theme a new javascript library(Easy-Responsive-Tabs-to-Accordion) which converts horizontal tabs to accordion. So I have included in my .info theme scripts[] = ...
0
votes
1answer
15 views

Make header small on scroll down and large on scroll top [on hold]

I see some websites when i scroll down the size of their header becomes smaller. But when i scroll top its size revert to original. Is this the functionality of "CSS" or with help of "Jquery"? I want ...
0
votes
0answers
9 views

In module, callback data to jquery not received correctly

I have a custom module with a callback to some jquery (trying to refresh content of a block created via the module). I can get the jquery to be activated, but it does not seem to receive the data that ...
0
votes
0answers
20 views

use jquery to add a div wrapper to a dynamically created drupal modual div

I need to add a div with class=row around a bunch of divs that are being dynamically created by a drupal module (cant do it in the view either) i was trying this, but since it is created dynamically, ...
0
votes
0answers
17 views

sf.touchscreen.js causing unintentional hover effect on iOS

I was hoping someone could help me isolate and extract the snippet responsible for triggering the :hover/:focus css, from this Superfish plugin js. Basically when ‘long’ touching any link on the ...
0
votes
1answer
70 views

Refreshing a block using AJAX

I am trying to apply the example from [the Flag API page][1] to refresh a block dynamically via AJAX. I am looking into customised jQuery code because my block is created via a module, not a view. I ...
0
votes
0answers
15 views

Why does The special menu items module break the bootstrap dropdown?

Hi Guys this is my issue on my parent menu item i am using the<nolink>shortcode to leave the link blank however in my tree i have 3 items underneath it. If i add <nolink> the menu item ...
0
votes
0answers
18 views

Pretty Tag display for entityreference (autocomplete)

I'm using entity reference and entity reference autocreate to make entities on the fly if they don't exist. Works like a charm. Now I would like to make a nicer tag display. The standard comma ...
1
vote
1answer
30 views

How to refresh a coded block when a flag is clicked in it?

I have created a block in which I display a flag. All of it is done programatically. The content of the block changes depending on the flag status, but when a user clicks on the flag, it does not ...
0
votes
0answers
25 views

Plugin still uses the old version of Jquery even after hook_js_alter

I have drupal-7.34 installed and Im using Jquery Update 7.x-2.5 to make my plugins work. Everything is working fine until I had use a plugin which needs a more recent version of Jquery(jquery ...
0
votes
0answers
14 views

Alter js in Some Certain Conditions

I am using hook_js_alter to use a newer version of Jquery. function myid_js_alter(&$javascript) { // Swap out jQuery to use an updated version of the library. ...
0
votes
1answer
38 views

Uncaught TypeError: Cannot read property 'fn' of undefined

This occur after I added a Photobooth plugin in my hook_init function: function myid_init() { drupal_add_js(drupal_get_path("module", "myid") . "/photobooth-js-gh-pages/photobooth_min.js"); ...
1
vote
1answer
20 views

Using #states API with an image field as a control field

On a form, is it possible to use #states to hide/show a field based on whether or not an image field has been filled in? More specifically, I'd like to get this node form: to only show the "Show ...
1
vote
0answers
18 views

Move controls of Colorbox into node

I am using Colorbox (v. 7.x-2.8) and Colorbox Node (v. 7.x-3.5) to display some nodes in a Colorbox. I would like to move the controls (previous, next, etc) into the node that is displayed in the ...
0
votes
0answers
24 views

Jquery Plugin Doesn't Work when 2 Customized Modules are Enabled

I have two customize modules and they both use a Jquery Plugin: Barcode Generator. First Module function myid_init() { //Barcode Plug-in drupal_add_js(drupal_get_path("module", "myid") . ...
0
votes
1answer
20 views

How to find if file was successfully uploaded to webform

I am using the file field in webform, I would like to check if the file was successfully uploaded. I was using .onChange But that only means that a file was attempted to be uploaded. How can I ...
0
votes
1answer
33 views

Add query parameter from url to all links on the page

How to Add query parameter from url to all links on the page? Basically I want to get the Query parameter from url and then attach that on all the links on the page. JQuery or PHP, Any solutions? ...
2
votes
0answers
42 views

Display node add form in popup

I want to display node add form of a particular content type in a pop-up for anonymous users too. There are posts related to displaying a node content in pop-up but not about node add form. I have a ...
1
vote
0answers
30 views

Drupal form #ajax callback and javascript toggleClass on radio buttons - reduced functionality

we're using drupal and I have setup an ajax callback on a form item. The form item is a radio button with two options on/off. also attached to the radio button is some js to toggle a class. The class ...
-1
votes
1answer
89 views

Using jquery-match-height to set two blocks to equal height

I'm new to jquery and adding it to Drupal. I'm trying however to add this library to my Drupal site so I can set two of the blocks on my home page to equal heights. But it's not working and I'm not ...
1
vote
0answers
13 views

'Manage display': new fields not draggable

When I try to drag'n'drop a field under 'Manage display' / inside a view mode (e.g. "Teaser") it just doesn't stay above the Hidden fold. First the confirmation message is shown. But as soon as that ...
1
vote
0answers
17 views

drupal 7 AJAX loaded node returns two different formats

hi I'm loading some node info via AJAX and in one instance it works fine, the other instance I get raw information back, I'm not sure if this raw info if JSON (as I'm not sure what JSON is), but what ...
1
vote
0answers
36 views

Ajax load node via jQuery

I'm having a bit of an issue with Ajax appearing inconsistent when loading my nodes. I initially followed the advice in this blog http://mrkadin.com/blog/node/70 which appears to work perfectly ...
1
vote
1answer
45 views

Anyone know how to build a menu like this? [closed]

We are redesigning a site for a client and they're wanting to create a menu similar to the one found here (the big menu below the header, not the hamburger menu at the top left): ...
0
votes
0answers
21 views

How to customize entityreference checkbox widget?

Here is my case: Field: Food Field type: Entity Reference -> View Widget: Checkbox/radio button Instead of having the checkbox button before the entity reference details, I wanted it to be inside ...
0
votes
3answers
28 views

Module conflicting with JQuery

I've set up a simple hide-show.js file for my website and I'm working on a module as well. Problem is, if my module is active, the JQuery for the page doesn't work, is there something I need to do to ...
0
votes
0answers
53 views

append meta data for same url with different query string using jquery

I am new to Drupal. I want to append the url parameter as well as meta data for the same content page onChange or onSelect through jquery. How can I do this?. Your help will be greatly appreciated. ...
0
votes
0answers
23 views

creating a view shopping cart with in a view my bag .view should appear in pop up

I need help in creating above functionality, a my bag view on clicking it a pop up of cart page view should appear. as I am not understanding where to start ,I have created a shopping cart page ...
0
votes
1answer
41 views

Load Javascript when a particular form is loaded

I have the code below in my own drupal module(myid): myid.module file: function myid_init() { drupal_add_js(drupal_get_path("module", "myid") . "/js/myid.js"); } function myid_menu() { ...
1
vote
1answer
34 views

Responsive Views-Slideshow Json Cycle working good in Chrome not in IE or mozilla

In drupal I AT themes, views with slideshow of json2 and cycle plugin. I set the options for the plugin like this : Make views slideshow responsive - remove inline styles height auto , width auto ...
0
votes
2answers
108 views

Farbtastic color picker to change the background color of text field input?

I have taken this JS from the field_example module. I am attaching it to a form textfield element so that when a user brings focus to it the Farbtastic color picker widget pops up and allows the user ...
0
votes
0answers
18 views

Problem with Bootstrap Theme and Jquery Multi

I was using the bootstrap theme for drupal and jquery update and everything worked ok. But by client requirements I have to use Jquery Multi instead of Jquery Update and now, this returns two errors: ...
0
votes
0answers
29 views

Applying javascript to an ajax quicktab result

I have made an interface with some quite sophisticated functionality - tabs (module Quicktabs), containing views (module Views) from nested taxonomy (module views tree), containing tables which are ...
1
vote
1answer
23 views

How to create inline node-add forms using a block with content type names

The following page setup is needed: A block (at the left, see image) with links to node-add forms, which open inline (the area at the right) in the current page. The reason why the form needs to ...
0
votes
1answer
62 views

Array and Select Options

I have the following code working together with a scrip that populates fields on autocomplete. What I would like to do is instead of having an autocomplete text box - use the city field in a drop ...
0
votes
0answers
10 views

How to use JqueryMulti?

I have a site theme that needs to use Jquery 2.1.3. The theme uses on() and affects the node/add form, so I also need Drupal's default Jquery 1.4 to be running, otherwise the default Drupal scripts on ...
0
votes
1answer
34 views

Fieldgroup accordion does not open to first field of group

I am using the accordion group and item via the Field Groups module. If I open an accordion group, scroll to the bottom of the group and then click on the next one to open, the new group opens in the ...
1
vote
0answers
33 views

Undefined is not a function error

I have a jquery code that is supposed to complete certain fields on my webform but am getting an Uncaught TypeError: undefined is not a function for the following line: ...
0
votes
1answer
40 views

OnClick Event not Captured

I was currently developing a module(myid) in Drupal. I made a button(#myid_registrar_button) that must alert whenever it is clicked. Below is my code: myid.module file: <?php function ...
2
votes
1answer
97 views

Any way to alter script tag for some javascript and add custom attributes?

In order to work with Cloudflare's Rocket Loader service, certain scripts need to have their script tags updated with the cf-async="false" attribute like so: <script type="text/javascript" ...
0
votes
0answers
29 views

Views slideshow use background instead of image

I am going to show you how to use a background image instead of a image in views slideshow. I am building a site with a centered slider, the images must be 100% the width of the screen, and centered. ...
0
votes
0answers
28 views

how to refresh a view content pane each time a group of tabs is clicked without page refresh

Hi guys I need some help, I have used Swiper in my views to create a slide of contents, and have a views content pane which brings 4 items at a time sorted randomly. A random sort works with a page ...
0
votes
0answers
16 views

Is it possible to port a jQuery module using ProtoType.js to Drupal 7?

I've been the maintainer of an integration module for phpFreeChat since Drupal 5. I ported it to Drupal 6 with no problems, and I tried to port it to Drupal 7, but it hangs when the chatbox starts to ...
0
votes
1answer
63 views

How to parse PHP variables in drupal_add_js in template.php

I'm using drupal_add_js for some inline jQuery - I need to parse some php variables in the inline jQuery, what is the correct way to do it? drupal_add_js('jQuery(document).ready(function () { ...
0
votes
0answers
43 views

drupal default image field without “remove_button” on edit form drupal 7

I have created one event content type. On which I Have field_event_picture image field. Now what I want is, when user edit event form user will click on field_event_picture and browse popup comes up, ...
1
vote
3answers
68 views

My .js file is not included in my site

I am working on Recruiter distribution which uses a Cloudy theme. I have tried 2 ways to add custom javascript to my site: 1)Adding jquery code to the .info file of Cloudy theme(default theme) ...
0
votes
0answers
16 views

jQuery behaviors [duplicate]

I'm designing my first drupal theme and I'm not very well experienced in this kind of stuffs. I tried to add some jQuery to my design so I saved this code into a .js file and add it to my theme.info ...
1
vote
0answers
87 views

Why am I getting undefined is not a function when using jquery?

HTML more code here... <script type="text/javascript" src="//code.jquery.com/jquery-1.10.2.min.js"></script> <script type="text/javascript" ...
0
votes
0answers
21 views

ahah fields in custom form stopped working after migration

I migrated my drupal 6 website to a new machine. my custom form with ahah-fields are not working in the new server. OLD => NEW ............................ ubuntu => 9.10 => ...
0
votes
0answers
13 views

Simply hide View rows with instant JS exposed filter

Is there a module for this? IE: the view is showing all results, the exposed filter is just a select element which will hide (with javascript instantly without AJAX or page reload) all rows without ...