Questions tagged as 'javascript'

1
answer

Generate Form by Clicking the Button

I'm making a form that when I click the Add button, I generate a new form. So far so good, but every time I make a new one, I have two selects, so when I choose some index of the first, load those options in the second. The problem is when I gen...
asked by 24.07.2016 / 16:23
1
answer

ReferenceError: ... is not defined

Hello, I'm having a problem with the JavaScript I'm using, I'm going to put the practical example I'm using, in the head of my HTML I have 3 different tag openings. follows: <script type="text/javascript" src="http://maps.google.com/maps/api...
asked by 22.07.2016 / 21:17
1
answer

Handling input date

I have an input of type date , I would like to manipulate this input, because when it is executed in iOS (phonegap app) it becomes a combo , so when I run an onChange event, there would be some way to validate if there was change and whi...
asked by 08.06.2016 / 20:43
2
answers

How can I receive names through a text field in an HTML page and save them to a vector in the browser's Local Storage?

I need help completing the function logic: <form name="form1" onsubmit="submeter()"> Nome: <input type="text" id="nome" value="" onkeyup="validarNome()"/><br/><br/> Idade: <input type="text" id="idade" value...
asked by 23.07.2016 / 06:18
1
answer

Get database dates, and "Highlight" them in a Jquery Calendar

I have a code with two dates that will mark something, such as a one week event for example, one is the start date of the event and the other the closing date of that event, to make it easier to view the user I want I put these two dates in a ca...
asked by 09.06.2016 / 13:59
5
answers

Text only Input javascript

Opa, Very simple thing that I did not find something similar, I decided to create, I did: function bloqueiaNumero(texto) { var tecla = new String(); if (window.event) { tecla = texto.keyCode; } else if (te...
asked by 08.06.2016 / 21:56
1
answer

Test Pages within the loading pattern 5 seconds

I'm going to select a few sites to hand, to catalog and make available later and I have in mind to prioritize users using a 2G / 3G USB mini-modem on the Personal Computer (PC), in which the connection is somewhat limited. For this I need to k...
asked by 05.06.2016 / 17:47
1
answer

Script to disable and enable compos with "READONLY" from a Checkbox

I need a script that will enable and disable a field with READONLY from a checkbox I do not know how to program in javascript, how do I script this <input readonly="" type="text" name="xx" value="" <input readonly="" type="text"...
asked by 04.06.2016 / 22:00
1
answer

Doubt - Session with AngularJS + PHP

Well, I'm breaking my head here, I've already sifted through the internet, but I still have not been able to resolve an issue. I'm creating a Quiz application using AngularJS, but I'm not able to create a session, or any other way to write certa...
asked by 06.06.2016 / 20:41
1
answer

How to change the content language of an application with Cordova from Portuguese to English?

I have an application made in HTML, CSS and Javascript using Apache Cordova, it has support for English and Portuguese, but how do I change the contents of all pages of it when the person selects English or Portuguese in a settings page ?     
asked by 13.07.2016 / 14:37