Questions tagged as 'javascript'

1
answer

Synchronize php and ajax

I'm doing a select in php using a variable that comes from ajax, the problem is that the php is trying to query before receiving the ajax value, this generates an error on the page and the routine is broken in the middle FOLLOW THE CONSOLE ER...
asked by 07.12.2016 / 19:05
2
answers

How can I open a modal after a submit event

I need to open a modal after a submit occurs on a particular button, I wanted to know if there is an event for it, something like post submit.     
asked by 07.12.2016 / 17:53
1
answer

check if object items are empty

Hello, I have an object that receives parameters from a form and sends that object to another page. On this page I need to validate if at least three items have been filled out. Could someone help me?     
asked by 05.12.2016 / 19:04
3
answers

How do I redirect the user to the page he is consulting, after login? [duplicate]

How do I redirect the user to the page they were browsing after the user logged in? I've seen solutions using $ _SERVER ['HTTP_REFERER'] ;, but I do not think that's a good idea, could you help me with some code example? Thankful     
asked by 23.02.2017 / 13:49
2
answers

How to add the size of all files with JS

I have a input file that receives several files, but I only managed to get the size of the first one. I would like to know how to take the size of all and add in a variable; var sizeTotal = $("#inputfileSendTorrent")[0].files[0].size;...
asked by 02.03.2017 / 20:29
2
answers

Javascript going to the top of the page?

Galera, I have a "Like" script, but when I click on it, the page is half reloaded and goes to the top. But when I actually reload the page, it goes to the place I clicked to give the "Like". What can this be? Everything is working properly, t...
asked by 26.02.2017 / 19:14
1
answer

How to redirect a Popup URL?

I want it when you click the "ok" button, let it go to the '/ home' template, after closing the modal. Here is the popup code below: var alertPopup = $ionicPopup.alert({ title: '<b>Pedido Enviado</b>', subTitle: '<...
asked by 28.08.2016 / 02:07
1
answer

Print variable in div with javascript

Hello, I'm not sure what to do, but I'm not sure how to do this. for example "Hello world!" remembering that this variable will then automatically change out of consideration for a fixed value. <div><p >Imprimir aqui</p>&...
asked by 02.09.2016 / 01:10
2
answers

Login inside the javascript alert

Can you login with a unique user and password within an alert? I want it to be a type code, I just do not know how to put 2 prompt in msm popup     
asked by 22.09.2016 / 20:57
1
answer

How to create div that appears in page scrolling

Some sites have a div that appears on the side of the page as it approaches the end of the page. I do not know what its called but I have an example:  on the pages of the link sites, this div appears. What is the name of th...
asked by 12.09.2016 / 17:01