Questions tagged as 'ajax'

1
answer

Sending PDF and JPEG files with Jquery / ajax

I'm trying to implement a pdf or jpeg file upload with jquery ajax and I'm not succeeding, so I'm in need of help if possible. Trying to use jquery in conjunction with PHP, but I can not pass the data    JS $('#form-almoxarifado input[t...
asked by 26.03.2018 / 20:17
1
answer

Browse rows from a javaEE, jsf2 and Primefaces dataTable with the arrow keys?

I found this code on the internet, but some of it has been discontinued xhtml: <p:hotkey bind="down" update=":testform:tabletest" action="#{aBean.moveDown()}" /> aBean: public void moveDown() { FacesContext facesContext...
asked by 16.03.2018 / 19:58
0
answers

Live search with ajax checkboxes mysql

I'm developing a streaming video / movie website and I'm having trouble filtering multiple searches. I have checkboxes with all categories and my idea was that when selecting a checkbox, I changed the query and so on, even though several ch...
asked by 16.03.2018 / 19:30
0
answers

Problems using data coming from while

My problem is as follows, I have a page called index.php with the following code <html> <head> <meta charset="UTF-8"> <title></title> </head> <body> <form method="POST" action="quest...
asked by 16.03.2018 / 00:16
1
answer

How to change div class according to Ajax response?

Hello, I am a beginner in PHP and Ajax and am creating a form for password recovery that validates the user's email, date of birth and cpf and sends the password to the registered email. print "Verifique o e-mail, CPF e data de nascimento...
asked by 28.03.2018 / 19:19
0
answers

Unable to compare string value received via AJ

I'm having trouble comparing the string in the success function in an AJAX request. AJAX Method: $(function () { $('.error').hide(); $(".form_submit").click(function () { $('.error').hide(); var email = String($("input#email").val()...
asked by 21.03.2018 / 13:19
2
answers

Browsing history with history.pushState

Hello everyone. Next, I made a code for loading content in Ajax and I used history.pushState to change the URL of the browser, but when I click on Back, it does not load the previous address, it just changes the link in the address bar. How d...
asked by 21.03.2018 / 14:41
0
answers

Wordpress - Pagination with query created by ajax

Good morning. I created a search filter with ajax and it is having problems with the pagination that is created with the result of the filtering. When the page displays filtered pagination and the user changes pages (Goes to page 2, for example)...
asked by 21.03.2018 / 15:31
0
answers

how to receive dynamic data from a form and save it to BD

My difficulty happens because I created a dynamic grid where I generate sequential rows to include products, so I do not have the names of the traditionally fixed input. In this case I assign sequential numbering accordingly that I enter the...
asked by 13.03.2018 / 20:05
1
answer

Run ajax on page with more than one form

I have this Ajax code that makes the request for a PHP file, when there is only one form on the page, it works correctly. How do I work when I have more than one form? JS that works $(document).on("submit", "#quitar_debito", function...
asked by 16.03.2018 / 21:07