Questions tagged as 'html5'

1
answer

Option change of select element

I'm trying to add an option to a select: function add(){ var opt = document.createElement("option"); opt.value = "0101"; opt.text = "foo"; } This code works. My question is why when I remove the double quotation marks from th...
asked by 22.04.2015 / 15:31
1
answer

Canvas fill the entire screen with css

I have my canvas in html5: <canvas></canvas> I want the canvas to occupy every available area of the browser, I tried to do this: canvas{ display: block; width: 100%; Height: 100%; border: 1px solid #c33...
asked by 24.01.2015 / 18:46
1
answer

How to use top in the style of images with relative width?

I have the following code: <!DOCTYPE html> <html> <head> <style> img {position: absolute; height: auto; } </style> </head> <body> <div style="width: 1...
asked by 23.10.2014 / 19:54
1
answer

Video is not 100% correct height and width correctly

I have a problem in my tag video because I wanted to leave it with width:100% and height:100%; but without losing my video quality it would have to look like < a href="http://www.popupdesign.com.br/"> site here I opened some top...
asked by 29.05.2015 / 20:46
1
answer

KnockoutJs does not work

Code: <!DOCTYPE html> <html> <head> <script type='text/javascript' src='js/knockout-3.2.0.js'></script> <meta charset="UTF-8"> <title>Title of the document</title> </head> <body> &l...
asked by 03.12.2014 / 20:14
2
answers

Can I have different transitions in the same tag?

Hello everyone, would you like to know if I can have more than one transition in the same tag? Why implement the transitions for properties but it does not work? * Or this is because I have not set the property values before. .trans { back...
asked by 12.08.2014 / 22:25
1
answer

Is it possible to create HTML frames?

I'm in a project where the front-end layer is totally, TOTALLY separate from the banck-end. They communicate via ajax via REST. And in this project, I'd like to break the html so I do not get duplicate content. Just as we do in ASP.NET (maste...
asked by 01.07.2014 / 20:23
1
answer

Menu appears in the emulator but does not appear on the phone

I created an app in Eclipse using Intel's AppFramework, with HTML5 and everything else. In the browser it runs normal, in the normal android emulator runs; but when I export the APK, it does not show the menu, which in this case is a div footer,...
asked by 11.02.2015 / 19:39
1
answer

Javascript Builder for DrawImage Canvas Function

I need to draw several images on various canvas, so I would like to do a generic function that would allow me to pass the arguments to draw the positioned images. I thought of the following generic function: var drawIt = new function(Canv...
asked by 03.03.2014 / 23:26
2
answers

JavaScript to interact with Java

You can get a javascript value and put it inside a variable in java . EX: var len = $(" #relacaoPax select[name=tipo] ").length; console.log( "len = " + len ); }); <% int l = len; System.out.println( "//L = " + l ); %&g...
asked by 22.07.2014 / 19:04