jQuery is a fast and concise JavaScript Library that simplifies HTML document traversing, event handling, animating, and Ajax interactions.
0
votes
1answer
19 views
is it ok to have multiple versions of jquery?
I'm facing some peculiar problems(my devel_themer is also not working). There are multiple versions of jquery included. Its not me who included them, its different modules:
<script ...
0
votes
0answers
16 views
Dynamically refresh div in custom page?
I have a custom page that queries a database, builds a list, then outputs that list to the page. I am using jQuery setTimeout to refresh the page. What I need to do is use jQuery or ajax to merely ...
2
votes
2answers
79 views
Drupal ui inside module
Am i doing wrong to define, jQuery Accordion inside my .module file,
just like this:
<?php
drupal_add_library('system', 'ui.accordion');
Drupal no longer loading jquery itself.
0
votes
1answer
17 views
How to dynamically pass a user field value to jQuery?
I have a notification bar with a counter, it actually prints the user's "notifications" field value (if it's greater than 0):
<div id=container>
<a href="#" ...
0
votes
2answers
52 views
Jquery not working in Drupal 7
I have this code in page.tpl.php which is a link that toggles an option menu and makes the first link "I'm a link" become red:
<a href="www.google.com" class="select1">I'm a link</a>
...
1
vote
0answers
23 views
with BEF collapse expand items under their parent
How to collapse and expand items under their parent using better exposed filter and Nested Checkboxes ..
What i mean ...that all the child items to be collapsed and they expand when the user click on ...
-2
votes
0answers
17 views
simple jquery code for text to scroll vertically up for news [closed]
I want a simple jquery code that scrolls the text vertically in up direction where scrollamount=2 and direction= up.Can anyone suggest me.
0
votes
1answer
76 views
How do I get third party jQuery plugins to work with Drupal?
I am trying to use the Slider Revolution jQuery plugin (from ThemePunch) on my Drupal site to create a slider on the front page.
I cannot for the life of me figure how to get this working. I have ...
0
votes
0answers
9 views
Insert a collapsible fieldset or region in a panels layout
I created a custom layout for a panels display and I would like to have a region or multiple regions in my custom layout be collapsible with javascript/jquery. Ideally the state of the collapible ...
0
votes
0answers
8 views
Troubleshoot hook_library_alter() not being called for the jQuery Update module
I have the jQuery Update's development shapshot version 7.x-2.x-dev installed and enabled. The version jQuery configured in UI is not being imported. As result, it is importing version 1.4.4 instead ...
0
votes
1answer
16 views
Attaching a system js library using #attached property (D7)
When defining a form using the form api I can attach my own css and js like this:
$form['#attached']['css'] = array(
drupal_get_path('module', 'my_module') . '/my_css_file.css',
);
...
1
vote
1answer
40 views
Behaviors/JQuery: What's the standard/convention in Drupal 7 for running Jquery code on event *OTHER* than DOM ready?
Searching online docs so far and I've found much about Drupal Behaviors running when the DOM is ready i.e. the ready JQuery function.
But what about for example if I want my JQuery code to run once ...
0
votes
1answer
27 views
Make autocomplete window appear above accordion pane
I have created a node add form using the field group module to put the form in a jQuery accordion.
I have a auto-complete field that is at the bottom of one pane so the div that appears that lets ...
0
votes
1answer
33 views
Change end date automatically after changing start date
I would like to be able to automatically change the value of the end date to be the same as the start date after changing the start date.
Ex: right after changing the start date to 12-12-12, the end ...
0
votes
1answer
93 views
How do I re-attach AJAX behaviours to a managed_file field?
I currently have a form which is generated by the FAPI via an jQuery AJAX call, and then is inserted into the DOM.
This works fine, but the problem is that managed_file field within the newly ...
0
votes
0answers
18 views
jQuery Injector, jQuery, and cookies - only working for Admin
I have a function that I am using using the js injector module to set cookies so that I can access them at a later stage
(function($) {
$(window).on('load', function(){
...
0
votes
1answer
57 views
An illegal choice has been detected. Please contact the site administrator is given on ajax form after programmaticly adding an item to a select list [duplicate]
I have a form in Drupal. On a select list I am using the ajax built into the form api to trigger a callback on change.
I need to be able to add an option to the select list via javascript. Set the ...
0
votes
2answers
65 views
Save form when user refreshes page from browser or click on any anchor tag inside page
I have made a form in drupal.
What I want is when the browser unload the page from any click whether by clicking on anchor tag or from browser refresh buttons I want to save data of my form through ...
0
votes
0answers
45 views
Need Facebook-style pasting of links to auto render previews of all links
I need functionality like facebook's instant display of images. I tested the MetaTags Open Graph support feature with the addition of the OpenGraph Filter module, which works effectively to translate ...
0
votes
0answers
78 views
Colorbox Modal Does Not Open for Flickr JSON Request
I have created a Flickr JSON request that returns a set of thumbnail images. Clicking on the thumbnail should open the Colorbox modal and display the image.
I have this working in a FIDDLE.
However, ...
0
votes
0answers
75 views
Create custom slider block
I created custom slider block with nivo slider
here is my code :
<?php
function slider_init() {
drupal_add_js(drupal_get_path('module', 'slider') . '/js/jquery.nivo.slider.js');
}
...
0
votes
2answers
105 views
Drupal Remove jQuery, and jQuery UI and add migrate plugin with Updated jQuery and UI
I am trying to use drupal_add_html_head to add script elements to the head tag, however, this is important that these script tags are not self-closing because that is not the correct way to add them.
...
0
votes
0answers
41 views
Destroy Superfish plugin
I have the Superfish module on my site that my main navigation uses. The site I am building is responsive so I'd like to destroy Superfish when the viewport is smaller than a specific size.
I see ...
0
votes
1answer
54 views
Blank Pages caused by Cache Size, jQuery Update, and Aggregate JS. All happened after I updated to 7.24
I need help understanding what's going on here. Let me start off by saying I have been brought in to fix an existing Drupal site, so far I've fixed everything, now they want to update to 7.24 for ...
-1
votes
1answer
54 views
Using Drupal Default jQuery only on node form?
I need to use the jQuery 2.0 in my drupal 7 site, so i have unset two drupal jQuery files and added the latest version of jQuery using this code in my template.php file so it will not affect the views ...
1
vote
2answers
114 views
How to make Views rows clickable with jQuery
I am trying to follow Jimajamma's instructions here to make my Views rows clickable.
My View class =
.clickable-row .views-row {
border:12px solid purple;
}
My js file shows ok in the page ...
0
votes
0answers
39 views
Countdown timer field with a scheduler module
i am using https://drupal.org/project/field_countdown and https://drupal.org/project/scheduler modules.
I have added field_countdown field to my content type 'items'.
I have enabled scheduler for my ...
0
votes
1answer
37 views
Add jQuery to exposed filter form on drupal 7
I've been searching around how to add jQuery to Drupal 7, but i couldn't make it work.
Here is my steps:
Step 1: I create a javascript file and put into my module under js directory.
Step 2: I ...
0
votes
0answers
77 views
Force Webforms to validate using jQuery
I have a form that I've added a bit of extra validation using jQuery to
$('#webform-client-form-27').on('submit', function(){
if ($('#edit-submitted-email-address').val() != ...
1
vote
1answer
38 views
Get users by custom field and field type [duplicate]
I'm using Drupal 7.
I'm trying to get all users with custom field field_id:
$users = user_load_multiple(array(), array('field_id' => '123456789'));
var_dump($users);
and I got the following ...
0
votes
1answer
11 views
Is there a way to dynamically apply a CSS to a menu that includes the taxonomy term of the current page
For example, if I have page nodes with a vocabulary called "issues", which has terms, such as "budget", "education" and "foreign policies", and there's a menu titled "Information", I want to be able ...
0
votes
1answer
89 views
Zurb Foundation 4 jquery conflict
I am working on a Drupal 6 theme which uses the Zurb Foundation 4 framework. The problem I have is ideally Foundation 4 requires jQuery version 1.10.2.
Drupal 6 only supports up to jQuery version ...
1
vote
0answers
26 views
Lightbox not working in mobile
I am trying to start a lightbox if device is mobile.
echo '<script type="text/javascript">
$(document).ready(function(){
$(".lightbox").lightbox();
});
</script>';
I detected that ...
0
votes
0answers
31 views
AJAX pager callback when going to next page
I have a view with a mini pager with AJAX enabled. The view itself is a list of content items. I am using a jquery plugin which makes the list items look nice and ordered alphabetically in two ...
0
votes
1answer
107 views
Drupal behavior for #datepicker onselect not working
i have a datepicker in a webform. I want to be notified when a date is selected in the datepicker. In my form template i drupal_add_js a js starting with :
Drupal.behaviors.booking_form_tma = {
...
0
votes
1answer
83 views
How to add JQuery code to drupal site [closed]
I am trying to add my JQuery code to my drupal 7 site.
In my drupal based site i have image in the featured block.
My JQuery code slides up the image after 2 seconds.
When i added the JQuery code to ...
0
votes
1answer
223 views
How to position an element using jQuery UI .position method?
I'm going on about 20 hours trying to get jQuery UI to work, and fortunately, I'm still not frustrated. I just really want it to work. I would like to use the .position method to position an element ...
0
votes
1answer
29 views
Views Slideshow with numbered navigation disappears
So a little background on my current setup. The views slideshow having issues is on the homepage:
http://pacificwhale.org
I am running Drupal 6, and using Views slideshow 2.4 with nodequeue to feed 6 ...
0
votes
1answer
289 views
Programatically trigger a click on an AJAX enabled form field (button, select, etc)
Using jQuery, I need to programmatically click / select Form items (radios, select lists, checkboxes, etc). This field item has an '#ajax' action / callback defined using Form API.
The following code ...
1
vote
1answer
411 views
Getting “TypeError: $ is not a function” with (or without) jQuery Update installed
I'm creating a custom theme and have run into a bit of a snag. Drupal won't recognize jQuery even though I have jQuery Update module enabled.
The error in console:
TypeError: $ is not a function
...
-1
votes
1answer
118 views
How to create sticky Social Media Tabs in Right of the Website?
How to create sticky Social Media Tabs in Right of the Website, Please see the below screenshot for how it stick at the right.
Is there any drupal module or plugin available, please suggest me ...
0
votes
0answers
42 views
Update Jquery to a later version but not for edit pages
I am trying to update Jquery on my website (to Jquery 1.8.3) for the front end only.
I am using the following code below and it works fine. However, as I am using my theme for node/edit pages, the ...
0
votes
0answers
160 views
Multiple date picker for date popup widget
I've been searching for a while, but didn't find any contribute module to store multiple date values picking them from only one date popup calendar widget, just a 2009 feature request for D6.
In D7 I ...
1
vote
2answers
238 views
How to select multiple values for Drupal Facets (Facet API + Search API)
I am using Facet API + Search API to develop Filtering for the data within my site. I am also using Ajax Facet Filters to process the selection as soon as it's clicked.
It all came out great but ...
0
votes
0answers
8 views
difference between real click and jQuery click [duplicate]
I create a new subject which is the next of this one.
I have a form on drupal.
There is a function to create it : commerce_checkout_account_pane_checkout_form
There is a function to validate it : ...
0
votes
1answer
75 views
Detecting a form change. Is jQuery the way to go?
I have got a form with quite a lot of checkboxes (can go up to the 100's) in a table and I would like to detect if a checkbox has been clicked by the user. If they have, I would like to automatically ...
0
votes
1answer
40 views
Whats causing Drupal to freeze when creating/editing a mini-panel?
I'm quite new to drupal.
Drupal has been freezing for me when I try and create or sometimes edit a minipanel. Once I select the panel layout and start adding content it just remains in the lightbox ...
1
vote
0answers
53 views
Draggable image in CKEditor [closed]
I have a problem, I can't make a image inside CKEditor draggable. I tried many things like $('img').draggable(); with timeout and so on. I can't get the image draggable.
I also tried to inject a tag ...
-2
votes
1answer
63 views
How to pass Drupal user roles to jQuery
In my custom jQuery file, I did something like
var userRole = '<?= $user->roles; ?>'
and
var UserRole = function(){
role = '<?= global $user ?>';
return '<?= ...
0
votes
2answers
25 views
How to use Drupal.behaviors in Drupal 7?
I have these codes in my druapl 7 theme js file (js/test.js):
(function($) {
alert("Hi");
Drupal.behaviors.mythemename = {
attach: function(context, settings) {
alert("Bye");
...