Questions tagged as 'ajax'

1
answer

Pass PHP variable to jQuery from different files

Good afternoon. I write after reading all the similar cases related to my query in this forum and not finding a solution. What I need to know is if you can pass the variable from a PHP document to the jQuery code written in another document....
asked by 28.08.2017 / 18:28
2
answers

Send data to a Laravel driver with AJAX

I am developing a web platform for an IPS with Laravel 5.4 and PostgreSQL 9.6 . The problem I have is the following: in the patient registration form, I would like to see the application by means of Ajax in the database when losing the focu...
asked by 28.08.2017 / 01:47
2
answers

Login ajax jsp servlet: Welcome page load in div reserved for error msj

I am developing a Login with jsp, servlet and ajax. When I put the key wrong it shows me the error message well, but when I enter the correct key it loads me welcome.jsp in the div reserved for the error message. JSP Code: <body>...
asked by 19.08.2017 / 14:56
3
answers

Return ListT by Json to JS from c # with class that contains another class

I have a class Localidad that contains an attribute of the class Provincia , wanting to make the combos nested by Ajax with Jquery gives me a:    error 500 - Internal server error -. If I take out the Provincia attribu...
asked by 11.09.2017 / 21:30
3
answers

How to access sub elements in AJAX and jQuery?

Well I'm working with AJAX , JavaScript and of course jQuery , I've managed to bring the data response from the database so access and show the main data of this, the problem is that I have not been able to access the child elements that eac...
asked by 04.08.2017 / 16:18
1
answer

Duplicate records

I have a Ticket system, the code works 90% considering the requirements of the system, the problem is that sometimes when I make a record, it is duplicated. I have tried several things without success, it is clear that I can not have unique f...
asked by 30.08.2017 / 22:59
1
answer

Requiring a file makes ajax not work

At the moment I am doing a dynamic table with ajax and everything works fine .. until I enter a label <?php require("nav.php"); ?> in a div, this file is a generic menu; Suddenly the error appears in the firefox console: TypeErro...
asked by 27.06.2017 / 15:18
1
answer

how to modify my profile according to a user's ID In laravel + Vue

Hi, I'm new to laravel And I have a problem when it comes to obtaining the data according to each Account. I do not know how to send the unique ID of my account to a Vue + axios so axios automatically shows my information according to the accoun...
asked by 26.03.2018 / 18:12
1
answer

Prevent browser from using cache with ajax

Good morning, I have the following code which verifies me through ajax to a file called ultima_cuenta.php that makes a query and returns the last id of a table called accounts, this code is executed once the password is opened. page and it works...
asked by 26.03.2018 / 04:18
1
answer

Onclick and AJAX event to update database

I want to do the following. When clicking on a link, a onclick event is executed and the database is updated with AJAX. PHP Code if ($mencion['seccion'] == "noticia") { if ($mencion['leido'] == 0) { echo sprintf( '&l...
asked by 04.06.2017 / 19:00