0
votes
2answers
46 views

Add custom jQuery to form as a module

I'd like to get the following jQuery code to run on any forms on my site: (function($) { // Hide any N/A radio buttons $('.form-radio[value=_none]').parent().hide(); // Uncheck a radio button ...
-1
votes
0answers
17 views

Serching for a video module for my drupal 6 [closed]

I have my website building using DRUPAL 6 i am searching for a video module like http://dimsemenov.com/plugins/royal-slider/visible-nearby/ http://www.meadmiracle.com/SlidingGalleryDemo2.htm kindly ...
3
votes
3answers
119 views

How to get full page width background slider

I am working on a drupal site, now my requirement is I need to slide the background images with fade effect on the home page. Is there any module to get this effect? Please suggest me if we can get ...
0
votes
1answer
21 views

Jplayer not stop playing song [closed]

I have used a jplayer module to play mp3 in a popup. But I am getting problem, While audio is running in player and on closing the popup song still remains playing. I want to close the player playing ...
0
votes
2answers
103 views

how to call a JQuery function inside an ajax callback function

I have a custom module, this module has a form with an ajax submit callback $form['submit'] = array( '#type' => 'submit', '#ajax' => array( 'callback' => ...
0
votes
0answers
30 views

Reuse Drupal behaviors

After writing a lot of duplicate js code in Drupal through the years i think its time to ask a question about this. Imagine this simple beahvior that submits a form onChange of a select element ...
0
votes
0answers
37 views

drupal 6 jquery module additions

this is what the module has in it now for basic toggle of the login box. Drupal.logintoboggan_toggleboggan = function() { $("#toboggan-login-link").click( function () { ...
0
votes
1answer
37 views

Jquery update - access denied

Trying to setup the latest jquery update dev version, needed for the installation of the amazing social_count mobile-friendly count widget, I can't configure the module. When logging as user #1 and ...
0
votes
0answers
70 views

define and use global jquery functions from 2 different files

I am attempting to define a jQuery function in A.js in the following way: jQuery.fn.demo = function(){ console.log("heizsa!"); } I am trying to run this function from B.js file this way: ...
2
votes
2answers
308 views

Ajax on Add another item of field collection drupal 7

I am calling an Ajax function on a field collection. but after doing 'Add another item' form looses ajax effect. I want to bind the Ajax with form even after clicking on 'Add another item' button. ...
0
votes
0answers
41 views

image processing libraries and modules

i am currently designing a gifts website, it will be dealing with customized gifts such as mugs, bracelets, t shirts etc. what i need is to be able to have the users type in the custom text and/or ...
0
votes
2answers
129 views

Ajax Function jquery Fails to send data Drupal 7

I am in the process of converting Drupal 6 module to Drupal 7. i have a problem of Passing php data to Ajax. The function should display if a speaker on or off by interchanging icons, when clicked by ...
0
votes
1answer
66 views

Trouble adding JavaScript inside a custom module

I’ve got a question about module development that I need some help with. I’m building a module which needs to have multiple JS files connected to it. The first file, which has the same name as the ...
2
votes
0answers
113 views

total sum of textfield values of field collection(with unlimited values) in another field out of field collection in same form

I am creating a form. it has a field collection. it has a field age in field collection that can be filled unlimited times in single form. I want to add the total of those field values(age) in another ...
3
votes
2answers
1k views

Get the latitude and longitude from the user ip

I am trying to get the latitude and longitude from the user who connected to my website to draw or show his position on a map, but it showed him in the wrong postion. Is there any way to get the ...
5
votes
1answer
183 views

jquery get or post methods for drupal block module

Is it possible to use jquery get or post methods to fetch data dynamic in a a drupal7.x block module. I am a newbie to drupal. Here is my event_calendar.module file function ...
0
votes
1answer
170 views

loading nodes with Ajax/jQuery

Assume that we have a list of titles on the left and a div on the right side of the page that displays posts. when I click one of the titles it first removes content of that div and then loads node ...
1
vote
0answers
199 views

My custom javascript replace method for Fancybox and Vimeo works on some pages, but not all

So, I have beent tackling this issue since yesterday to no avail. I have been trying to integrate Vimeo videos into Drupal 7 and display them in a nice Fancybox overlay. I am using the following ...
0
votes
1answer
654 views

Jquery and Ajax 404 Undefined Error

Hi I am developing a module in which i am sending data from javascript to drupal using jquery ajax. but i am getting 404 error undefined.I am not able to figure out. Pls help Here is my code This ...
2
votes
1answer
352 views

jQuery toggle in an article [closed]

I want to use jquery toggle effect in an article, but I don't know how to do. Does Drupal have a module like this effect? I want to use toggle only 2 articles in my menu that I want appears like the ...
0
votes
3answers
563 views

Adding jQuery Timeline to Drupal

I have found this awesome jQuery Timelinr that I have customized for my Drupal site but am now at a loss at how to insert it. It is only going to be on one page. Does it need to be in a block? Do I ...
0
votes
1answer
190 views

How to add a timer in views?

I have created a view which displays a list of product in table grid formate with four rows. I have fields related to the product like image,price,descriptions and so on. Now I want to create a field ...
0
votes
2answers
223 views

Behavior not attaching to a form element

I have a module for relating pieces of content to each other. My module successfully adds a field to all content-types that is essentially a list of integers, meant to hold node ID's. I want AJAX ...
2
votes
1answer
312 views

Get post information in drupal function

I posted JSON array from my script using jQuery.post , to get the posted data in my drupal module function I am using $json = file_get_contents("php://input"); but is there a better way or a ...
2
votes
1answer
1k views

Any better popup modal framework in drupal

I use the Chaos tool suite module for modal popup in Drupal 7; I am unable to open popup from within a popup using ctools. Can it be done using ctools, or is there any better popup modal module in ...
0
votes
1answer
737 views

Custom jQuery scrollbars in Drupal 6

I would like to use some custom jQuery scrollbars on a Drupal website like jScrollPane or Plugin JQuery: Scrollbar (this one looks better) or others listed here. The problem is that in Drupal 6, even ...
1
vote
3answers
396 views

In hook_boot jQuery is undefined

I am doing some processing in hook_boot since I need that code to run on every page, irrespective of whether or not they are cached. As a result, jQuery is undefined when I add inline JavaScript to ...
2
votes
1answer
634 views

How to onclick-trigger a non-native jQuery plugin's action?

I've installed a 3rd-party jQuery plugin (it's an accordion). It displays on my page, and works as expected. I want to trigger one of the plugin's actions (open a particular slide) when I click on ...
2
votes
2answers
2k views

How do get a body.onload event executed?

Background: (*) I'm a JavaScript dilettante -- I just dabble when I need to. (*) I have a piece of javascript that I've tested with a dummy page that I loaded by just calling it from a . It does ...