Posts by Luan Rodrigues • 33 points
10 posts
-
0
votes1
answer261
viewsQ: Add click event on all buttons with pure Javascript, which is equivalent to jQuery
function Listar(){ var tbl = document.querySelector("#tblListar"); tbl.innerHTML = "<thead>"+ " <tr>"+ " <th>Código</th>"+ " <th>Nome</th>"+ "…
-
0
votes1
answer93
viewsQ: How to return data from a json file in an increasing way, different from the root of the objects?
i want to return data from a json file, but I want it to be printed on the bottom page up, that is, the most recent data, which by default is written from top to bottom in json, always appear at the…
-
0
votes1
answer126
viewsQ: How to pass more than one url to ajax consume json?
I need to create div’s with data from two urls with json via ajax, and the data will be returned on the same page, but I need to pass two urls as parameter, as I can do this? var url_aparecida =…
-
0
votes1
answer14
viewsQ: How to pass an index to the element according to its position?
I am loading data from an external api with json and jquery,every ajax request a div with the item class, a div with the more_info class and a see button plus, which loads the rest of the data, and…
-
0
votes0
answers296
viewsQ: how to pass two PHP variables in the onclick function of the html button?
echo '<button onclick="deleteVaga('.$id,$cidade.')"><i class="far fa-trash-alt" style="font-size:36px;color:#f00;"></i></button>'; in deleteVaga function, it recognizes only…
-
-1
votes1
answer169
viewsQ: How do I pass two variables to the onclick parameter?
if I put only one variable works, but I also need to pass $city to the onclick, but I don’t know how to concatenate in the right way. (deleteVaga function) while($registros =…
-
0
votes1
answer124
viewsQ: how to remove nodes from an xml file with javascript?
I have an xml document, a script.js and an html page where the following test should occur,I click on a button on the page and a function should be executed in the script that removes a group of…
-
0
votes0
answers32
viewsQ: what function would be useful to remove xml data with php or js?
I’m making a system with php,js and xml,with a php form where the user adds events and they are automatically written to xml This is the add.php $campoTitulo = $_POST['titulo']; $campoLocal =…
-
0
votes1
answer49
viewsQ: how to send data in xml without overwriting the previous data
I have the following code,where I get event data from a form and php sends it to the xml file, but instead of the.xml events adding new data when the form is replenished,. <?php #Obtendo dados…
-
1
votes1
answer254
viewsQ: How to get a div of another html page with pure js?
I want to upload a list of a div, from one page to another (both on my server). I know that for this there is the function jquery $('#content').load('paginaexemplo.htm' '#lista'), but I’d like to…