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

Jquery Library Conflict Error in Drupal 7

I've been currently developing a module. Before it was working fine but as I started working on my module, the console throws an error every time I click a link in my Drupal admin menu. For example: ...
0
votes
0answers
9 views

Localizing the jQuery UI datepicker

I'm using the jQuery UI datepicker, but my query brakes when the Welsh version of the page is submitted. I gather that I need to initialise the datepicker with the Welsh language, when the site's in ...
1
vote
1answer
22 views

How to add an autocomplete field to a form

I've got a page that, in response to a button click, brings up a Bootstrap modal form. In that form is a textfield with the standard Drupal autocomplete behavior; it's working fine. I now want to ...
0
votes
0answers
14 views

How do I update an entity with ajax from a jQuery click event in Drupal 7?

I have a custom module for notifications as a block and I am trying to use AJAX on a jQuery click event to update a timestamp in a user flag for the current user. The module works without the AJAX. ...
0
votes
1answer
20 views

How to do autocomplete in a Bootstrap modal form?

I've got a D7 page that constructs a Twitter Bootstrap modal form; it appears in response to a click on a button on the page. I'd like to have in that form a textfield that uses the standard Drupal ...
0
votes
0answers
15 views

Couldn't find any Information on the net - Slide animation doesn't work in Flexslider

Flexslider module has 2 animation types: Fade and slide. Fade works fine, but when I choose Slide, The slider's images just disappear, and a blank, bordered image-screen appears. Note: It seems that ...
-1
votes
0answers
15 views

Eliminate render-blocking JavaScript and CSS in above-the-fold content using Advagg in drupal 7

I have some doubts on answer of milkytown2 answer at Eliminate render-blocking JavaScript and CSS in above-the-fold content I have followed milkytown2 steps to configure advagg in my project. But i ...
0
votes
1answer
17 views

prepend one div in body in .inc file

I want prepend one div using jQuery, But the div has to be generated dynamically, so I can not add it in html.tpl file. I have tried below code drupal_add_js('jQuery(document).ready(function () { ...
0
votes
0answers
20 views

JS file (drupal.behaviors) that does some simple jQuery works for anon users but not authenticated?

I have an issue where a JS file I've included with my theme using the .info file works for anonymous users but not authenticated. It has a unique namespace and using the debugger, the contents of the ...
-1
votes
0answers
9 views

To display a link if div text is present in a file [closed]

I am in need to display a html link if the div is present.Is there any options in jquery?
0
votes
1answer
15 views

display link after finishing coutdown time

I am using Jquery Countdown module. In this, user can display text message after completing countdown. But I want to display a link after completing countdown.
1
vote
1answer
13 views

JS error when using AddThis field displayed in a view

I keep getting this error: ReferenceError: jQuery is not defined }(jQuery)); when using an addthis field displayed in a view. Anyone has a clue what could be going on here?
0
votes
0answers
18 views

Having trouble selecting elements in jQuery with JS added on the form

I have a form with a file element and a button. When I click the button it is supposed to run some JS. I have tried three separate ways to get this to work but each way gives me a different result. ...
0
votes
0answers
11 views

Internal Server Error when creating view - where is it logged?

I am struggling with Views 7.x-3.8 on my Drupal installation. I was playing around with some modules, however I disabled all of them now, but there is still an annoying issue. When I navigate to ...
1
vote
1answer
9 views

using jquery updated version in user edit page

With jquery update module I can use newer JQUERY version in my pages and also in admin pages I use another version, 1.9 for pages and 1.5 for admin pages,my question is DRUPAL know user edit page ( ...
0
votes
1answer
21 views

Full height sidebar using jquery

I'm playing around with Drupal, and I am coding a subtheme of Zen. Now I'm stuck at something, I want to achieve a full length sidebar when the content isn't large enough, so that the sidebar takes ...
0
votes
1answer
30 views

Disable click event on Next button on checkout form's first step if all cart products are removed

I am new to learning jQuery and JavaScript. I have small task that is becoming hard to solve. On step one of a checkout form #ps-cart-checkout-form, I have to disable <div ...
-1
votes
0answers
14 views

How to play videos from different video providers like youtube, vimeo, dailymotion as a playlist in drupal 7?

Suppose I have 3 URLs of videos, First video url is of/from vimeo, second is from youtube and third is from dailymotion etc etc. How can I use these links as a playlist ? Like when first video from ...
0
votes
0answers
76 views

how to pass session id with services using ajax

i am trying to get authenticated data after login with services module. ive a drupal services set up at openshift and the htmls are in my devices. i managed to login, get authenticated, get the ...
-2
votes
1answer
15 views

why does the overlaying content in the admin mode not show up anymore? [closed]

Okay, my Drupal admin interface used to work just fine until I introduced some jQuery and CSS changes this morning for the mobile adaptive interface. Now, When I'm in admin mode and for example click ...
0
votes
1answer
12 views

Dim background elements when displaying submenu

I am developing a site with Drupal 7 and the requirement that I need to implement is that when a sub-menu is being displayed from the main navigation bar, the rest of the site (all the elements behind ...
0
votes
0answers
17 views

Problem with enabling FooTable module

I've installed the FooTable module but I can't enable it. The error message when I try to enable it is this: "The FooTable jQuery plugin is missing. See README.md for instructions on how to download ...
-1
votes
1answer
18 views

ajax update block on click to link

I am using jQuery Ajax Load module in my site to load some contents from url to show on specific div which has a required class. With this module I am able to fetch the Page content from URL through ...
0
votes
0answers
18 views

Popup is not loading in Entity Reference View Widget

I am getting this error "An error occurred while attempting to process /?q=system/ajax: params is undefined" while clicking attach button for Entity Reference View Widget. My jQuery version is 1.7.
0
votes
1answer
24 views

add jquery to drupal website

I want to add 2 jquery scripts to my website that have to be executed on every page. Smoothstate <script src="jquery.smoothState.js"></script> <script ...
0
votes
1answer
32 views

Make sitemap list collapsible

My sitemap is very big and too long. It would be very handy that this can be set as not expanded in default. How can I make the list, generated from the site map module, collapsible (or expandable) ...
1
vote
1answer
25 views

How can I use cookies on Webform?

I'm using Drupal 7 and Webform and I want, remember input texts on next submissions for registered users. How can I do it?
2
votes
1answer
78 views

jQuery events are lost after form reload

First I thought that this would not be a Drupal specific problem, but jQuery specific solutions didn't solved it. I hope you have some advices. I have a form with lots of fieldsets. To find the right ...
0
votes
0answers
16 views

CircularContentCarousel slider is not working if i use more than one time within same page in parallax

CircularContentCarousel slider is not working if i use more than one time within same page in parallax site.if i use slider more than one time but different id the first id slider only working..other ...
0
votes
0answers
38 views

How to call JavaScript or JQuery scripts in Drupal 7 blocks [on hold]

Since the Webcam module seems to have fallen into disrepair, I tried to create Blocks containing an <img> and a small <script to automatically reload it. An SO question gave me some hints how ...
0
votes
1answer
40 views

Drupal refuses to read/check cookie for anonymous users

I currently have a module which creates a welcome overlay upon a user's first visit, This should work by utilizing a jquery created cookie and showing the overlay based on its existence. The jquery ...
0
votes
0answers
26 views

Sending information from JS to Module File

In one of my webpage I print one button multiple times and all have different logId. I want that when user click then there will JQuery into the picture and there should be no server side post-back. ...
-4
votes
1answer
57 views

Modules like Scroll Reveal

I'm looking for a module like Scroll Reveal. The functionality is quite simple, when a user enters a viewport, content will be displayed using jquery effects. The outstanding issues for the ...
0
votes
1answer
54 views

How to validate file is selected or not on ajax processed drupal 7 jquery validation

Hi I am trying to do jquery validation on file upload for file is select or not. I want when user click on upload before submit check file is selected or not. if not stop ajax request. Any Idea to ...
1
vote
0answers
55 views

jQuery imageScroll not functioning properly with Drupal 7

I got the following error message on my Chrome browser when adding jQuery Plugin - Parallax ImageScroll in page--node--xx.tpl.php. The error is the "jquery.imageScroll.js" file not functioning ...
0
votes
1answer
45 views

Can't get jQuery UI autocomplete working

The text field that is created seems to just act like a normal textfield, no autocomplete function or any indication that it works at all. There's no errors in the console. I've run checks to see if ...
0
votes
0answers
41 views

Do not fire ajax on blur on textfield when a button is clicked

I have a textfield with autocomplete, ajax on blur, and a search button next to it: $form['order']['keyword'] = array( '#title' => t('Keyword'), '#type' => 'textfield', '#prefix' ...
1
vote
1answer
90 views

Can jquery code be triggered by ajax success?

I know that I can add any code inside ajax success like this $.ajax({ type: 'GET', url: element.href, dataType: 'json', success: function (data) { //mycode And ...
0
votes
0answers
15 views

Drupal AJAX, pass values

Because I want to be able to position (absolute CSS positioning) fields from a View, I'm making a custom module to add two new fields to a view (from a custom table). The part for linking the custom ...
0
votes
0answers
187 views

How to display google map field in hidden div?

I have a Google Map Field in my form. I'm editing the theme of the form and I'm using a jquery but the map is broken. The map is inside a div and the code of the template is this: And here is ...
2
votes
1answer
42 views

Views Load More: Showing X number of item initially

I have a view which shows 6 items per page using Views Load More (Ajax). However what I would like to do is, on the very first page I would like to show 6 items and when clicked on Load More button it ...
1
vote
1answer
148 views

Populate dropdown with data from database in Drupal7 using jQuery

Error is seen when i made a drop down list to populate data from Database. Database : dtable File in the template of hook_theme named : myModueForm_theme.tpl.php <?php $sel = "<select ...
0
votes
0answers
82 views

Using Ajax/JQuery to replace content in custom module in Drupal 6

I am relatively new to creating custom modules in Drupal 6. What I have is a page that displays some forms and a table. I am trying to implement a method to allow the user to enter data into the ...
-2
votes
1answer
138 views

jQuery - 'once' won't apply a toggleclass after a click action [closed]

I want a click on #parent to toggleClass a 'newclass', on the parent's child element, 'child'. The page has an AJAX call, so I need the function to only apply on page load. However, I can only get ...
0
votes
2answers
95 views

Drupal and Require.js not playing nice - double load of jQuery

I’ve been given a design library from a large cooperate client built utilizing Bootstrap 3 and Require.js. It’s very robust and well-built with the various scripts using Require.js to load jQuery. ...
0
votes
2answers
34 views

How do I include jQuery scripts at the bottom of the <body> tag?

I want to include a JavaScript file at the bottom of the <body> tag, and I only want to include it for a specific node type, but my node.tpl.php file's content is only wrapped by ...
0
votes
1answer
40 views

Where to write a jquery script for a registration form page which created using webform module in Drupal 7?

I have created a registration form page using the webform module. The registration form page contains personal info and billing info groups with fisrtname, lastname, email, age fields and a check box ...
0
votes
1answer
55 views

jQuery length of object to determine existence gives error?

The following jQuery in my module gives an error that breaks LOTS of other javascript on other modules on the page. I want to know why. Why? var pid = $('input[name="product_id"]').attr('value'); ...
0
votes
2answers
28 views

how to connect to database for form submission

I have website and on its home page there is form in which user enter his own label .As user enters label if the user with same label exists in database it through message that "This Label already ...
0
votes
1answer
42 views

Undesired toggle effect with #states and checkboxes

I'm working on a patch for the Login Disable module, and on the settings page, I want to have two mutually exclusive options so that when one is checked, the other is unchecked. Using the FAPI #states ...