Questions tagged as 'javascript'

1
answer

How to create a textarea autorisize with js? [duplicate]

I need to create a text field that grows with what the user types, but it has to be with pure JavaScript, without jquery or anything like that.     
asked by 29.12.2016 / 13:32
3
answers

What's wrong with this code js?

The first part of the code separates the URL into / This is the current URL    www.mydomain.com/category/action var url_atual = decodeURI(window.location.href); var replace_url = url_atual.replace('http://www.meudominio.com/', ''...
asked by 23.12.2016 / 14:10
1
answer

Creating byte collection in old browsers via JavaScript?

I was wondering if there is something like Uint8Array in old browsers (to a minimum in IE8), a collection type with elements that occupy only 1 byte of browser memory. An approximation would be to use strings , but as far as I know,...
asked by 31.12.2016 / 17:55
2
answers

Paste a treated text where the pointer is

I have the following problem:    Some people in my work copy texts from a few words and paste on the forms   that I do (inside the GED), but sometimes in this copy and paste it take with the text some invalid characters, for example   this qu...
asked by 23.12.2016 / 13:16
2
answers

How do I simply ping external sites returning status: 200, 400

I'm a beginner in JavaScript , AngularJS and jQuery . I have already broken my head here and could not resolve the following solution using JavaScript : I want to make a list of the sites I've developed, showing their real-time status usi...
asked by 25.11.2016 / 18:53
1
answer

Random numbers from 1 to 3 without repetition [duplicate]

I'm developing a Web project related to an A / B test system, and I need a function that generates random numbers from 1 to 3 strong> without repeating the ones that have already been generated. function getRandom(max){ return Math.floor...
asked by 03.12.2016 / 12:52
1
answer

How to add and remove required input with jQuery?

I have a select with two option , when I select the first option I want it to show me an input field strong> with the attribute and when I select the second option I want it to do the same, only removing the required input . The...
asked by 26.11.2016 / 23:36
1
answer

How to return today's type input date?

I'm trying to fill an input field with type="date" with the date of the day the form is being filled. I tried the following code in PHP: function getDatetimeNow() { $tz_object = new DateTimeZone('Brazil/East'); $datetime = ne...
asked by 05.12.2016 / 15:58
2
answers

Hello Word javascript

I'm following the firefox tutorial but I'm not able to run a hello word. Follow the code. HTML code <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <title>Javascript 01</title>...
asked by 25.11.2016 / 13:22
2
answers

Google Maps bookmark

I have the application below, which adds markers to the map according to the past addresses, but it seems to me that it has a maximum limit. You only get 10 points, but there are more than 10 past addresses. Could someone tell me why and how do...
asked by 25.11.2016 / 14:26