JavaScript is a prototype-based object-oriented scripting language that is dynamic, weakly typed and has first-class functions.

learn more… | top users | synonyms

1
vote
1answer
15 views

Make a from element visible when a radio button is clicked

I have a problem to make a date and a list element in a form in HTML invisible if the user selects one way, and visible if the user selects two. How can I write the JavaScript code for that?
-1
votes
0answers
17 views

Drupal 7 piwik module javascript conflict with other modules js [closed]

When enabling piwik (or put code manually in footer) other modules js not work. I think piwik.js conflict with others js. I tested piwik with D6 and D7 and get error in firebug: "TypeError: ...
0
votes
0answers
25 views

Drupal 7 - CSS not loading in IE, js error 'jQuery not defined'

CSS isn't loading in IE only. I have the css and js files compressed. Only in IE i'm getting several js errors, starting with the error 'jQuery not defined'. The website is http://pattersoneng.com
1
vote
4answers
36 views

How to get jquery working on Drupal 7 - for Newbies

I have been reading many tutorials online on how to get jquery working on drupal 7. Although there are many lines of code and examples, what i cannot find is what piece of code to put where (maybe it ...
2
votes
2answers
40 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
37 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
21 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
1answer
20 views

Javascript widget

I'm extremely new to Drupal and have gotten to this point because I merely want a test page for calendar widgets that I want to develop. I am working with a product called Trumba which will generate ...
0
votes
2answers
22 views

jQuery Draggable plugin integration with Views 3

I want draggable and sortable contents by admin. So, installed jQuery UI and put this code in my main.js: $(function() { $( ".panels-flexible-region" ).sortable({ revert: true }); ...
0
votes
0answers
25 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
votes
0answers
32 views

Phonegap Image upload to drupal server

Am trying to upload my image into the server using phonegap android development. I tried following code to upload my image. function upLoad(){<br> console.log("in do ...
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
0answers
15 views

Browser-specific Javascript conflict in Galleriffic Views

Use-case I ran into an issue when assigning the description field of Galleriffic Views to a entity via Views UI. This entity is created from the Reply module to be able to comment on entity; here, in ...
0
votes
1answer
19 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
24 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: ...

1 2 3 4 5 29
15 30 50 per page