Questions tagged as 'ajax'

1
answer

link_to_remote in Rails 5

I'm leaving for Rails 5 and I can not find a replacement for link_to_remote that has been discontinued. In my old code, I have a "Cadastro" link, which when clicked, makes a request to the "register" action and renders the return in th...
asked by 10.10.2017 / 01:17
1
answer

Bring images with ajax

It is the following personal, I was able to store the links of the images in the database and also stored those images in a folder of my computer. so I wanted to know how I can get these images with javascript and play them on my site. I would l...
asked by 08.10.2017 / 13:42
10
answers

How to create a site without reloading every click on a link?

I want to develop a site that runs around the same file, but I'm not sure how to look for study material for that. So: Normal site-> I'm on the Index.php page. When I click on the "Portfolio" menu, for example, it goes and loads the file P...
asked by 20.02.2014 / 05:48
2
answers

Link Variables

Is it possible to prevent users from accessing a page of type "registar.php? msg = error" per link? In other words, basically there is the link "register.php" that serves for users to register and the email entered was already a user, clickin...
asked by 12.10.2017 / 23:04
1
answer

How to pass object attached without losing array structure

How do I attach an array, via jQuery / AJAX, and continue to get the data in a PHP page in the following structure: Array ( [cadeia-suprimento] => Produto final [produto] => 2 [categoria] => 4 [subcategoria] => 15...
asked by 20.10.2017 / 18:55
0
answers

Select a file via javascript

I have a folder with several pdf files and I needed to select the pdf 1348.pdf, but via javascript, is it possible to do this? Should I use a handler? and how would I return this value (binary, name and size)? ~ / files / 1348.pdf In a ser...
asked by 20.10.2017 / 16:28
1
answer

How to use a JavaScript variable on a php page via ajax

Basically I need to use a JavaScript variable in a php to later register in the database. I have a <a href="carrinho.php"><button id="btnTestar">TESTE</button></a> button that leads to the cart.php page. In the...
asked by 14.10.2017 / 21:06
1
answer

Jquery / Ajax / PHP field validation

I read a few questions here on the PT, but I did not find what I wanted. I made a basic validation with ajax and jquery that is working, but it has an unforeseen. There are two fields: email and time . HTML <p><div class="input...
asked by 05.10.2017 / 19:00
0
answers

Submit File with Form Data

I'm trying to send files without using the submit of the form. I have verified that%% of% is possible, but I have a problem. Apparently, the file is forwarded, since with the variable " formData " I can get the data from the file, h...
asked by 02.10.2017 / 20:21
0
answers

Send form with file using ajax web api entity framework

I'm trying to send a file along with the form to the bank, but when I send it it returns the error 400 bad request, I do not understand why. CurriculosController // POST: api/Curriculos [ResponseType(typeof(Curriculos))] publi...
asked by 13.10.2017 / 03:09