Questions tagged as 'html5'

1
answer

Error if user does not release GeoLocation

I'm putting geolocation on a client's website, but I'm having a problem doing some function that calls a alert() if the user does not give the browser permission to use the geolocation. What I want is to only display alert() when t...
asked by 10.05.2015 / 06:35
1
answer

Scroll per section with side guide

I would like to apply the following effect to a project, when the user uses the scroll, either up or down the scroll is made straight to the section below, needing a rolled scroll and it goes to the next section of the hierarchy: What...
asked by 19.02.2015 / 14:36
1
answer

Formatting for mobile devices

Can I use @media screen and (orientation:portrait) {} to make my code work on mobile devices only? I believe that cell phones and smartphones are the only ones that have $(window).height() greater than $(window).width() o...
asked by 19.02.2015 / 00:19
2
answers

Tool to measure performance of an application in html5 on an android platform

I'm interested in creating an application in HTML5 for mobile, using the android platform. I will use Cordova for this and would like to know if you know any tools to measure the performance of this application.     
asked by 10.03.2015 / 14:25
2
answers

Websocket does not connect to server

I can not connect to the server. Note: the browser supports websocket . I'm doing the following var socket = new WebSocket('sw: localhost:8080'); Any suggestions?     
asked by 20.02.2015 / 16:54
1
answer

How to insert a Client with javascript in HTML5

var clientes = []; function classClientes(nro, nome, sexo,dataNasc) { this.nro = nro; this.nome = nome; this.sexo = sexo; this.dataNasc = dataNasc; } function criarCliente() { var numeroCliente = document...
asked by 12.02.2015 / 23:31
1
answer

Enter values and click the button automatically at the established time

I have a website with a little screen with a login form. And my idea is to schedule automatic login for such a time. For example, I want to have a simple way to change the code as well. The idea is this: When giving 18:00 at night or...
asked by 15.04.2015 / 21:09
1
answer

document.form.submit () does not validate

I made a function that when the user clicks a button, it calls the action document.form.submit() , so alright, it sends the form normally. But in <form> I put onsubmit="return validarFormulario();" but it is not calling...
asked by 15.04.2015 / 17:12
1
answer

Building the name of a function and executing it

I have an object that is made up of several functions. these functions are names of tables that, from an earlier treatment I have to execute them. The idea of the code is, if a table does not exist, execute such a function that will create it ba...
asked by 10.11.2014 / 18:39
1
answer

Repeat div with foreach?

I have a list of registered users that displays the most important data such as name and email. I've created a div to display this data. However, I do not want to display everything in the same div, I would like to create a way to repeat this di...
asked by 10.11.2014 / 18:58