Tagged Questions
1
vote
2answers
34 views
How do I add a dynamic Facebook like button to every node of a certain content type
One very comfortable solution to that problem is provided by http://drupal.org/project/fblikebutton. Unfortunately the positioning of the button isn't flexible enough for my needs.
I want every ...
0
votes
1answer
34 views
Is there a callback for the managed_file form element, called on succesful upload?
Is there a Javascript/PHP callback for the managed_file form element that is invoked when the file is successfully uploaded? (I mean when the "Upload" button is clicked, not when the form is ...
2
votes
1answer
29 views
How to make custom jquery method accessible from Drupal.behaviors, across multiple javascript files?
I have a custom views plugin. When the view is displayed, the javascript below gets loaded. Note the custom method, do_stuff, which gets called from within Drupal.behaviors.
(function ($) {
...
2
votes
2answers
45 views
How do I find out which module loads which javascript file?
I have been experiencing script related problems and would like to go through all the script files by disabling/enabling, to find out which is causing the problem.
So I'd like to be able to find out ...
1
vote
2answers
63 views
Moving a div down if a zone is present using jQuery
I'm trying to move a <div> down if a zone is present, but I'm having a little trouble targeting the right classes, etc.
// See http://jsfiddle.net/xgbzm/.
(function ($) {
if ...
1
vote
1answer
28 views
Form API focus on first input
When my form load I would like to set the focus on the first field in the form. I know I can use jquery to do this by doing $('inout id').focus();. Where would I put this code so that it only runs on ...
0
votes
0answers
46 views
Selectivizr module not working. How to load Selectivizr so the theme would work on IE8?
There's module http://drupal.org/project/selectivizr, but it is not working. When installed it is not recognized and there is already an issue thread by someone and looks like author of the module ...
1
vote
2answers
19 views
How to exclude forms from processing by Hide Submit module?
According to module description this is possible.
However I didn't find how to do it and I did not able to exclude form by any way, e.g:
http://drupalcode.org/project/hide_submit.git/commit/8aab1ab
0
votes
1answer
25 views
Custom basic .js from theme dir prevents Splashify module from working
I am using latest Drupal 7 with latest Splashify version. Splashify (Splash in D6) is a simple module that uses jStorage js (from libraries/ dir) to add a splash/intro page for your Drupal site. So ...
1
vote
0answers
35 views
How to get current XHR object?
My requirement is to add cancel button to AJAX file upload. I know how to add Cancel button when upload starts but how can I get current XHR object to call abort() method on it?
Current code:
...
0
votes
0answers
21 views
Views Exposed Filters loading javascript each time
I have an exposed filter with ajax enabled in a views. Every time I click different filter option it reloads the javascript. Is this the normal behavior or known issues with views 3?
Is there any way ...
0
votes
1answer
28 views
JavaScript loading order
I've installed eu-cookie-compliance module in few projects and everywhere it worked as expected but in one project I have problems with loading JavaScript in correct order.
Even if I implement ...
0
votes
2answers
75 views
Javascript cost calculator
I used JavaScript to construct my calculator, and I'm wondering how to get it to work.
I've tried drupal_add_js(), but it didn't work. I've tried two different modules that incorporate JavaScript, ...
0
votes
0answers
54 views
Reload iframe onclick
I created a slideshow using views slideshow to pull images from nodes. This way drupal loads all images inside a page and script shows one after another.
I would like to have a block on the same ...
1
vote
1answer
37 views
How do I remove extra space in table field?
I'm using Views Module. I created a new ContentType with 3 custom fields: (text)Criteria, (decimal)Monthly, (decimal)Semester.
I created a table style view that retrieved the ContentType I created ...