Questions tagged as 'ajax'

2
answers

Check if an image exists in the folder

We have a web portal in which each user appears with an image. In a folder we have all the photos of the users. The name of the images is the ID of each user. We want that if an image does not exist (the image of a user), a standard image...
asked by 25.10.2017 / 06:39
1
answer

send file and variable by POST - AJAX

Good morning, I wanted to ask about how to send a file and a variable at the same time, this works perfectly with just the file, what is commented is what I try to do for the variable // up here I have a variable called new_id that I got i...
asked by 10.10.2017 / 15:17
2
answers

Add one div within another using JQuery AJAX

I have a div within HTML a DIV element <div class="row"> </div> And in a JS file I have a JQUERY function $.ajax({ url: 'https://swapi.co/api/people/?format=json', type:'GET', dataType: 'JSON',...
asked by 14.10.2017 / 11:14
2
answers

Autocomplete conditioned using JQuery

Greetings, I am developing a form where the user searches for a place and a work center using Input Text with Autocomplete in < strong> JQuery , but since there are many records in the database, I placed a Select that shortens the sear...
asked by 27.09.2017 / 18:34
1
answer

How to get the values of a form? [closed]

Good morning, with everyone, if at some time, you were asked to develop a form with many input, I propose this solution Jquery and JavaScript and of course you send it by Ajax . var config = {}; //--->> calcular cuantos input t...
asked by 30.09.2017 / 15:50
2
answers

Check fields and stop sending form

I have a form that checks the value of two textboxes, if they are different it shows the message that one of the fields should be fixed, but even so it sends me the information fulfilling another class, here my code: This is the one that comp...
asked by 18.10.2017 / 02:45
2
answers

Problem of Cors, in Ajax with PHP

Does anyone know why this error originates? I'm calling a file via ajax, and that's what's on the console. The caller and the receiver are in the same domain. what you are calling is a list for a select, if I open it from the direct URL if the l...
asked by 13.09.2017 / 23:06
2
answers

How to pass a variable from ajax to an open web using location.href

Very good, I have an ajax function that calls a file and returns a variable, once I have that variable that is "objJson", I would like to open a page and pass that variable objJson. I hope you understand. function login(){ usuario=$('#idUsuari...
asked by 20.09.2017 / 11:40
1
answer

Delete a table when changing input data

I have the following table: which is generated immediately, but when making a change of dates with $("#p-fechaIni").change(function() { tablaP($("#p-fechaIni").val(), $("#p-fechaFin").val()); }); Send the data and...
asked by 21.08.2017 / 16:34
1
answer

PHP web service consumed by JavaScript

I need to create a simple web service in PHP and consume it from Javascript. I do not know if I should use Soap, nuSoap or Rest (I did the tests with nuSoap). None of the examples I find work for me. I just need the basic structure of a re...
asked by 21.08.2017 / 22:13