2
votes
2answers
825 views

How can I activate a horizontal tab?

Drupal 7 has the field group module which contains a horizontal_tab.js file. Inside this file i found this written // If the current URL has a fragment and one of the tabs contains an // element ...
16
votes
4answers
4k views

How do I change the ajax loading behaviour in Views?

I have a view with some exposed filters in a block; it uses AJAX and the auto-submit feature so the view is re-loaded as soon as a filter option is changed. In the short delay between selecting an ...
2
votes
3answers
13k views

Menu drop down in Drupal 7

I just started to learn and to develop a Drupal 7 site; therefore, I don't know Drupal very well. How can I create the menu used in these two sites, http://www.honda.com.my/ and ...
9
votes
3answers
5k views

Changes in the way Drupal 7 handles JavaScript and jQuery

I'm currently developing a JavaScript script that runs on an administration page. I read up on the changes made in Drupal 7, namely the move from document.ready() to its own jQuery function. However, ...
7
votes
1answer
3k views

How to load a view with ajax so that additional js/css files needed by the view are also loaded?

Currently I'm using jQuery to load a view, like this: $.ajax({ type: 'POST', url: Drupal.settings.basePath + 'views/ajax', dataType: 'json', data: 'view_name=' + viewName + ...
4
votes
2answers
5k views

Force Drupal to attach Drupal behavior to new ajaxed content [only Drupal.attachBehaviors() is not working the right way]

I was doing lot of posts on drupal.org about this topic, but unfortunately in the wrong context. Ajaxed content is not attaching needed JS and CSS (forum) Ajaxed content is not attaching needed JS ...
3
votes
1answer
5k views

Adding a full screen background image to Drupal 7 / Bartik theme

Has anyone managed adding an image as background to a Drupal 7 with default Bartik theme? Maybe using a fullscreenr plugin for jQuery? I'm not sure where to store that code best and do I need to ...
2
votes
1answer
841 views

Drupal 7 Ajax to Load & Interact with one Nodes Comments from its Related Node

I am having some trouble in my quest to build a Drupal 7 custom node based image gallery module. I've got it working, but now I need AJAX to load and manipulate comments. What I am doing I've ...
2
votes
1answer
2k views

Best way for including javascript/jQuery OnLoad in EVERY page on my site

Currently, in my theme.info file I am including 2 scripts: scripts[] = js/backstretch.js scripts[] = js/scripts.js Backstretch is a jQuery plugin that allows for an expanding background image to ...
1
vote
3answers
2k views

Use my existing jquery function in drupal 7

I have my function like this in jquery $(document).ready(function(){ // set the map-wrapper width and height to match the img size $('#map-wrapper').css({'width':$('#map-wrapper ...
2
votes
3answers
901 views

How can I disable jquery_update when my admin theme is in use?

I have installed jQuery Update but it breaks some core functionality that makes the admin UI a struggle to deal with. Is there a way to keep jQuery Update enabled but disable it when the admin theme ...
0
votes
1answer
74 views

Comparing a clicked views-row in a loop

When I loop through my .views-row divs in jQuery, I need to 'grab' the one that is clicked on, needing to uniquely identify it and put only the selected fields from that particular div in my modal ...
0
votes
1answer
611 views

Ajax fired when Filefield “Add Another Item” button is clicked conflicts with my jquery

I have a node type with a multivalue filefield. I am using some jquery called by my custom module to modify some of the UI in the form, but when I click the "Add Another Item" button it completely ...