Questions tagged as 'ajax'

1
answer

Browse JSON in JavaScript

The following scenario is presented to me, I have in my HTML a <textarea> in which the user will enter a query, as if it were the command line, example, I can enter:    SELECT * FROM users;       SELECT * FROM countries;...
asked by 22.09.2017 / 05:31
4
answers

Redirect from java script, inside a Json Succces

I am trying to validate the login of my application with a POST method, but the problem is that I do not know how to redirect once I get the response from the server. $.ajax({ type: "POST", url: '@Url.Action("IniciarSesion", "In...
asked by 27.06.2017 / 02:01
1
answer

Messages with php and ajax

At the moment of wanting to do a fetch_array send me this error and I can not solve it    Fatal error: Call to undefined method PDOStatement :: fetch_array () my code so far is the following <?php $query = "SELECT * FRO...
asked by 27.06.2017 / 01:13
1
answer

How to make a correct if within a foreach?

I have an input of type text there is entered an id to verify if you existed or not. list.forEach(function(a) { if (b == a["id"]) { g["setstatus"](true, a["id"], f); return c(true) alert("Correcto!"); } g["s...
asked by 22.05.2017 / 23:52
2
answers

fill in input from dropdownlist selection ASP.NET MVC5

Hello StackOverFlow colleagues, I have the following question, how can I load or give a value to an input when selecting an option in a select or dropdownlist? my create controller is as follows: // GET: Collaborators/Create publ...
asked by 17.05.2017 / 15:24
2
answers

Ajax does not bring me the data

I tell you my problem I'm trying to edit a record and the data I send to call through an id with Js and it works. But after sending that id with Ajax through "POST" to a method to do the query and return the values, it sends me an erro...
asked by 21.04.2018 / 18:15
2
answers

Type of data to receive file in Asp.net (C #) sent from JavaScript

I have a page made in HTML and JavaScript , in this I have a form with several inputs among them is a input file , and I send them to server through Ajax and JS . On the server side I receive the data of inputs , bu...
asked by 04.01.2017 / 18:18
2
answers

send select data by ajax

I have a form that when selecting a 'select' is sent automatically by AJAX, the call works well. Now when passing the variables of the form it says Notice: Undefined index: In the index.php file I have function enviar(theForm) { $.a...
asked by 30.09.2018 / 09:40
1
answer

Navigating a JSON

I want to take the information of this json ( link ) and show them in an HTML and show me only the data of the team that it has as clantag TRCIO, until now I have managed to show me the data, but it shows me those of all the equipment. How could...
asked by 05.10.2016 / 15:38
2
answers

Ajax - PHP - Error status change button

I have a table where I show users with a column / id of "state". Where you will have two values: color green (activo, estado=1) or color red (inactivo, estado=0) . I have the following code to change the state but it shows me the in...
asked by 14.11.2016 / 11:44