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
1answer
24 views

Error on Insert Map

I am using Drupal 7 and the Google Map Field module. When I click on the Insert Map button, the Firebug console shows this: TypeError: $(...).prop is not a function It seems like I need ...
-1
votes
1answer
16 views

Can Joyride Jquery Button take us to another page?

<li data-button="Welcome! Let's Start"> <h2>Stop #1</h2> <p>We will see this on first stop(Ask saheel what to be written here). Any valid HTML will work inside of ...
0
votes
0answers
11 views

How to Update a Ckeditor enabled field with Jquery

I'm having trouble figuring out how to update a field in Drupal which has ckeditor enabled using Jquery. It seems the field no longer responds with the identifier id when ckeditor is activated for ...
1
vote
0answers
43 views

How to create custom slider using Drupal(PHP) & Jquery? [closed]

I want to create a slider of images using Drupal(PHP) + Jquery. I was able to achieve this but get stuck in the error which is mentioned in below post:- Not able to overwrite old value in ...
0
votes
1answer
64 views

Not able to overwrite old value in Drupal.settings

I am facing Problems in overwriting old value in Drupal.setting. Problem Statement I am passing FID value from PHP to JS. At first it is getting correct value in JS. Ex. When PHP is passing FID=59 ...
1
vote
0answers
19 views

Joyride Instructions for first time login user only

I want to guide users when they login for the first time. I am planning to do it with joyride module. Right now, I can either show a link in a block or can start it automatically as the page is ...
0
votes
1answer
26 views

jQuery scripts not working on my Drupal theme

This script from JSFiddle that works: https://jsfiddle.net/ryXFt/704/ Does not work in my Drupal theme (yes, it does load, I can see it via Firebug). All I do is just wrap up the code to match Drupal ...
0
votes
0answers
15 views

Obtain CKEditor text field value with jQuery

Using a node--add .tpl.php file I can implement a jQuery javascript call such as var fieldTitle = $('#edit-title'); function titleChange() {window.alert(fieldTitle.val());} fieldTitle.change( ...
0
votes
0answers
11 views

can't edit panel, overlay stuck in loading

I'm trying to edit the content of a panel in my page because it came with sample data(Lorem ipsum....) when I installed a template I bought. When I click on edit I see an overlay that says "loading" ...
1
vote
2answers
78 views

How to animate set of titles of a View using JQuery

There is a View of latest news title linked to the node page and I need to display them like this Effect. I've trying to do it by creating a new template file for my views named: ...
0
votes
1answer
35 views

How to (reliably) add jQuery plugin to Drupal

This question has been asked, but not really answered. It is NOT as simple as has been suggested in This response If it were, there would be no reason to have a module like jquery_plugin Simply ...
0
votes
0answers
13 views

Static Leaflet Labels on Leaflet Maps in Drupal 7

I'm using the leaflet label module which creates labels on markers and polygons upon mouse hover. This module uses the leaflet library found on github. I'd like my labels static so they load when the ...
1
vote
0answers
23 views

Drupal alter some javascript of contrib module?

I am working on a project that implements the Drupalchat module. Everything works perfectly, but the client requests some custom changes. They want people to be unable to have private conversations ...
0
votes
0answers
22 views

Accordion Menu - jQuery seems to stop working on product page

for several hours I'm struggling to cope with the Accordion Menu in my webshop (Drupal Commerce). Here's the story... In my webshop, beside the default content types (Article and Basic Page), I have ...
0
votes
2answers
18 views

I am trying to use AJAX with Drupal 6. How do I determine the URL I am trying to contact?

I looked at the documentation here and it left me a bit confused. I don't need to access any files, I am just returning the date that is on the server to my Javascript code. (I don't want the ...
0
votes
1answer
69 views

Calling Jquery function from link onClick attribute

I'm trying to call a jQuery function from a link's onClick attribute but I get the following error: Uncaught TypeError: Drupal.behaviors.main.test is not a function. I created a simple module that ...
1
vote
1answer
199 views

remove query strings from static resource in template.php

I've read several articles throughout the web about removing query strings from static resource in the template.php file, after I saw a recommendation to do so in a forum, for better web-pages loading ...
0
votes
0answers
14 views

Open Image in colorbox based on url

I have a page that is a views (listings) of video gallery. When someone clicks on the video it perfectly opens in the colorbox. Now the problem is if I pass a certain query string and load the page ...
0
votes
0answers
33 views

Print value from Views field & HTML into Colorbox Image caption?

I have created a view for an image gallery with the images using the colorbox field formatter so that they open up in a colorbox window when clicked. I would also like to display the values from the ...
6
votes
3answers
216 views

Use drupal #states to check a radio

I would like to translate some jquery .change functionality to use #states in the form api. var radio1 = jQuery('input:radio[name=radio_1]'); var radio2 = jQuery('input:radio[name=radio_2]'); ...
0
votes
2answers
58 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
26 views

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

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
20 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
1answer
48 views

use jquery to add a div wrapper to a dynamically created drupal modual div [closed]

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
46 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
216 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
40 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
28 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
80 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
41 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
18 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
91 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
30 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
27 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
29 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
30 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
146 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
2answers
100 views

Display node add form in popup [duplicate]

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
66 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
161 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
16 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
35 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
109 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
53 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
52 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
29 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
91 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
26 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
73 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
76 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 ...