Questions tagged as 'javascript'

1
answer

How do I return the waypoint_order in the Google Directions API?

I'm developing a route-mapping system using the Google Maps API. I have the points of origin and destination and between these points there are some points of interest. When tracing the route Google returns me the best route and mark these po...
asked by 29.01.2014 / 12:39
2
answers

Vue Router: prevent user from accessing the login route if it is already logged in

I'm configuring the routes of my application in Vue.js , initially everything is OK, after logging in the user is redirected to dashboard , now my question is how can I prevent the user from accessing the " /logi n" (again) route a...
asked by 17.02.2017 / 20:12
1
answer

jquery.iframetracker It does not work in Mozilla Firefox, can solve it?

I have a script that writes a cookie with ajax when it clicks on a Google ad (iframe), works in good Chrome .. but in firefox does not .. does anyone know why? Or if you have another solution to do the same thing I'm trying to do ... <?...
asked by 18.10.2018 / 06:13
1
answer

How to use deep-learning to parse forms with addresses?

I have an application for which I need to import personal data. I often get excel or csv / txt files with fields like name, address, email, phone, etc ... The formatting of the files varies, the order too, and sometimes there are blank fields. W...
asked by 14.05.2017 / 06:27
1
answer

How to center a binary tree?

I need to properly center this binary tree template. jQuery or JavaScript can be used. I'm going to need to generate the code with PHP , so you need to have some logic in html . Another detail is that you need...
asked by 09.01.2015 / 04:23
3
answers

What is the purpose of String.raw in Javascript?

Well, the question is the same. I would like to know what the String.raw method in Javascript is for. I saw something in the MDN documentation, but I did not quite understand the use Is it related to string templates ?     
asked by 22.06.2018 / 21:33
5
answers

Is it possible to include elements in the DOM after it is loaded and ready?

I have a table that, depending on the amount of an X value, it inserts a set of attributes at the end of the page (fields). These elements have events assigned to them. But that's not the point. Problem is that: since I add the elements after...
asked by 06.02.2014 / 17:08
4
answers

Changing Placeholder in Focus with CSS is it possible?

Imagine that I have a input for the phone number, but that when the user focuses on it I want to change the text from placeholder , for example from "phone" to "just numbers" . You can do this with CSS in :focus for exa...
asked by 12.12.2018 / 14:54
4
answers

Read value input type file doubt

One question, why does it work: $("input[type='file']")[0].files[0] And that's not it? $("input[type='file']").files[0] // TypeError: $(...).files is undefined     
asked by 01.10.2015 / 16:03
4
answers

How to disable JavaScript field?

I have these HTML fields: <div class="col-sm-6"> <input asp-for="ConfiguracaoTecnibra.HabilitaTeclado" type="checkbox" id="cbHabilitarTeclado" onclick="HTeclado();" /> <label class="control-label">Biometria</label&...
asked by 09.07.2018 / 22:18