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

Responsive Views-Slideshow Json Cycle working good in Chrome not in IE or mozilla

In drupal I AT themes, views with slideshow of json2 and cycle plugin. I set the options for the plugin like this : Make views slideshow responsive - remove inline styles height auto , width auto ...
0
votes
1answer
8 views

Farbtastic color picker to change the background color of text field input?

I have taken this JS from the field_example module. I am attaching it to a form textfield element so that when a user brings focus to it the Farbtastic color picker widget pops up and allows the user ...
0
votes
0answers
10 views

Problem with Bootstrap Theme and Jquery Multi

I was using the bootstrap theme for drupal and jquery update and everything worked ok. But by client requirements I have to use Jquery Multi instead of Jquery Update and now, this returns two errors: ...
0
votes
0answers
12 views

Applying javascript to an ajax quicktab result

I have made an interface with some quite sophisticated functionality - tabs (module Quicktabs), containing views (module Views) from nested taxonomy (module views tree), containing tables which are ...
1
vote
1answer
14 views

How to create inline node-add forms using a block with content type names

The following page setup is needed: A block (at the left, see image) with links to node-add forms, which open inline (the area at the right) in the current page. The reason why the form needs to ...
0
votes
1answer
31 views

Array and Select Options

I have the following code working together with a scrip that populates fields on autocomplete. What I would like to do is instead of having an autocomplete text box - use the city field in a drop ...
0
votes
0answers
5 views

How to use JqueryMulti?

I have a site theme that needs to use Jquery 2.1.3. The theme uses on() and affects the node/add form, so I also need Drupal's default Jquery 1.4 to be running, otherwise the default Drupal scripts on ...
0
votes
1answer
12 views

Fieldgroup accordion does not open to first field of group

I am using the accordion group and item via the Field Groups module. If I open an accordion group, scroll to the bottom of the group and then click on the next one to open, the new group opens in the ...
0
votes
0answers
26 views

Undefined is not a function error

I have a jquery code that is supposed to complete certain fields on my webform but am getting an Uncaught TypeError: undefined is not a function for the following line: ...
0
votes
1answer
24 views

OnClick Event not Captured

I was currently developing a module(myid) in Drupal. I made a button(#myid_registrar_button) that must alert whenever it is clicked. Below is my code: myid.module file: <?php function ...
2
votes
1answer
39 views

Any way to alter script tag for some javascript and add custom attributes?

In order to work with Cloudflare's Rocket Loader service, certain scripts need to have their script tags updated with the cf-async="false" attribute like so: <script type="text/javascript" ...
0
votes
0answers
11 views

Views slideshow use background instead of image

I am going to show you how to use a background image instead of a image in views slideshow. I am building a site with a centered slider, the images must be 100% the width of the screen, and centered. ...
0
votes
0answers
14 views

how to refresh a view content pane each time a group of tabs is clicked without page refresh

Hi guys I need some help, I have used Swiper in my views to create a slide of contents, and have a views content pane which brings 4 items at a time sorted randomly. A random sort works with a page ...
0
votes
0answers
15 views

TypeError: jQuery.unblockUI is not a function in drupal 7? while working on filedepot module [closed]

enter image description here i am using filedepot module.while opening it shows error in console when i inspect element. please help...
0
votes
0answers
9 views

Is it possible to port a jQuery module using ProtoType.js to Drupal 7?

I've been the maintainer of an integration module for phpFreeChat since Drupal 5. I ported it to Drupal 6 with no problems, and I tried to port it to Drupal 7, but it hangs when the chatbox starts to ...
0
votes
1answer
30 views

How to parse PHP variables in drupal_add_js in template.php

I'm using drupal_add_js for some inline jQuery - I need to parse some php variables in the inline jQuery, what is the correct way to do it? drupal_add_js('jQuery(document).ready(function () { ...
0
votes
0answers
22 views

drupal default image field without “remove_button” on edit form drupal 7

I have created one event content type. On which I Have field_event_picture image field. Now what I want is, when user edit event form user will click on field_event_picture and browse popup comes up, ...
1
vote
3answers
56 views

My .js file is not included in my site

I am working on Recruiter distribution which uses a Cloudy theme. I have tried 2 ways to add custom javascript to my site: 1)Adding jquery code to the .info file of Cloudy theme(default theme) ...
0
votes
0answers
16 views

jQuery behaviors [duplicate]

I'm designing my first drupal theme and I'm not very well experienced in this kind of stuffs. I tried to add some jQuery to my design so I saved this code into a .js file and add it to my theme.info ...
1
vote
0answers
32 views

Why am I getting undefined is not a function when using jquery?

HTML more code here... <script type="text/javascript" src="//code.jquery.com/jquery-1.10.2.min.js"></script> <script type="text/javascript" ...
0
votes
0answers
15 views

ahah fields in custom form stopped working after migration

I migrated my drupal 6 website to a new machine. my custom form with ahah-fields are not working in the new server. OLD => NEW ............................ ubuntu => 9.10 => ...
0
votes
0answers
11 views

Simply hide View rows with instant JS exposed filter

Is there a module for this? IE: the view is showing all results, the exposed filter is just a select element which will hide (with javascript instantly without AJAX or page reload) all rows without ...
0
votes
1answer
27 views

invoking a block and attaching it to a specific html element

I have been having this problem for quite some time now and I don't know how to proceed. I am trying to get a block by invoking it, the simple way: $block2 = module_invoke("module", "block_view", ...
1
vote
0answers
26 views

Cannot target <img> tag after switching to Picture module

I have a image field that I have added an 'onload' attribute to in template.php. function mytheme_preprocess_field(&$variables) { if($variables['element']['#field_name'] == 'field_images'){ ...
0
votes
0answers
19 views

Drupal behaviors not behaving as expected

I created a custom block which also loads some JS to handle some dynamic link creation. It was working perfectly last week and when I came back to it this week it stopped working. function ...
0
votes
0answers
23 views

Trouble picking up Open Graph tags on page load

I am having issues doing a simple jQuery select to pick up the content of an open graph tag. The website this is an issue on makes heavy use of ajax, every page is loaded in via an ajax call. The ...
0
votes
1answer
35 views

Unable to login to services due to session cookies not being passed in

This has been driving me nuts for days. I have an html5 app which logs the user into drupal via services 3.11 but I am unable to connect. Using the Chrome Postman plugin I can connect as expected. ...
0
votes
0answers
21 views

Upload file does not show up in $_POST or $_FILES, only $HTTP_RAW_POST_DATA

I am trying to add an async upload to my Drupal 6 custom module. The problem is, though, that when the upload occurs (I have a break point on my php function) no data can be seen in $_POST or $_FILES. ...
1
vote
0answers
64 views

how to hide and show custom filter form on a drupal view

I'm new to Drupal and I'm trying to create a view with many filter options. Because it has a lot of filter fields I want them to be hidden and only show the filter fields the user decides he wants to ...
0
votes
1answer
47 views

jquery slide toggle - affects all on the page

I have a view with a list of a content type and using drupal behaviors and jquery toggle, I trying to toggle some content when the user clicks a div. The only problem is that it's affecting all the ...
0
votes
0answers
9 views

Task list system (view) that responds fast to edits

I need a fast responding task management system. I have tried many approaches like nodes as tasks and a view with editable fields, editable view, flags, ajax flag forms, and even Rate widgets. All of ...
0
votes
0answers
14 views

Rules Link: how to immediately switch link label at click

There are two issues here: - to switch link label at click - to make the label show immediately at click and process the rule in the background This all in order to speed up things for the users. I ...
0
votes
1answer
38 views

Drupal fullcalendar integration -> JSON Formatting?

I am working on a custom fullcalendar (http://fullcalendar.io/) implemenation for a custom module of mine. I have created an hook_menu that will provide the json output that contains the events that ...
0
votes
3answers
133 views

drupal.js is loading before jquery.js

I have face this problem often in my drupal site. The drupal.js file is loading before jquery.js, so i get the "uncaught jQuery is not defined" error. I have been using memcached also in my site. ...
1
vote
0answers
82 views

Adding imagesloaded to packery module

With many responsive designs it is not possible to assign image dimensions as they will be determined by the view-port dimensions. However some scripts, such as Packery, require image dimensions to be ...
0
votes
1answer
48 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
19 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
47 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
72 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
95 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
26 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 ...
0
votes
1answer
21 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
28 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 ...
0
votes
1answer
25 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
25 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
33 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
22 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
27 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
52 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
49 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 ...