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
52 views

Suddenly I don't have any jQuery in the site [on hold]

I have a Drupal 7.39 site with a fresh, Bootstrap sub-theme. Suddenly I don't have jQuery in the site --- Dropdown menus won't work, accordions wont work, Emerging side-menus, etc... It's the second ...
0
votes
0answers
19 views

Infinite Scroll on Drupal 7 with AJAX

I am trying to create an Infinite Scroll system to display past events on a page. What I want is, when the top of the page is reached, I want to load past events. I created the following JQuery: ...
-1
votes
0answers
20 views

Problem in manage display in content type [on hold]

I used semantic ui template but there is one problem, please help me;
0
votes
1answer
57 views

How to fix the garbled text in my text editors?

When editing my nodes all of my saved data is displayed garbled. This is the warning I get on my node/edit pages: "Synchronous XMLHttpRequest on the main thread is deprecated because of its ...
0
votes
0answers
6 views

Leaflet appears as Grey Box and Zoom not working

I am using geofield and leaflet.widget in a content type field. I have a leaflet view containing nodes with these field locations. Upon displaying the view at first a grey box appears in place of the ...
0
votes
0answers
23 views

Show user info in DIV based on link click

I'm currently trying to make a 'biography' block with Drupal profile pictures and when you click on them more information (user fields that has been filled in by the Drupal user) will dynamically ...
1
vote
2answers
50 views

How to alter default ajax_view default ScrollTop?

In ajax_view.js, the code responsible of smooth Ajax View ScrollTop when changing the exposed filters is the following : Drupal.ajax.prototype.commands.viewsScrollTop = function (ajax, response, ...
0
votes
1answer
16 views

Facebook images timeline block

Is there a module and/or jQuery solution how to show multiple images in a block like the Facebook gallery on people's timeline? The images are always well aligned regardless of their size and ...
0
votes
3answers
29 views

How do I include a jQuery in the body of a content type?

I try to include a jQuery in the body of a content type, as shown in the image below: The purpose of this jQuery is to hide a div with id="test", so that the text aaaaaaaaaaaaaaaaaaaa in it is not ...
0
votes
0answers
21 views

Problem getting Owl or Bootstrap carousel work inside colorbox

View Bootstrap carousel works fine on the node page, but through EVA module the carousel block is inserted in display suite for colorbox. When click on thumbnail, colorbox appears. The bootstrap ...
0
votes
1answer
23 views

How to Pass UID of Current Logged In User to jQuery JsBarcode within iframe

I'm using JsBarcode in a jQuery file within an iframe embedded on a Basic page (both the Drupal installation and this jQuery file share a root folder). How can I pass the Drupal UID of the currently ...
0
votes
1answer
22 views

Using Drupal Tabs for Fields or jQuery [closed]

I'm trying to get the "check our my video" section to show up in a horizontal tab format. right now, the users h ave up to 4 links to add here, so it would be different sizes most of the time. I'm ...
0
votes
0answers
14 views

Making First Login and zurb Joyride Module to work together [closed]

I want first time logged in users to guide. I am using Joyride module for that but I can not guide only first time logged in users. I tried using "First Login" Module for that but that thing is not ...
0
votes
1answer
28 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
19 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
16 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
55 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
69 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
25 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
31 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
32 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
16 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
85 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
36 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
23 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
26 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
25 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
22 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
143 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
295 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
15 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
37 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
246 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
82 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
37 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
21 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
60 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
55 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
368 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
48 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
30 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
105 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
48 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
19 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
114 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
34 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
29 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
37 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
167 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? ...