Questions tagged as 'ajax'

1
answer

Foreach Ajax for combo

I have the following Ajax excerpt to feed input of type text or select with values already defined: ids.forEach(function (id) { document.getElementById(id).value = dados[id]; }); I would l...
asked by 10.03.2016 / 15:00
1
answer

Form with datetimepicker

I'm developing a scheduling system and I'm using datetimepicker to dial the hours. I need a help with json; I need to block the dates that are being used so they can not be selected. The project is updated in github. Thanks in advance!...
asked by 19.03.2016 / 07:47
1
answer

Redirect Cross-Domain AJAX Request in PHP

I have code that redirects an AJAX request and it works normally on localhost , but on the cross-browser server the request is not redirected. header('Location: http://dominio.com/endereco'); exit; Is it possible to block AJAX request red...
asked by 14.03.2016 / 22:16
2
answers

Ajax does not work - send PHP data without refresh

I'm trying to send merged data from a form + PHP variables to be inserted into the DB, without refreshing the page. For this, I have a simple html form, and a PHP conditional that checks the submit form's click (this is why I have other submi...
asked by 18.01.2016 / 16:42
1
answer

AJAX appear divs according to database ID (MYSQL)

I'm trying to make every time I press the #buttonIdUltimoItem a structured DIV to get information from the database from the newest to the oldest according to ID . The problem is always repeating the last three IDs BUTTON: <button...
asked by 18.01.2016 / 17:07
1
answer

Send data from a dynamic table via ajax

I have a dynamic table, where I can add or remove a row, when I add a new row I can send what is written by the form ... But not when I try to send via ajax, it only sends the first line. How would it be right to send all the new lines? html...
asked by 27.01.2016 / 19:38
1
answer

Validation of form php and ajax

I'm sorry if the question is silly, but I do not know much about ajax and I'm trying to make a basic form to test validation using ajax and php (if at all possible). Good reading on the internet and seeing some articles, so far I have come with...
asked by 28.07.2016 / 15:09
1
answer

How to interact with HTML created with javascript?

I'm creating a posts system that will be updated by ajax, however when I add another post the side menu does not work. How to update without making the menu stop? This is the code I'm using, put a button next to it to simulate ajax updating p...
asked by 10.01.2017 / 20:10
1
answer

How do I validate a value without leaving the page?

I'm developing a system with the part of the discount, so I wanted the user to type the discount and after that it would validate if it has or not and the percentage of the discount appears. $cupom = $this->input->post('cupom_desconto');...
asked by 09.11.2015 / 20:12
2
answers

How can I make a link from my site open only when clicked on the same page? [closed]

I'm trying to make a plugin editor for html, css, js and php files, my problem comes after it reads all the files it creates a link to edit my created file and goes to another page only that I want that when the link is clicked it instead of red...
asked by 24.11.2015 / 22:41