Questions tagged as 'javascript'

1
answer

Error declaring a variable in typescript

Hello I have the following error in TypeScript, when declaring a variable, the problem is that I only have that variable in the whole file, and no matter what the type of variable it throws me the same error and when compiling JavaScript throws...
asked by 26.07.2018 / 19:13
0
answers

Correct way to save permissions by user or groups from form options

You have the following table (HTML), with a list of users (from BD with ASP.NET), you want to add certain settings or permissions (form below the table) for each selected user, or for a group of users (the number of users is dynamic). So, the...
asked by 26.07.2018 / 20:00
1
answer

Firebase return null if it does not exist

I have this function: var db = firebase.firestore(); var perRef = db.collection("personas").where("edad","==",33); perRef.get() .then(function(querySnapshot) { querySnapshot.forEach(function(doc) { console.log("data:" + doc.data().nombre )...
asked by 26.07.2018 / 17:52
0
answers

PHP Ajax shows no results (CLOSED)

I need help with my php code, I do not know if I'm doing it right but ... I have this script: $('#procesaPedido').on('click', function() { var storage = {}; for ( var i = 0, len = localStorage.length; i < len; ++i ) {...
asked by 23.07.2018 / 16:58
0
answers

in laravel this search engine that I did recharges the page and does not search me

@section('after-scripts') <link rel="stylesheet" type="text/css" href="{{ URL::to('css/backend/plugin/jquery-ui.min.css') }}"> <script type="text/javascript" src="{{ URL::to('js/backend/plugin/jquery-ui.min.js') }}"></s...
asked by 23.07.2018 / 17:21
0
answers

How to show MySql data in Chart.js with php?

I have a database that has these two tables: and what I want to do is show the percentage of coemrcial and residential that are loaded in a Chart.js with php, how could I do it?     
asked by 23.07.2018 / 15:01
0
answers

Error when doing server data with AJAX

Good morning to the whole community. I'm trying to make a real-time search engine for products, but by the time the browser makes the AJAX request in the keyup event, this happens: I copied all the HTML back into the DIV...
asked by 23.07.2018 / 16:27
1
answer

Firebase web record url in database after uploading file to storage

Maybe someone can help me with this code I am trying to record information in the database of firebase after I upload a file to storage but it does not record just upload the file and what I want is that it also saves the url and...
asked by 23.07.2018 / 12:01
2
answers

Is it possible to create a mailto with SweetAlert?

I'm doing a web page, and I'd like to add a mailto (send an email), through SweetAlert, but it gives me an error and disables some dynamic buttons that I have. Does anyone know if it is possible to do it? I enclose my code in case you can help m...
asked by 23.07.2018 / 11:09
1
answer

Problem showing request results http = formbuilder [Angular 6]

I am trying to show the results of a query http post in the form through FormBuilder of Angular, the fact is that in .observable() I can print the information, but I can not get it out of that function. public listado;...
asked by 23.07.2018 / 11:57