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

Real-time preview of node/form in Drupal 7

I'm trying to achieve this in Drupal 7. This is what I need URL for working example (But its not in Drupal). Requirement - Live Preview with alignment features From Drupal.Stackexchange I've came ...
0
votes
1answer
18 views

How to put the menu over the content? [on hold]

I'm developing a website with drupal 7. I use zen theme 7.x/5.x. I want to put the menu over the content. The content it's a slideshow in the front page. I try to put the two menus in the content ...
-2
votes
0answers
29 views

Document Ready Jquery not executing [on hold]

I am trying to run a test on Drupal 7 hosted locally in MAMP with a bootstrap subtheme. I am trying to execute the following code but it doesn't work if I use $(document).ready. Can anyone spot what ...
-1
votes
0answers
16 views

how to set cookies on check box when it is checked [closed]

I want to save check box value on click() of jquery using cookie when user check the check box their value store in cookies i am want to do this in jquery but i am new in jquery
0
votes
0answers
14 views

How to add JQuery on a Drupal 5 page [closed]

I am using Drupal 5 and I want to use the JQuery plugin to add a slideshow on my news page. How do I do this? Can I just paste some scripts on the of the page? Thanks a lot for your help!
0
votes
1answer
18 views

Calling a grandparent JS function that includes jquery from a nested iFrame. D7

I'm calling the grandparent_func from a second-level nested iframe like so. This works in a non-Drupal environment, but am getting the following errors when running in drupal. (yes. I did remember to ...
-1
votes
0answers
24 views

Autoload articles in drupal 7 [closed]

I want to implement an auto-load functionality while scrolling, that is the next article (node) will auto-load on scroll down. I don't know is there any module in Drupal 7 to achieve this? Please ...
-5
votes
0answers
58 views

How can I import an external web page to my drupal site? [closed]

I am using HotelsCombined's search box for my drupal website. When user clicks search for the hotel, it goes to the result page of HotelsCombined. However, I would like to change it, to display ...
0
votes
1answer
25 views

JQuery via the .info file isn't working

I'm using/experimenting with Zen on my drupal site, and have just inserted a js file named alert.js into my theme's js folder. The file has the following code: (function ($){ ...
0
votes
2answers
43 views

Disable a 'enter/return' key function in a form

I have a form in which a user needs to fill the fields. As only two fields are the required fields, so when user fills the required fields and press enter(windows)/return(mac) key the form gets ...
0
votes
1answer
11 views

JQuery hoverIntent / Drupal contrib hoverIntent module not working

I'm trying to get the jquery plugin hoverIntent to work on my Drupal 7 installation. No luck. 1st, I tried the logical approach; simply the following to the theme .info file. scripts[] = ...
-1
votes
1answer
32 views

Drupal 7 js popup [closed]

Trying to put a popup window on my drupal 7 site that hides/shows on click. Here's the popup.js file: Drupal.behaviors.my_custom_behavior = { attach: function(context, settings) { function ...
1
vote
1answer
34 views

Send mail to selected users

I want to send mail on webform submission to selected users, Suppose i'm user and admin must select users from my account that if i submit webform then how many user's can get that notifications of my ...
0
votes
2answers
44 views

Using Simple jQuery click() events in Drupal 7

I've been able to get jQuery to load and work for some basic things such as: (function ($) { console.log('jquery called'); $(document).click(function() { var h1 = $('h1').text(); ...
-2
votes
0answers
26 views

Drupal 7: Embed external js file per page (in editor)?

I read how to embed external js files in your template, but how can you embed js files in the for a single page in the editor? I tried jQuery with getScript() but no luck. <script ...
1
vote
1answer
32 views

jQuery slideshow behaving oddly in Drupal

I have a jQuery slideshow that worked fine when it was running in a site built with standalone PHP files, but now that I've rebuilt the site in Drupal, it has a problem. The slideshow is running in ...
0
votes
1answer
104 views

Google map in jQuery UI tabs / Drupal behaviors.js

As you can see here the google map in the first jQuery ui tab loads correctly but the same map in second / third etc tabs does not load properly or loads off centre. As mentioned here the problem is ...
0
votes
1answer
35 views

jQuery ui buttonset is not a function in Drupal 7

Like the title of this post suggests, I'm trying to add a fancy jQuery ui buttonset to my custom Drupal 7 module. But I'm getting the error message "TypeError: jQuery(...).buttonset is not a function" ...
0
votes
1answer
41 views

How to use mmenu without breaking core Overlay

How can I use mmenu jquery library without breaking core Overlay. Overlay works, but when I do a page refresh (F5) the overlay is blank. When I prevent the mmenu library from loading it works again. ...
0
votes
0answers
31 views

Using ajax in forms

I've done the next form: It has html code, and some radiobuttons. $form['diagram']= array( '#type' => 'vertical_tabs', '#default_tab' => 'edit-tab2', ...
1
vote
0answers
41 views

Ajax breaks jQuery Toggle

I use a small script that hides/shows a pane when a certain element is clicked. (function($) { Drupal.behaviors.luminary = { attach: function (context, settings) { ...
1
vote
2answers
33 views

Modify the date popup to only accept special days

I may need your help please. I have installed the "Date" module and using it with the date popup (datepicker). I need to have the popup just accepting Wednesdays and Fridays as dates. Can anybody ...
0
votes
1answer
39 views

Colorbox Iframe Resizing

I am trying to resize an colorbox containing an iframe. The following code works fine on normal sites but in Drupal it is having problems. Can anyone suggest what I am doing wrong? The colorbox is ...
0
votes
0answers
18 views

How can Draggable Views be used in columns?

I have a content type in which I would like to be able to have a 3 column layout and the user is able to drag different content (nodes/blocks) from one column to another, inline. I have almost ...
0
votes
0answers
61 views

My Views Slideshow and Form maker cant detect jquery.cycle & tinymce folders in libraries

I am trying to create a view and slideshow My Views slideshow module, and my form maker module cant detect my: 1) jquery.cycle plugin in the sites/all/libraries 2) tinymce with its extracted folder ...
0
votes
1answer
41 views

Need help with Drupal javascript behaviors

I'm a bit lost with this and could do with some help from a Drupal JS veteran. In my module I'm dynamically generating a settings form based on a CSS file, part of which provides a font select list ...
0
votes
1answer
61 views

Callback function on change event

I need to execute some functions when a field value changes. I tried both Drupal AJAX framework and classical Jquery, but in both cases the callback function is not executed. Adding a Jquery ...
0
votes
3answers
55 views

Styling views table - Toogle row class on click [closed]

I have a view which is shown as table. I would like to add a css class to entire row, once the user has clicked somewhere on the row. With views i added '.baza-pregled-strank-row' class to each row. ...
0
votes
1answer
30 views

How to prevent Drupal from scrolling to the bottom of ajax-appended content in a form

I have a custom form in Drupal. When a user first sees this form, the only thing on the page is a select box, along with a few other elements they have to fill out. When they make a selection from ...
0
votes
1answer
29 views

Is there a way to include jQuery-1.10.2 for specific php functions?

I need to include jquery-1.10.2 for a module I am building in Drupal 7. The problem is, if I include the file with drupal_add_js in the module's .inc file, it causes the admin menu to display strange ...
0
votes
1answer
13 views

Include dynamic tagging in drupal7

I just like the way the tags work out in stack exchange communities. The way it gets description for each tag in a dropdown and key based tagging. How come it works?? Do we need to use jQuery??? ...
0
votes
0answers
6 views

returning data from database thru jquery [duplicate]

Is there anyone of you knows how to return data from a query to jquery script.Its like i will control the select dropdown list on a jquery script once it is triggered on change function it will query ...
0
votes
1answer
27 views

Views AJAX Submit is removing my custom classes

I have custom jQuery that I've added to views filters to my ajax view. When a user selects certain criteria a slideDown and addClass event is triggered and a new set of filters is shown. You can view ...
0
votes
2answers
37 views

Updates break jquery modules

I could need some help! (Newbie) After updating a couple of modules on my local site, the jquery modules are behaving really weird or stopped working at all (Masonry, Chosen and Sidr). Masonry and ...
0
votes
1answer
387 views

How do I validate form elements via onblur events?

I am trying to validate a form element when it loses focus. But I am having issues calling the validation script. I have tried both: drupal_add_js('( function ($) { ...
0
votes
0answers
28 views

jqModal popup does not opens

I'm using drupal 6 form, and ahah for ajax form submit. On form submit I perform some validation and allows user to choose options that display on jqModal popup. JS script that I'm using for jqm popup ...
0
votes
0answers
28 views

Get FullCalendar inside a page

I need to display a fullCalendar (http://arshaw.com/fullcalendar) inside a page on my drupal site. I would prefer not to use views with the plugin created just for that. I cannot get it to show and I ...
0
votes
1answer
43 views

How to add custom slider for textfield

I read: Best way for including javascript/jQuery OnLoad in EVERY page on my site How to get jquery working on Drupal 7 - for Newbies How to include jQuery UI on a page without PHP? I'm using ...
1
vote
2answers
115 views

How do I show/hide elements on a page using jquery?

I am trying to hide check-box selectors in the custom search module when the page initially loads and then have a clickable link to show them. I have the clickable link working but the check-boxes are ...
0
votes
1answer
84 views

Upload Nodes with Image Fields

I'm using jquery mobile and phonegap for a mobile app. I have uploaded an image file and received the fid but the subsequent request to create a node and attach the fid fails. The node is created ...
0
votes
2answers
64 views

jQuery problem click function [closed]

I'm having trouble doing simple stuff in jQuery. What I wanted was to call a function when something was typed in an input field. Now I'm just trying this: when you click anywhere on the page to ...
0
votes
0answers
30 views

Not able to pass PHP variable to JS file [duplicate]

Javascript works fine, but i need to get my_var variable from module. At the moment its not working. Clear my page cache and browser cache several times. The variable 'my_var' is showing value on ...
0
votes
1answer
159 views

How to pass PHP variable to javascript in Drupal 7

Javascript works fine, but i need to get my_var variable from module. At the moment its not working. Clear my page cache and browser cache several times. The variable 'my_var' is showing value on ...
0
votes
1answer
21 views

Page Navigation issue after executing a jQuery

Using JSinjector, i included a jQuery and made use of a function. I wrote a query inorder to display the external link within a certain div section (within our site). My code goes here (function ($) ...
0
votes
1answer
64 views

Horizontally sliding gallery with visible neighbors?

I'm looking for a way to create a horizontally sliding gallery, where the non-"highlighted" images can be seen to the left and right of the "highlighted" image, instead of a normal slideshow where ...
-3
votes
1answer
29 views

Module for animation when link is clicked

If a user clicks ANY of the links on the drupal site I am setting up, I want to show animation before the transition to another node/page. Is there a module for this? Or would jquery work/how would I ...
0
votes
0answers
129 views

How to make ajax call in jquery in custom module form api drupal 7?

Background: I am using module manualcrop within custom module using form api, where user upload image ( with managed_file type ) and can crop it and save the form. I want to show a preview as soon as ...
3
votes
1answer
53 views

How to override jquery update preprocess page

The objective is to exclude certain javascript files from some sections of the website. I exclude javascript and css files in this way in the template.php file of the theme: function ...
3
votes
2answers
186 views

How do I make a Drupal 8 theme require Jquery (for anonymous users)?

I'm creating a theme for D8 called 'herchel'.I'm trying to get this theme to require jquery on all pages (D8 doesn't load Jquery for anonymous users by default) Looking through the what little ...
0
votes
2answers
134 views

My javascript is making the drupal admin menu disappear. Not sure how though

Ok, so any time I try to view a page on my Drupal 7 site while I am using either drupal_add_js(drupal_get_path('module', 'floormap') . '/includes/javaScript.js'); or ...