Questions tagged as 'ajax'

1
answer

Determine form to do other things first and then resume it and send it to CRM

I have a problem since yesterday with the following form with submit button <form id="form_contactanos" action='https://crm.zoho.com/crm/WebToLeadForm' name=WebToLeads54017000020400005 method='POST' onSubmit='javascript:document.charset="UT...
asked by 12.12.2018 / 18:39
1
answer

response from nodejs does not match the result of the ajax request using formidable

Hi, I'm uploading a file to nodejs with the formidable module and everything is fine, the file is saved in the directory I have indicated and such, but the response I receive on the page tells me that has not been found no file to upload but...
asked by 17.12.2018 / 11:45
1
answer

How to traverse JSON with AJAX

I have the following JSON : {"success":"true","data":{"usuarios":{"iduser":114,"cuenta":"arieldiaz"}}} and my ajax is this: success: function(response){ if (response.success) { $.each(response.data.usuarios, function( key,...
asked by 01.08.2018 / 19:39
2
answers

How exactly does '$ .ajax ({type, post, data})' work in this connection?

Good morning, I am a student entering the world of programming trying to figure out how exactly the script works and I could use a help please, thank you. <script type="text/javascript"> $(document).ready(function() { $('.error').hide(...
asked by 15.08.2018 / 17:48
1
answer

I want to stay on the same page

How can I stay on the same page with ajax? my ajax is $('#add-user').click(function() { $.ajax({ type: "GET", url: "/evaluacion/usuariosSeleccionados", data: { fact: JSON.stringify(localStorage.getItem("...
asked by 27.12.2017 / 04:11
3
answers

Ajax does not send the value of the data to php

I have a parameter that I send to a javascript function, when I make an alert of that parameter it shows me its value, there everything is correct. The problem is that I want to send this parameter via Ajax to a php file, but I think it is not d...
asked by 22.05.2018 / 18:53
2
answers

Show the selected text dropdown

I have a dropdown that I filled with AJAX dynamically and it shows correctly, I need to show the selected one, I tried this without results: alert($('#ul_sucursal').find('option:selected').text()); alert($( "#ul_sucursal option...
asked by 27.06.2017 / 18:16
4
answers

How to invoke 2 functions in Javascript, AJAX and PHP

I'm doing a little program which when the user clicks, it invokes 2 functions that do different things. When I click they send both (I checked it in the Chrome developer tools) and in fact they respond correctly to both PHP, however when they...
asked by 01.07.2016 / 01:32
1
answer

Post with Ajax always gives an error but it still works

SOLUTION: One of the given solutions (which was the one that worked for me was to eliminate dataType : 'json', then if the route remains as in my case /search/search/undefined that I solved changing window.location.href = respon...
asked by 12.09.2017 / 13:52
1
answer

Problems with Ajax.BeginForm Razor MVC4

Good morning. I had previously posted a problem with a form ajax , but I'm still I can conclude this module. The problem is that when I open this Formulario Ajax (which opens in a dialog and the div of it is out of any othe...
asked by 03.02.2016 / 15:10