Questions tagged as 'ajax'

2
answers

Return AJAX response to another function

I have two functions First function: sendRequest: function () { jQuery.ajax({ type: 'POST', url: xtremeSearchUrl, dataType: 'json', async: true, data: JSON.stringify(data), success: function...
asked by 31.01.2018 / 17:59
1
answer

Doubt about passing variables from jquery to php

I'm trying to pass several variables taken from a calendar from jquery as soon as you click on a certain date in the calendar. When clicked, throw the date into an input with id="my_hidden_input" $('#datepicker').on('changeDate', function() {...
asked by 03.07.2018 / 22:01
1
answer

How to make a Loading when calling a page with ajax?

Well it happens that I want to add a gif Loading and run every time I click on the link, after a certain time I load the page, the gif should be centered and add a kind of dark background to the whole body , I'm using codeigniter, please help me...
asked by 08.05.2018 / 19:02
2
answers

Is it possible to prohibit access to PHP documents from URLS?

I have .php files that make includes of other files, and AJAX scripts that need to make requests to other .php documents. For example, Document X.php has an AJAX script that sends a request to a B.php document and brings some information. Obv...
asked by 12.05.2018 / 08:06
2
answers

Access JSON response in AJAX

I try to access the values of the response I receive through AJAX but I am not capable. The JSON that receives the function in success I think is fine, but when I access its elements these have value undefined . If I throw in the...
asked by 11.12.2017 / 22:17
2
answers

Execute function passed by json

I have this ajax function: function GuardarJson(url,que,id,cod,param,respuesta) { var Daticos = {id: id ,codigo: cod, respu: respuesta }; $.ajax({ url: "Paginas/"+url+"?que="+param, data: Daticos, type: "post",...
asked by 25.12.2017 / 23:14
3
answers

How can I make ten different requests to a server per ajax?

Hello, I have a server that gives me a random word and when creating a loop, it always gives me the same word and I do not know how to make me give me ten different words. Here the code: var palabra = ""; function Creapalabra() { var xhtt...
asked by 17.12.2017 / 16:12
2
answers

How can I apply color to a second column if the condition is APPROVED or REJECTED?

introducir el código aquí <style type="text/css" rel="stylesheet"> .APROBADO{ background-color: red; } .RECHAZADO{ background-color: red; } </style> function cargaPagina(pagina) { var desde = pag...
asked by 03.11.2017 / 22:44
1
answer

Send array via Ajax

I need to send an array using an ajax call. $.ajax({ type: "GET", crossDomain: true, dataType: "json", url: "http://localhost:24234/api/SendPushNotification", success: { Function(result) { Console.log(re...
asked by 23.11.2017 / 15:21
3
answers

Long variables by URL

I am creating a website of readings but it happens that when sending by the URL the content of a TextArea is very long and it returns an error 414 the browser, I am using PHP with AJAX This is the TextArea field: <textarea id="I_Conte...
asked by 13.11.2017 / 04:42