Questions tagged as 'javascript'

1
answer

Handle error with existing firebase account

I have a login where they start using Facebook. I want to add the option to login using Twitter. But for that I must also be able to handle errors with accounts that have the same mail that has already been registered before. That is, if a user...
asked by 21.07.2018 / 13:00
1
answer

Enable javascript effect when it is in the center of the screen

I have this effect in javascript. // [email protected] version is used // Docs: http://progressbarjs.readthedocs.org/en/1.0.0/ var bar = new ProgressBar.Circle(container, { color: '#aaa', // This has to be the same size as t...
asked by 06.07.2018 / 06:39
1
answer

SyntaxError: unexpected token: keyword 'break'

I have a switch in js , and the only error I get is that, here the code: switch (id) { case "0": var user = <?php echo $vv0;?> break; case "1": var user...
asked by 11.07.2018 / 14:14
2
answers

Consult specific data of mysql omitting others in php?

I have a table with the following data id, name, price, category, description, but I want to make a query according to the category, for example, if I select the chairs category just print those rows that have that category in said column. I ho...
asked by 08.07.2018 / 15:25
2
answers

how do I make the recently published comments go down

I have a comment box but the comments just published puts them first, and I want them to go last. from bottom to top "al réves" type chat messages. <main class="centered-bottom" id="main" role="main" tabindex="-1"> from there to below...
asked by 08.07.2018 / 03:26
1
answer

save latitude and longitude by distance (Google Maps and Ionic 3)

I have the following function to save save latitude and longitude in firebase, but I see that it saves it very fast, that is, approximately in 20 minutes I keep around 400 positions. //empieza geololaizacion start() { let markes = [];...
asked by 30.07.2018 / 22:26
1
answer

print an area and delete link and page number

I have this function for the print button: <script src="js/jquery.PrintArea.js"></script> <script> $(document).ready(function(){ $("#printButton").click(function(){ var mode = 'iframe'; //popup var close...
asked by 05.07.2018 / 11:12
1
answer

call php function from javascript

good afternoon friends I have a problem that breaks my head and I can not solve this code I have function llenar_tabla_json(){ $('.cargando').hide(); $(".table-carrito tbody").empty(); $("#carrito_ventas .table tbody").html("");...
asked by 05.07.2018 / 22:52
1
answer

Google charts, I can not use variables in javascript

I have a query that brings me a list of Names with their respective fields (On Time & Delayed). The query I bring with PHP and if I throw a echo $datosGrafico ; give me this: ['Agustin', 17, 1 ], ['Andrea', 79, 0 ], ['Carla', 17, 0 ],...
asked by 05.07.2018 / 19:45
1
answer

Javascript / HTML - filter JSON

I have 3 JSON : clinics, location and specialty, I'm trying to filter by location and by specialty with Javascript, the idea is that selecting the 1 or 2 filters together hide images from the page. The problem I have is that it works parti...
asked by 05.07.2018 / 06:30