Questions tagged as 'ajax'

1
answer

How to receive data from php to ajax?

I am practicing PHP POO with javascript and ajax, I have my code ready with the sql query: public function SessionStart() { $conexion = $this->conectar(); $sql = "SELECT * FROM usuarios WHERE usuario = ? AND pass = ?";...
asked by 02.07.2018 / 05:47
1
answer

problem when sending data with ajax to mysql

good day I have this small problem and I would like to give me a hand I am trying to send data to my database through ajax and I work all messages and all alerts and when I send to send says that everything was sent OK but the data is not added...
asked by 05.07.2018 / 02:54
2
answers

Modify attributes of HTML elements dynamically created with JavaScript

On my website I make a request to the server PHP with AJAX , and I bring some links already created in PHP . All right up to here, but the problem is that I want to change these links to href with JavaScipt , but...
asked by 09.08.2018 / 00:37
1
answer

Help with the error: can not call getOutputStream () after getWriter (), when trying to perform a file download in java?

I have the following method in the controller, which returns a json type response to the view, to show in a dialog whether or not there is data in the bd according to the information of the parameters that happened to my service. @Req...
asked by 13.06.2018 / 06:51
0
answers

How to redirect data to another javascript

I tell you, I have a calendar project, calendar, so that it is "indexed" in a body_agenda.php file, which determines some higher buttons that if you press one you pass to the calendar for weeks, if you press another one to the days ... Well,...
asked by 09.06.2018 / 17:18
1
answer

Confirm Dialog when you are closing a browser window

Hello, my question is how can I make a dialogue message when a user wants to close the page to confirm if they want to leave or want to stay on the site, I tried in many ways that I saw by other posts and none It works for me, thank you very muc...
asked by 08.06.2018 / 13:17
0
answers

Error making a query with the Ajax function help

I have a problem with a function, what I'm doing is a search engine and, inside, there's another div that when I click on it, it's supposed to give me the user's data but not do anything but if I take it out of the div of the search engine if...
asked by 07.06.2018 / 22:47
1
answer

It helps the unset () function, it does not eliminate the variables of $ _SESSION

hello I hope you can help me I want to delete specific session variables, but it does not, I'm using the unset function, but my code does not delete the session variables I have two buttons by which depending on which one they choose me to a fil...
asked by 27.05.2018 / 12:12
3
answers

Avoid submitting in a form

is that I have a form, and I need to avoid going through the submit if it does not meet certain conditions, this is my js. $(document).on('click', '.validar', function (event) { var parametros = { "User": {...
asked by 20.06.2018 / 18:56
1
answer

How to add Header to an Excel Report with PHP

I need to generate a report in Excel with Cabecera, that is, add who did it, the department, the time I downloaded the excel from the page. etc ... etc ... I already generate the report, but I have no idea how to add the other. This is the f...
asked by 23.05.2018 / 15:21