Questions tagged as 'javascript'

1
answer

Starting with Vue.js with jQuery experience

I have experience with JavaScript and jQuery and after a few years I have decided to leave my comfort zone and know new horizons. I took a quick tour of the Angular until I got to Vue.js. Is there a question I would like to clarify with frien...
asked by 24.12.2016 / 13:49
3
answers

How to download file without backend [duplicate]

I want to force a file to be downloaded and I'm trying both ways. downloading on the same page: var docLocation = window.location.href + 'docs/apresentacao.pdf'; var iframe = $('<iframe src="' + docLocation + '" class="hidden">...
asked by 24.01.2017 / 17:32
2
answers

Get only one PHP variable from another page with Jquery

To get the contents of a page I use the date, but I would like to know how to get only one variable on another page. I use this code: jQuery(document).ready(function(){ jQuery('.teste').submit( function(){ var teste = $(thi...
asked by 31.10.2017 / 14:53
1
answer

Concatenation different?

I'm starting to have a short time and I have to register only because I want the information entered by the user such as name, email and age to appear through an "alert" after he clicks the " Accept ". My HTML and Javascript files are already...
asked by 14.01.2017 / 23:30
1
answer

Calculation via Javascript

I'm having trouble performing a price calculation for multiple products on the Front End. I have array of products and I need to add them through a function. Example: produto[0] = {produto:'Camisa',preco:'45,90'}; produto[0] = {pr...
asked by 07.11.2017 / 20:53
3
answers

Retrieve input file name and assign input text

I have the following code with a% text_type% and a file type. See: <form action="#" method="post" enctype="multipart/form-data"> Name file: <input type="text" name="name" id="name"><br/><br/> <inpu...
asked by 06.06.2017 / 21:20
2
answers

Function that returns an array of strings that are in all arrays

Talk to people, all good? My question is simple, but the solution may not be as simple as that. The truth is that I am doing a job in JS and soon I will need to solve a problem that will make me lose a few hours breaking my head. So I d...
asked by 27.06.2017 / 14:32
2
answers

Javascript clock with NTP time or server

I have the code below, which displays a clock on a page, which serves to record factory intervals. It works perfectly, with the code below: function moveRelogio(){ momentoAtual = new Date(); hora = momentoAtual.getHours(); if (h...
asked by 20.06.2017 / 20:49
2
answers

Click event gets lost on next page in pagination

I have developed a simple pagination page for my studies and am having a problem in the click event when I go to the next page. On the first page the event works but when I go to the next one the event seems to get lost. What can it be? Below...
asked by 25.08.2015 / 21:27
1
answer

Doubt onkeyup javascript

When I type in input some word, the text entered goes to uppercase. In Mozilla Firefox and Internet Explorer I can return the blinking indicator to type a letter and I can edit it anywhere. In Google Chrome, every time I return to t...
asked by 28.08.2015 / 01:48