Questions tagged as 'javascript'

3
answers

Convert string to date

How do I convert: var x = "12/10/2017 12:08:26" pro format: "Thu Oct 12 2017 00:00:00" Does anyone have an idea?     
asked by 12.10.2017 / 17:14
1
answer

Checkbox completed

I have a script that the user enter the ID, the fields are completed: name and inactive, if the user has marked the checkbox inactive when registering return the filled checkbox and if he has not checked the checkbox return it without checked, h...
asked by 11.10.2017 / 16:27
2
answers

Insert an HTML code in a client-side way without using PHP [duplicate]

Personal I have two external files called header.html and footer html containing headers and footers of a website, with menus and etc. I need to include these external files in the pages of the site without the use of PHP. There's something...
asked by 11.10.2017 / 00:06
1
answer

How can I hide or show a div from one page to another?

I have a file where people write in the fields: <div class="banner-bot" > <div class="container"> <h2>Registar</h2> <p>Preenche os dados para criar a tua conta. Quando te registares irá ser enviado um emai...
asked by 12.10.2017 / 19:57
1
answer

Script Alert does not work

I have a file upload code that works perfectly, but the alert in the else condition is not working just the IF alert. Follow the code: if(isset($_FILES['allfiles'])){//verifica o input file, caso estiver setado irá preparar as variaveis e...
asked by 11.10.2017 / 18:43
1
answer

Calling function

I'm starting in javascript and I'm having a question. What is the best way to pass instructions to a Javascript function, I'll give a current example of the way I'm doing, it works, but is it a good practice? sistema('/comando2'); //estou cham...
asked by 11.10.2017 / 05:43
1
answer

Read string generated by FileReader in result function

Next I'm getting a base 64 string but I can not get it to send to my server, it follows the code: $scope.cadastraFoto = function(){ var input = document.getElementById('fotoPerfil').files[0] var reader = new FileReader() rea...
asked by 19.11.2017 / 03:47
2
answers

Passing variable value by $ .post

I'm trying but I do not know how to send the value of select to page pagseguro.php <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>Pedido d...
asked by 17.11.2017 / 04:41
2
answers

Security failure (PHP, JS, API, MYSQL)

I made a site with login, registration, and so on. I validated the login and the registration with POST method, the site is on the server and everything, but when I put the url link already from inside the page it loads. Is it some mistake I may...
asked by 17.11.2017 / 14:24
1
answer

Date on a Highstock chart

I'm trying to create a chart with the framework Highcharts to create a chart, which framewor itself provides, highstock . I am trying to generate a line type graph, the values are correct, but the date is wrong. I looked in a file of the...
asked by 27.09.2017 / 18:24