Questions tagged as 'javascript'

1
answer

Navbar with upper margin when adding position: absolute; in a text

Good morning everyone. When I change the position of the text to top of the site to position:absolute; my nav bar has a slight margin at the top. how can I resolve this? var TxtType = function(el, toRotate, period) { this.toRot...
asked by 04.05.2018 / 17:15
2
answers

Open page after upload

I'm thinking of doing this using jQuery and I have used some methods already available on the internet but they are not working. I tried to modify it more, I think I'm doing it the wrong way. What I want to do: The page should open after load...
asked by 01.06.2014 / 03:14
1
answer

jQuery DataPicker error on page with Ajax

I'm finalizing a registration page and realized that jQuery Calendar after being uploaded a second time does not work. $(function() { //Mascaras para Calendário.... $( "#datepicker10,#datepicker11,#datepicker12,#datepicker00" ).datepi...
asked by 28.05.2014 / 00:04
1
answer

Change specific string fields in Javascript

I have the following string: string = "Este aqui é o valor do cliente 000.000.00 01"; I need to create a function that "Looks for" within this string that contains letters and numbers if there is a field with this format "000.000.000 00"...
asked by 23.05.2014 / 21:07
1
answer

What is the storage difference between session, cookies and localstorage? [duplicate]

Where is the storage location for each of them? the local storage I heard that it is html5 and is better than session and cookie , what is the difference between them?     
asked by 29.09.2018 / 20:09
1
answer

How to call an id more than once

I'm sending a field from my form to another page. In this page I need 2 images and 2x the id field that was received. But the received field only appears in the first image. Can you tell me where the error is? Follow the form code: <form...
asked by 28.02.2018 / 23:44
2
answers

I want an image to close and start a countdown of 5 seconds

I'm trying to make an image rise to the top by clicking on it below. Once you have uploaded I want you to click (click here to close) I want you to start a 5 second countdown and then close when you finish those 5 seconds. It's kind of an advert...
asked by 22.02.2018 / 00:52
1
answer

How to resolve error "Can not read property 'substring' of null"

I need to display data from a DB in a filter area but I'm not getting it, it only works if I use one of the filters, and in the console it has the following error "Can not read property 'substring' of null". Controller code: .filter('date...
asked by 19.02.2018 / 20:36
1
answer

Function being executed from the second click

I have a button in my project, which the function is to make appear a div that is like display none, however the function is only executed from the second click on the button, the first click just selects the button. Would anyone know to tell me...
asked by 15.02.2018 / 19:39
1
answer

Doubt about JS objects with array

I'm in doubt about how to make an object that has an array inside, I do not know if that's possible, but it goes more or less what I want to do: var produtos =[ { nome: "Sei lá", cor: azul, tamanho: [ M, G, GG] // não sei...
asked by 13.02.2018 / 16:41