Questions tagged as 'javascript'

3
answers

Insert input only if it does not already exist

I'm working on a form with dynamically inserted fields. But I want fields to be inserted only if they do not already exist. My html: <!DOCTYPE html> <html lang="pt-br"> <head> <meta charset="utf-8"> <title>T...
asked by 14.07.2014 / 15:52
1
answer

ReactJS and routes

The ReactJS framework comes with the idea of web components. Well, it does not use MVC But what about routes? on a menu? how would I access my components correctly?     
asked by 21.07.2014 / 22:12
1
answer

javascript setInterval does not work

The following code works like the 'timetout' function (only happening once and not repeating itself), I tried several ways and I could not, if anyone can help me, I already thank you. function girar(){ var bola = documen...
asked by 09.07.2014 / 02:44
2
answers

Capture data after the # character in the browser URL

I have the following URL http://urldosite.u/home#6 that when I step into a variable, it simply overrides everything after # . And I really want to get just what this after this and this character, in the example, the number 6 I have...
asked by 24.07.2014 / 19:29
1
answer

Dealing with events in elements added later

Consider the following HTML: <div id="div"> <button class="foo">Botão1</button> </div> And the following script: $(".foo").click -> alert "foobar" $("#div").append '<button class="foo">Botão2</...
asked by 11.09.2014 / 14:42
1
answer

"ORA-01756: quoted string not properly terminated"

Talk to people, good morning, I have a legacy code and I'm having the following difficulty: When I try to check a word that has a single quotation mark I get this error ORA-01756 Ex: raphael me'lo Now when I try: Ex: raphae...
asked by 02.01.2019 / 13:09
2
answers

Input type date, how to format output

Is there anyway, using only HTML attributes to format a <input> to receive data formatted to ano/mês/dia ? If it does not exist in HTML is there any way to do this via Javascript at the time of date selection without using...
asked by 06.02.2014 / 18:26
3
answers

Tag script is not printed with jQuery

I need to print a script using jQuery however, all the code is printed and the script does not, does anyone know how to solve this? Here is the code below: codigo = '<div id="teste"><input type="submit" id="botao" value="Send" />&l...
asked by 29.01.2014 / 16:12
1
answer

Remove part of the time interval Kendo TimePicker

When you use% w / w% of% w / w to set a service time selection, the minimum period (8:00 AM) and maximum (18:00) has been set, however it will be necessary to remove the interval from 12:00 until 1:30 p.m. in this list. How to do this action?...
asked by 14.01.2015 / 12:13
2
answers

Array problems in angularjs

I'm having a problem filling an array and then returning it. For example: JS var my_array = {'teste':{'name':'Teste 123'},'lorem':{'name':'Lorem Ipsum'}}; // Esse valor é preenchido pelo $http.post() HTML {{ my_array }} // Retorna...
asked by 22.01.2015 / 11:04