0
votes
1answer
17 views

Change image path src to data-src on Drupal 7

I want to use LazyLoad plugin. Searched modules about this jQuery plugin but don't work for me. Moreover, will use many options. So, first rule: Latest version of Lazy Load is not a drop in ...
0
votes
1answer
18 views

AJAX URL requests in Drupal 7 on localhost Apache2 don't include base URL or base path

I am currently stuck with a problem in my local Drupal 7 environment. As Drupal 7 site configurations can get very complex, I will try to explain my problem in as much details as possible. The site ...
1
vote
1answer
15 views

Remove heading from Superfish Menu Drupal 7

I'm working with Drupal for the first time, and have been able to find answers for all of my other questions, so far, on either Drupal's forms or via other means. However, I can't seem to find a way ...
0
votes
0answers
13 views

Menu link - send value to drupal view,

think I am on the last leg of this drupal site, but I can't figure something out. I have a book feed that is pulling in from amazon. I have a created a collapse-able tree menu using ...
0
votes
2answers
45 views

click events executes without clicking in jquery drupal

<script> jQuery(document).ready(function() { jQuery('.visit-website-link a').bind('click', function(e) { <?php $visit_count = db_insert('visit_count') ->fields(array( ...
0
votes
0answers
29 views

Drupal 7: How to add js script tag at specific position in html (WOW slider)

I am trying to put a WOW slider on the front page of my website. For those of you who don't know, WOW slider is actually a downloadable program, where you can specify the settings that you want for ...
0
votes
0answers
14 views

How to geolocate APO/FPO addresses

A primary question would be, is there a database of APO/FPO lattitudes and longitudes somewhere, but failing that: How would/could one find lattitude and longitude from nothing more than an APO/FPO ...
0
votes
1answer
33 views

Javascript plug-in doesnt appear on drupal

i want to put a soundcloud music player (http://stratus.sc/) on my drupalgardens page. i added an external source javascript library and uploaded a js file on the system as it says on the pluging ...
0
votes
1answer
42 views

How to set start image on Galleria Theme Classic

I try to display a list of images through Drupal Views Slideshow, using Galleria plugin, all works well, how to set specific start image from my list? I found this option Galleria.configure({ ...
1
vote
1answer
56 views

Google charts change date format

i want date in google chart x-axis in the format of(1 2 3,...only date), but i passed date values using php from drupal views in the fornat(1 mar 2013).I want 1 mar 2013 in table which comes below the ...
-3
votes
2answers
81 views

Get a style switcher like on themeforest

I would like to add a style switcher to my site and I like the ones used on themeforest templates.. How is that done and what library are they using? Example: http://centum.envato.tabvn.com/demo.php ...
0
votes
1answer
25 views

how to make the drupal t function not case sensitive in drupal 7 in php and javascript

hi I am having some problems with the Drupal t or Drupal.t('') for JavaScript function, is it possible to make the t function not case sensitive in Drupal example: if I do this echo t('ABC'); or ...
1
vote
1answer
43 views

Why is Drupal not recognizing my javascript function?

Why is the following not working: (function($){ Drupal.my_module = {}; Drupal.behaviors.my_module = { attach: function(context, settings) { $('#some-div').Drupal.my_module.doStuff(); ...
0
votes
1answer
94 views

call a function by using drupal add js

i'm debugging a drupal module, the second line drupal_add_js call a js function in uc_discounts.js drupal_add_js(drupal_get_path('module', 'uc_discounts') . '/uc_discounts.js'); ...
0
votes
1answer
161 views

Replace superfish hover event with click event

I have used superfish module for more style of my site. It is working fine but I want to remove the mouseover effect from main menu link. I want to just display the child menu link after clicking the ...
0
votes
2answers
86 views

How to count scrolled pixels to the left/right with jQuery within a Drupal7 page?

With $(window).scroll(function () { console.log($(this).scrollTop()); }); You can count the pixels you are scrolling up or down. But how could I count the scrolling from left to right? I ...
-5
votes
1answer
40 views

CSS styles and JS files are not uploading on to the production server [closed]

When I add new CSS styles and JS files to the production server, the new files are not uploading on to the production server, but it is uploaded on the development server and working fine. The CSS ...
3
votes
2answers
53 views

customize window.print() in drupal block

I have used a block for adding an option to print the page.The content of the block is <a onclick='window.print();' style='cursor:pointer'>Print this page</a> It works fine but I need to ...
0
votes
0answers
128 views

Body onload or $links JavaScript not working

For some reason, the body onload event isn't working and I'm not sure as to why. Everything looks correct, but it seems the JavaScript isn't firing. Also, this is in a Drupal 7 module. $links[] = ...
0
votes
0answers
48 views

Adding JavaScript Row? into Drupal 7 Module

I'm trying to implement a JavaScript script into a Drupal 7 module and for some reason I just can't get it to work. I've been attempting this for a few hours now, but I'm just at a loss. Any help ...
1
vote
1answer
77 views

How to get a tables TD-offset()'s with jQuery 1.5.2 (Drupal7)?

I need to find the correct .offset()-position of a tabled TD-elements within a Drupal7-generated HTML-site (jQuery_update installed). I use $('#contenttable td').each(function(){ ...
0
votes
3answers
75 views

JavaScript into Drupal Module

I'm trying to implement a JavaScript script into a Drupal 7 module and for some reason I keep getting this error here: "Parse error: syntax error, unexpected T_ECHO, expecting ')'" I've been ...
1
vote
0answers
57 views

Slideshow and Image Styles. Looks very different in IE8

On Firefox all images are stretched to 650x300 But in IE8 all images are only stretched to vertically be 300px high. They are not horizontally resized. Using the following modules/library I've ...
1
vote
2answers
412 views

How we will pass drop down value as argument with ajax call back function in drupal 7?

i want to pass drop down value in ajax-callback function as argument ($user_id,$selected) onchange but i am not getting $selected value in this ajax-callback function onchange event**
1
vote
1answer
222 views

Drupal 7 global javascript variables

In my Drupal 7 installation, I have 2 separate JavaScript files that are loaded by my sub-themes (base and admin sub-theme) - I don't know if this is useful information or not, but: What if I want to ...
2
votes
3answers
210 views

Linking to a named anchor in a closed jquery ui tab (drupal)

So, this is one of those things where the goal is simple enough, but after all day I'm still stumped. Using drupal, I am trying to link to a named anchor inside of a jquery ui tab. The most ...
0
votes
1answer
112 views

How to add PHP or Javascript code to a custom content type

I am working with Drupal 7.17. I have a custom content type I created called Sidebar Ad (machine name sidebar_ad) that I want to add Javascript and PHP to. From what I understand, in the templates ...
0
votes
0answers
335 views

TypeError: jQuery(“#mycarousel”).jcarousel is not a function [closed]

I added this jQuery function to my drupal7 header for jcorousel plugin. <script type="text/javascript"> jQuery.noConflict(); (function($) { $(document).ready(function() { ...
0
votes
0answers
93 views

Why do Drupal attach behaviors work on some pages but not others?

I am working on a photo album tool for a Drupal 7 website. The problem is that the below attach behavior is running on the gallery page, but not on the photo upload page. The purpose of this is to ...
0
votes
1answer
64 views

How can I know when the javascripts that generate the CKEditor WYSIWYG editors have completed their execution?

I am using the CKEditor 3.6.5.7647 on Drupal 7 to turn all my filtered HTML text field into WYSIWYG editors. Drupal does this automatically, but it messes up the form validation. Indeed, drupal still ...
0
votes
1answer
81 views

drupal_add_js not working in hook_user_login

Using Drupal 7 I am adding js using drupal_add_js from within hook_user_login. After adding the js I can call drupal_get_js() and I can see that my js has been added, but when the page is loading the ...
0
votes
3answers
174 views

Play Video in drupal 7

I want to play a video in a site based on Drupal 7. My requirement is simple. There should be a play button to play the video. Video will be on same server where the site is hosted. There is no choice ...
1
vote
1answer
45 views

Overriding registration page

I'm using drupal v7, and I wanted to override the registration form. The custom form will be a client-side 3 steps registration, using jQueryUI.accordion. Solution with a new module: reg.module: ...
0
votes
0answers
108 views

Tree Menu Static links to expand for sub-links

I am new with drupal, and I am trying to find a solutions for a navigation tree menu. I tried using DHTML Menu module so that the user clicks the parent menu item and it SHOULD expand to show the ...
1
vote
0answers
95 views

ColorBox Pause Vido on Close

I need help with a small bug on epacca.com On the right you will see some images, if you click it, it pops-up a ColorBox with a OSM Player (MediaFront) for the video. When you close the ColorBox, the ...
0
votes
1answer
54 views

Drupal Views slide

I have this design: http://i.stack.imgur.com/P6spc.jpg E.G. Click "Structure" header, open contents and come img. Created content type and installed Views. Seperate image, header, content fields ...
5
votes
1answer
404 views

Using Drupal.settings.basePath in Modernizer / yepnope.js loads

I am currently starting development of drupal sites on Acquia. Using git and working locally is a new workflow for me. When building locally and trying to utilize Modernizr load / yepnope, my JS in ...
0
votes
3answers
327 views

Drupal 7 jQuery function call issue

I am experiencing the following issue within Drupal but it is probably not entirely a Drupal specific issue. I have the following simple javascript: (function ($) { function testing(){ ...
0
votes
1answer
187 views

Drupal 7 module not loading javascript code

I am trying to load a javascript file for my module. The javascript code should execute and dynamically apply some CSS styling. However, my jQuery is not having any effect. Plain vanilla javascript ...
1
vote
2answers
820 views

Drupal 7 - How to add Javascript to a View

Basically what I'm trying to do is add a line of javascript code to each row iteration in a view. In Drupal 6 this used to be accomplished with Views Custom Field which has now been integrated into ...
0
votes
1answer
110 views

Simple ads module drupal 7 ads gone after click

I am using a simple ads module to display a block of advertisements,it displaying advertisements but if i click anywhere in site, advertisements block stops displaying.To display it again i need to ...
0
votes
0answers
247 views

How to submit ajax drupal form using javascript

first of all, i've tried Amar Ravikumar solution there, but it still doesn't work. I have this piece of code : $form['button'] = array( '#type' => "button", '#id' => "mymoduleAjaxButton", ...
0
votes
3answers
102 views

Show/Hide all tr-s inside table

Here is the html structure <table class="views-table cols-3"> <caption> <h2>LINK(which will hide/show all trs in this table)</h2> </caption> ...
0
votes
1answer
191 views

Execute ajax call instead of bind() in drupal

I have an AJAX call that binds to the window popstate event. It works, except that I'm parsing the arguments from the querystring. The problem is the ajax call is bound to the window when the page ...
0
votes
0answers
223 views

Tips for optimizing ajax and jquery? Slow performance in Drupal 7

The rest of my code zips along so it's not a problem with the server. However my ajax request runs sluggish. Can anyone spot what it is in my code? Is it just that I have too much happening after ...
1
vote
0answers
185 views

Drupal 7 Translate select all/none links in Better Exposed Filters

How can I translate the texts "Select None" and "Select All" for "select all/none links" in Better Exposed Filter in Drupal7?
0
votes
1answer
204 views

Modify collapse.js to get addtional data from xml when expanding fieldset in Drupal 7?

In drupal i have generated a list where each item is a fieldset with collapsible, that can contain extra information. Because of the rather large list i want to avoid loading the extra information ...
0
votes
1answer
177 views

Attach js file to block in drupaL 7?

I want to attach a js file to a specific block module. I know i need to add with drupal_add_js(), but I'm not sure where to put this code. If someone could show the code for a js file with a function ...
0
votes
0answers
58 views

Load additional information for content of fieldset AFTER page load in Drupal 7?

I have a index of titles from a xml. For each title i have generated a fieldset with collapsible. For each title there is a xml file, that needs to be parsed and loaded into the content of the ...
0
votes
0answers
241 views

Easier or better table editing in Wysiwyg in Drupal 7

I am trying to figure out if there is a tool or a way to make inserting HTML tables into a Wysiwyg field easier for the end users. I am getting complaints about it not being very flexible or easy to ...

1 2 3
15 30 50 per page