Questions tagged as 'ajax'

1
answer

How can I send data from ajax directly to a php method?

// what I want to do is pass directly parameters to (method) that is in a .php file, the problem I have is that the parameters reach the file but the function does not directly affect them what should I do? // jquery.js file $('#distritos')...
asked by 26.10.2018 / 18:05
0
answers

AJAX, JQuery and JSON in Wordpress: errorThrown: SyntaxError: Unexpected token in JSON at position 0

I am trying to use AJAX on my Wordpress site and I can not get data from the server. I've reduced my code to something super simple to see if I find the error and nothing! add_action('wp_ajax_nopriv_vc_ajax_test', 'vc_ajax_test'); add_action('...
asked by 29.10.2018 / 21:10
0
answers

For what reason I can not receive the value commerce_brand by post in the following algorithm

What I want to do is to receive the value of the variable column in the route that I specify by ajax $(document).ready(function(){ //alert("hola"); let selectCards =$('#cards'); let selectEstados = $('#estados'); let columna = 'commerce_bra...
asked by 29.10.2018 / 22:01
0
answers

Error with dependent dependent php, sqlsrv, jquery

I wanted to exercise with this library sqlsrv since with mysqli I worked without problem the exercise of the dependent select for regions, provinces and communes. My problem is the following I do not know how to debug with jquery in order to cap...
asked by 26.10.2018 / 08:08
0
answers

Update several DIV in real time

I have a web page in joomla that wants that when I update the data it will automatically be reflected without needing to refresh the entire web page. What should I do? This is my code: <script type="text/javascript" src="http://ajax.g...
asked by 01.11.2018 / 22:29
1
answer

Fill with an AJAX 3 inputs

Good I am doing an AJAX request with three "selects" in which I send the value for POST. $(function(){ $("#select2-2, #select2-4, #select2-3, #cntComprada").on("change", function(e){ var producto ="#select2-2"; var contrato ="#...
asked by 27.10.2018 / 00:43
1
answer

Problem with checkbox and datatable?

I have a problem, what I want that is through an ajax can get a number of values and make a tour in my datatable that has a checkbox column, and if the value of that checkbox is equal to the value brought by ajax to be checked: $.ajax({ ur...
asked by 25.10.2018 / 22:13
2
answers

InvalidArgumentException ("Route [{$ name}] not defined."); with laravel 5.7

this is the controller, public function index() { //$files = File::all(); //return view('file/create', compact('')); $paises = DB::table('clientes')->pluck("nombre","id")->all(); return view('file/creat...
asked by 26.10.2018 / 00:12
2
answers

help with php Parse error: syntax error, unexpected end of file in C: \ xampp \ htdocs \ log \ ajax \ conec.php on line 16

<?php function connectDB(){ $server = "localhost "; $user = "$usuario"; $pass = "$passwoord"; $bd = "nombre base de datos"; global $link; if (!($link=mssqli_connect("local host","usuario","password"))){ exit();...
asked by 25.10.2018 / 18:00
0
answers

Error Notice: Undefined index: rate in C Bd mysql Php

What happens is I have a variable in javascript called rate, and when I save this variable in the DB I get an error, I do not know why this error is due or how would I save a variable (fix) of javascript in Php? . WITHOUT AJAX. Here is the co...
asked by 25.10.2018 / 20:45