Questions tagged as 'ajax'

4
answers

Pass HTML select value to PHP with ajax

(ESTO ESTÁ EN UN SCRIPT APARTE EN WORDPRESS, QUE LO RECONOCE PERO GENERA ERROR) (function($){ var d= document.getElementById("lista").value; $.post(document.location.pathname , { variable: d } ); } (jQuery)) <div> <form method="post...
asked by 22.02.2017 / 21:38
0
answers

Simple load ajax works in Firefox peron does not work in Chrome

I'm trying an example in Ajax that apparently only works in Firefox. In Chrome it does not work. Does anyone know why? Thanks index.html <div class="contenedor"> <p>AJAX</p> <button id="carga...
asked by 04.05.2018 / 20:31
1
answer

I can not pass an Object by AJAX to a Visual Basic Function

I have a big problem with Ajax MVC and Visual Basic: When I create an object in javascript to do a POST in Controller everything is fine by when I receive the Object in the ActionResult, all the attributes are Nulls. Can someone help me?...
asked by 16.03.2018 / 19:47
6
answers

Problem when returning a list of JSON objects with AJAX, I can not access the properties of the object

Good morning, I have this web service: [ScriptMethod(ResponseFormat = ResponseFormat.Json)] public string ObtenirProvinciaByPoblacio(int CodiProvincia) { clsCRUD _ou2 = new clsCRUD(); try { _ou2....
asked by 28.01.2016 / 17:08
2
answers

Localhost says 'undefined'

This is my back end, which seeks to update the user's nickname <?php session_start (); include_once 'conexion.php'; $respuesta = array(); if( empty($_REQUEST['nick-nuevo'])) { $respuesta['mensaje'] = 'Nuevo nick, vacio'; } else {...
asked by 24.08.2018 / 16:20
2
answers

Return data from a php server using AJAX

Greetings, I am doing a simple test, it is about sending a data through AJAX to PHP so that I can return a data, but I do not know why it does not return any data. The JavaScript code is as follows: $(document).ready(function(){ $("#l...
asked by 19.09.2017 / 01:13
1
answer

How do you load data from ajax when the page loads?

What I want to do is that when entering the page, a table with the information of the users is loaded, but using JS, I do not like to put PHP code in the HTML, the question is that I do not know how to apply it through ajax, Data will be sent, w...
asked by 28.07.2018 / 02:13
2
answers

What does .map do for an http?

I was doing a test service and from my component when calling the service and wanting to add ".sucribe" it gave me an error that the method was not an observable ... Searching on the internet I managed to solve the problem if in my service I...
asked by 17.04.2018 / 16:39
2
answers

Query works but PHP does not return the values

Hello, I am making a request to searchRand.php, in the php I make a query to obtain data. And I save it in the $ to_return variable. But when returning the value of $ to_return does not return anything. Being in the php command print the variabl...
asked by 15.11.2018 / 10:42
1
answer

Walk through the bootstrap table with jQuery text and value HTML5

I have a problem with jQuery . I'm going through a table of bootstrap with certain values, I need the values to be saved in an array, at this moment I'm going through the values separately, I do not know how I can go through all the values a...
asked by 03.05.2018 / 20:45