jQuery is a fast and concise JavaScript Library that simplifies HTML document traversing, event handling, animating, and Ajax interactions.

learn more… | top users | synonyms

-3
votes
0answers
16 views

Meter Gauge replot not working? [on hold]

<script type="text/javascript" class="code"> $(document).ready(function(){ a=document.getElementById('planned').value; var intervals = document.getElementById('countvalue').value; data = [a]; ...
0
votes
0answers
12 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
10 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 ...
0
votes
1answer
4 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
16 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
19 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
10 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
25 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
10 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
10 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
11 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
11 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
15 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
22 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
27 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
24 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
53 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
15 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
30 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 ...
0
votes
1answer
35 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
52 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
42 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
42 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
35 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
35 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
63 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
14 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
118 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
40 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
111 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
65 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
98 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
86 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
31 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
36 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
49 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
25 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
37 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
45 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
88 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
113 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
80 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
85 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
147 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
139 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
67 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
40 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
41 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
98 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 ...