Questions tagged as 'javascript'

1
answer

How to add snippets of 'dynamic code' HTML with JavaScript / jQuery

Generally when we want to list data in the front-end tags using back-end tags <%= %> or others. The deadlock I came across was, "How to do this in jQuery?". To explain it better, I'm developing a blog based on Wordpress. As I...
asked by 14.06.2014 / 05:16
1
answer

How to put bilingual Wordpress?

I needed to put a website (template developed by me) under CMS Wordpress in two languages, but the qTranslate plugin did not enable in my version. Is there any way to do it without plugins? Or maybe a plugin that works in version +3.8?     
asked by 15.06.2014 / 21:52
2
answers

How to make a presentable link

How do I "index" a link on a website to display it in a more presentable way? Example sites / app that do this is whatsapp, facebook, gmail. For example, in whatsapp just paste a link and wait a few seconds for it to take an image and link title...
asked by 08.06.2016 / 17:17
1
answer

Second backslash in meta-characters when expression is enclosed in quotation marks

When using a pattern in quotation marks, it is necessary to add a second backslash ( \ ) in the metacharacters that have such a bar, as in this case, for example: /\d+/ -> "\d+" Code samples: var str = "Hello 123!"; // u...
asked by 26.07.2018 / 03:22
1
answer

What is the function of uneval?

I was seeing some things in Javascript (which seems novelty to me) and I came across an example that showed a function called uneval . Some questions below about it: This function is new in Javascript (are we in 2018)? Does it...
asked by 13.07.2018 / 00:24
1
answer

Apply datepicker to a dynamic input with Jquery

I have a form where multiple fields can be added with datepicker. However, when adding a new field to the form, the Jquery datepicker is not loaded. This is the JS responsible for cloning and adding fields to the form: $(document).ready(fun...
asked by 03.09.2018 / 16:13
1
answer

Get only numbers in an input that receives XX ml (example: 200ml)

I'm using Jquery's mask to automatically place the ml (milliliter) suffix in the input that gets the size of a bottle. being the id of the input #tape: var tamanho = $("#tamanho").val(); A 200 ml example will only pick up the 200...
asked by 30.12.2016 / 21:27
2
answers

Google Chart + Foundation Tabs

I'm facing problems with Google Chart + Foundation . Gráfico does not stay in width:100% , and seems to lose formatting. And this happens when I use it in Tab of Foundation . Strange that if you use Gra...
asked by 19.12.2016 / 12:52
1
answer

Discovering the User's Hostname

I have an application running with AngularJS where I need to know the name of the machine (of the user) that is accessing the application. Has anyone ever had to do this with javascript?    Note: The front end is outside my local network   ...
asked by 19.12.2016 / 19:34
1
answer

How to check duplicate files?

How can I check if two files are the same, even if the name is different in a node js application?     
asked by 02.04.2017 / 12:45