Questions tagged as 'javascript'

2
answers

Is it possible to get any value from the browser that identifies the user's machine?

Problem I'm researching some way to identify and validate workstations, and would like to get some value from the machine that is not changeable, such as IP that can change. I tried to get MAC address , but it does not seem possible bec...
asked by 01.09.2014 / 15:12
4
answers

Close Mozilla tab, IE, Chrome

I'm trying to close a tab on my site, I've tried using the following commands: window.open('','_self',''); window.close(); window.close() self.close() var win = window.open("","_self"); win.close(); wi...
asked by 28.05.2014 / 16:08
2
answers

Send checkbox with ajax jquery php

I have the form to send / work perfect with the other fields, but I can not receive the checkbox selections. I need help getting / manipulating in php: HTML: <div class="input-group"> <label for="servicos">NECESSITA EMBALAGE...
asked by 10.05.2016 / 21:33
1
answer

Is there a difference in creating HTML elements in javascript?

Is there a difference in creating HTML elements in javascript? Example: As String: document.body.innerHTML += '<h1>foo</h1>'; And with createElement: var elemento_pai = document.body; var titulo = doc...
asked by 11.03.2016 / 18:00
1
answer

C # Parallel.ForEach equivalent in JavaScript

I'm trying to write methods with behavior similar to Array.prototype.forEach and Array.prototype.map , but using multiple threads. For Array.prototype.parallelMap , I did the following: Array.prototype.parallelMap =...
asked by 19.01.2016 / 21:24
1
answer

Problems to add values using Angular JS

See the final result: <head> <meta charset="utf-8" /> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <!--inserindo a meta tag de keywords onde definimos as palavras chaves--> <meta name="keyw...
asked by 31.12.2015 / 14:43
1
answer

How to prevent the contents of an element from being copied after Ctrl + A and Ctrl + C?

I have a page and I want to allow copying normally, but I would like specific elements not to be copied after using Ctrl + A and Ctrl + C , for example forms, navigation menus and banner ads. This is because the content is usually what...
asked by 08.04.2016 / 20:53
1
answer

How to link a specific div from another PHP page

I have a one page site, where I have an external page with a menu, and the same one has to link the DIVS of my home (one page). Example: On my external page, clicking on the Videos menu, I'll go to Div from the One Page page. When I try to li...
asked by 25.11.2015 / 13:40
1
answer

Insert data into an external Json

How do I insert data into an external Json file: var json = { caminho: "img/minhaIMG.png", descricao: "minha descricão" } How can I insert new data into this json file? In my case, I would use the same as a "Database" of my files. A...
asked by 22.11.2015 / 18:34
1
answer

OnMouseOver with Delay when swapping image

I'm using a onmouseover , but it's giving delay from 0.5 to 1 second to change the image, when I put it in my hosting. <li> <img src="images/clientes/1.png"onmouseover="this.src='images/clientes/a1.png'"onmouseout="t...
asked by 25.11.2015 / 16:45