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

How to call JavaScript or JQuery scripts in Drupal 7 blocks

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 ...
-7
votes
0answers
23 views

I need harvard university kind of slider [on hold]

Please click this link http://www.harvard.edu/, which was slider used in this website. I need the same slider module for drupal 7. Thanks in advance.
-2
votes
0answers
12 views

Fancy Login Module Clearing form after closing

I need to clear my form after a user closes out the fancy login form. Here is my javascript. function popupCloseListener() { $("#fancy_login_dim_screen, ...
-3
votes
0answers
14 views

encription submission login issue with chrome [on hold]

jquery.jcryption.js Uncaught TypeError: Cannot read property 'jCryption' of undefined Uncaught TypeError: Cannot read property 'lib' of undefined. And also issue with when empty filed ...
0
votes
1answer
22 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
1answer
20 views

Not able to call jqeury ajax method in sharebar module [closed]

I'm trying to use jquery methods to get tweets count. I'm using module sharebar and customizing as per my need. I have span with id "twi_count" to set the value using below code. But because of some ...
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
36 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
18 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
27 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
15 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
30 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
21 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
10 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
23 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
0answers
19 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
61 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
20 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
50 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
54 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
26 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 ...
-1
votes
0answers
18 views

Is there any awesome and easy use jquery image gallery module or plugins? [duplicate]

Dose anyone can share any awesome jquery-based image gallery plugins or Drupal modules? Or when you have to make such functionality, how did often solve the problem? (Coz it is time-consuming to code ...
0
votes
1answer
23 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 ...
-1
votes
0answers
23 views

Ajax works with some roles in drupal

I know the title isn't explicit but i have a problem with my ajax function and the differents roles in drupal. I created two function in my code and none is working when i used a normal role like ...
0
votes
1answer
24 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
21 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
26 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 ...
0
votes
2answers
28 views

Colorbox plugin installed but status report is not recognizing it [closed]

I have installed the Colorbox plugin version 5.1.14 in /sites/all/libraries/colorbox but on the status report page I get the following: You need to download the Colorbox plugin and extract the ...
0
votes
2answers
58 views

call js in html.tpl.php [closed]

I want to add smoothstate script to my pages. I have to call 2 files at the bottom just before closing body-tag. Smoothstate.js and Functions.js. How can I call those 2 js in my html.tpl.php ...
0
votes
3answers
85 views

How to add custom Jquery in drupal module? [closed]

I have created a custom module in drupal 7. The module creates a form for user and store the form's data into database. The module is working fine. But I want to add a custom jquery for the page. I ...
0
votes
1answer
62 views

Drupalgap exposed filter for data and select field

I spent all weekend trying to make this work, and couldn't figure it out. How do I create a views exposed filter for date and a text list on a given node? My setup - I have a view that is exposed as ...
1
vote
1answer
50 views

Put node url in href to all img tags with jquery

I have a drupal site and i want to put all nodes url to all img tags! With bellow code can do this but all img linked to the same post url in the main pages, because take the link of the final post ...
1
vote
1answer
62 views

Drupal-8 Css styles not working while included in .info.yml file

For some reason my theme cant find css/style.css in drupal 8. This is the .info.yml: name: Adminimal type: theme description: Drupal Administration Simplified. # version: VERSION # core: 8.x base ...
3
votes
2answers
121 views

Why do I need to use .live() in Drupal Behaviors?

I am trying to be a good boy and use Drupal Behaviors to manage my JavaScript. My understanding is that one of the advantages of using Behaviors is that it frees you from having to use .live() to bind ...
0
votes
1answer
46 views

Reset a page with multiple exposed filters

I have a view page which is the main page on my website. It is kind of a search using exposed filters. As I have many exposed filters I installed the module MEFIBS which allows me to split the exposed ...
1
vote
0answers
30 views

Is it possible to build a form with jQuery and still use ajax elements and Drupal 7 Form API?

I have a form built using for the most part many ajax elements within the form api. The form is working if a user is going through it at a normal pace however as this is to be a productivity tool, any ...
0
votes
1answer
35 views

How to add Javascript in Drupal 7 with jQuery?

I am trying to provide the option that users be able to put comment under each paragraph. So at the end of the article, I have something like this: Comments for paragraph 1 /* here I show the ...
1
vote
1answer
52 views

How to use photoswipe script in Drupal 7

I want to use photoswipe script on my site to preview images. I downloaded the script, copied two JS files code-photoswipe-1.0.11.min.js and simple-inheritance.min.js. Include them in a file ...
1
vote
1answer
73 views

advagg drupal module breaking my js file

I am using advagg module to improve my website performance and I also using date picker jquery UI function for date functionality. I have datePicker intialization $( "#datepicker" ).datepicker(); . ...
0
votes
1answer
53 views

How can I include a custom JavaScript file such that it can access and bind events to DOM elements?

This is my first time writing custom JavaScript for Drupal, and at the moment I am attempting to bind onClick events to buttons within a block generated by a view, but I suspect I am approaching this ...
1
vote
1answer
197 views

Jquery breaks on ajax run

I am using field collection & availaibility calendar module, I added a field collection in a content type as a field with unlimited option in field edit. now i have added a availability calendar ...
0
votes
0answers
58 views

Writing to the database via a jQuery toggle button?

I am using this jQuery plugin to render a toggle button in a block. When the button is toggled off/on I want to write to a databse table. The code below is working. When I toggle the button I can see ...
0
votes
1answer
45 views

Submit few forms in Drupal 7

I try to add Poll-voting to my website, on page I addet 5 votings forms, I try to make submission of all 5 forms by one click instead of 5 clicking. I wrote this script : <script ...
0
votes
0answers
17 views

Is there a jQuery container selector for CCK fields?

I'm using a Drupal module called FitVids, which makes iframe videos and images responsive. But i'm also using the YouTube Field module and the fitvids module is distorting the YouTube Field module's ...
0
votes
0answers
10 views

when i onclick radio button then it's value should display in textfield [duplicate]

here i have two radio buttons radio button "One" and radio button "Two", when i click/check on radio button "One" then then it's value should display in textfield of "Display". ...
0
votes
1answer
164 views

when i onclick radio button then it's value should display in textfield

above is the sample screenshot of my form where i would like to do is: when i click/check on radio button "One" then then it's value should display in textfield of "Display". Code: function ...
0
votes
0answers
54 views

How to check in ajaxSuccess function if specific dom element has a particular class?

I have a view with two tabs. Basically, it is a view with a map of events on it and attached display to the map which lists the events. The view has an exposed filter which allows searching by ...
0
votes
0answers
38 views

jquery multi doesn't work for IE

I have a jquery plugin which requires jquery 1.7 and up but the site uses a lower version. Originally, I fixed the issue by adding this in the view alter ...
0
votes
0answers
47 views

Drupal custom form with AJAX and javascript event

I have a custom form that is displayed in a custom block. That block is a popup div. When a user fills the form successfully it's displaying success message. I want to attach a jQuery that will ...
0
votes
2answers
58 views

drupal_add_js weight

I've written a javascript that for some reason whenever I run it, it removes any hover events. Since I am running my site with nice menus I would like to run my script as high up in the $script array ...