Questions tagged as 'ajax'

1
answer

AJAX + RAILS Save javascript variable in my database

I want to make a game type quiz, that according to the correct answers the user earns X points. Those x points I want to save in a table called Games that has a field called points. I would like to do it without having to do any submit. That is,...
asked by 02.09.2018 / 18:42
1
answer

How to save a Json in a variable javascipt

hi chic @ s I have a problem. I'm designing a web in which I use a php script that searches in several directories of my web images that comply with certain characters in its name, and once it has this it returns the link in json format. My p...
asked by 29.08.2018 / 22:46
1
answer

"parsererror" SyntaxError: Unexpected token in JSON at position 0?

I do not stop getting this same error, I have researched about it and it seems that I am sending as html ... something? The concept does not finish to me to be clear in the other answers that have been with the same problem &...
asked by 27.08.2018 / 17:08
1
answer

Failure jquery in function associated with submit button

Hi, I'm following an ajax tutorial that I can not get it to work. Apparently he can not even do the function funcPrincipal () {$ ('# miFormu'). on ('submit', executeAjax);} in main.js Could someone tell me what's wrong? Here I put the files:...
asked by 29.08.2018 / 17:58
1
answer

How to open a Modal, in CRUD of data with jQuery

I have a CRUD of DATA, in which I try to do something interactive with jQuery: This is the part of the table, in which it contains the data, and its buttons to edit, see etc. <td><input type="checkbox" name="check"></td> &...
asked by 29.08.2018 / 13:33
2
answers

A .serialize () does not take the form data

I have a problem with jQuery. The problem is that I have an AJAX request to send me two data to another .php page that asks me a question. <script type="text/javascript"> $(document).ready(function(){ var data=$("form").se...
asked by 28.11.2018 / 23:28
1
answer

DOUBT To validate form with jQuery before "Check Data"

I'm seeing how I can validate a form with jQuery. The form can be of "4 types" with what depending on the option that you choose at the beginning: "I would like to add a required attribute to the required fields, of course it will vary de...
asked by 22.08.2018 / 11:58
1
answer

How to validate values within an array with Validator?

I have the following javascript: arreglos_grados fix, which implements it in the following way: arreglos_grados = [] but I would like to validate with the Validator of Laravel 5.5 if a field that I am inserting in the...
asked by 13.08.2018 / 16:27
1
answer

Capture F5 and Execute Function

I'm doing a project with jQuery (Ajax y Json especificamente) , where the data I add to my document with JavaScript for which the pages do not have url, and if I do F5 all the data are erased, I try to capture the F5 a...
asked by 18.07.2018 / 00:28
2
answers

Run script generated with PHP after loading AJAX

I have put the following javascript test code but it does not run after loading the page with AJAX. <script> alert('hi'); </script> My AJAX code (in functions.js): function mostrarAJAX(enlace, elem) { $.ajax ({...
asked by 06.08.2018 / 14:03