Questions tagged [setattribute]
434 questions
0
votes
1 answer
Change DIV margin on interval
I am trying to change the margin of each element, using setAttribute.
How can I able to use my variable dist "distance" to decrease value until 10, every after delay "interval"?
var dist=200; var speed = 2000;
function slideLeft(x){
dist--;
…

Urg Mu
- 56
- 6
0
votes
2 answers
javascript trouble with the setattributefunction
I use a form that display some div depending on which option you click of the radio button.
The thing is that the div is set to be none displayed, except if I select an option.
So I added the following function in order to make sure that if the div…

Stanislas Piotrowski
- 2,595
- 10
- 40
- 59
0
votes
1 answer
0
votes
1 answer
Why the "setAttributes()" doesn't work properly while using cordova plugin?
I want to create a plugin that connect to javascript while using cordova for the plugin, this is my javascipt code :
var Brightness = function() {};
Brightness.prototype.brightnessUp = function( success, error )
{
return cordova.exec( success,…
0
votes
2 answers
Set attribute before include jsp
consider this situation:
<% for (int i = 0; i < 10; i++) { %>
<% request.setAttribute("i", new Integer(i)); %>
<% request.removeAttribute("i"); %>
<% } %>