Questions tagged as 'ajax'

2
answers

Sending a form without reloading the page

I have a form ready and working normal. But what I need to do is this. When I submit the form it will not refresh the page and returns me "Successfully signed in" or "Nick already exists", "Invalid email" <form class="form3" action=""...
asked by 26.02.2018 / 18:32
1
answer

Dynamically retrieve all GETs from the URL

I'm dynamically loading my views with ajax using: view = getUrlParameter('view') ? getUrlParameter('view') : window.location.href+="?view=newusers"; $.ajax({ method: "post", url: "views/empregador/" + view + ".php", data: { auth: 'a...
asked by 04.02.2018 / 03:36
2
answers

How do I make a connection alert?

Well I'm a beginner in ajax and wanted to know how I can do an Internet connection check, and display a message on the screen whether or not I have an active internet connection (I imagine this is possible with Ajax, but I still do not find anyt...
asked by 03.02.2018 / 17:27
3
answers

Press button and "CURSOR / or ANYTHING" appears until operation is finished

I have the following code in javascript and ajax: function marcar_consulta(id_paciente,id_horario, data_consulta ) { $.ajax ({ type:'post', url:'insert_consulta.php', data:{marcar_consul...
asked by 26.09.2017 / 17:56
1
answer

Pass files by ajax

I'm creating the product registration form for a website, and in it, all forms are submitted by ajax to an api. The problem is that in this particular form I need to send images to the server. I'm trying to use the FormData object for sending, b...
asked by 25.09.2017 / 01:57
2
answers

As per Javascript variable within an html value?

I have the following code: console.log(ArmazenaIds); console.log(ArmazenaEmails); contaQuantidadeDeEmails = ArmazenaEmails.length; //listando emails selecionados na div .top for( c=0; c<contaQuantidadeDeEmails; c++) { $('ul').append('&l...
asked by 19.11.2017 / 19:50
3
answers

Form.serialize () does not work

I'm developing an application in which I have multiple tables and dialogs using form.serialize() , but that particular one is not working and I can not find the reason. Form: <form id="formDialogOrdemServicoBuscaTopo">...
asked by 06.12.2014 / 12:22
2
answers

Opening dialog () not working

Well, somehow I've made some changes to my code, that is to say instead of using table I'm using a% list_html hierarchy. The code in fiddle is exactly the same as my code inside the system (with the difference that the li are...
asked by 10.12.2014 / 20:22
1
answer

Processing status in Ajax calls (jquery)

I have an application that communicates with the server using ajax calls with jquery. However, in some cases, the time for callback ends up being too long. I would like to know if there is a possibility of receiving information with the requisit...
asked by 25.07.2017 / 22:55
4
answers

Send PHP command via Ajax?

Is there a way to send a PHP command via Ajax? For example: $.ajax({ url: 'index.php', type: 'POST', data: '<?php echo "teste"; ?>', success: function(r) { $('body').html(r); } }); In t...
asked by 24.10.2017 / 14:38