Questions tagged as 'javascript'

1
answer

Keep Alerts active in js

How can I retain alerts in js? Normally the browser asks you: Quieres volver a ver este tipo de mensajes? Example: <html> <head> <title>Ejemplo</title> <script> function mensaje() {...
asked by 21.04.2017 / 15:13
1
answer

length of a json in angularjs

There is some function in angular 1.6 to know the number of records that the json brings, I want to know from my controller, I have used $scope.count = Object.keys($scope.data).length ; but throws me 2, when my json brings 8 records, also...
asked by 20.04.2017 / 22:59
1
answer

divide an array by numerical indexes

I want the 2.4.6 indexes that refer to Asian countries to be stored in their respective array, and the rest in the other array mix = ['nulla' , 'italia', 'cina', 'germany', 'india', 'france', 'japan'] europa = [] asia = [] with the follow...
asked by 27.04.2017 / 16:54
3
answers

Use of accumulators in matrix element and iteration counter in Do..While

Hi, I'm learning Javascript and I've come across this: var depositos=[]; var nro,monto; do { nro=prompt('Ingrese nro de cliente',''); nro=parseInt(nro) if (nro!=0) { monto=prompt('Ingrese monto a depositar','');...
asked by 26.04.2017 / 16:55
1
answer

Define a directory for input type file

I have a web application that generates a txt file, which is hosted in a default folder on the server, and sends it through PHPmailer automatically. For reasons of having a second option, I added the functionality of sending it manually using a...
asked by 13.04.2017 / 23:22
2
answers

php error with the server

I have this connection conexion.php <?php # Conexion con la Base de Datos $userdb = 'administrador'; $passworddb = '123456789'; $dbhost= 'dbserver'; $dbname = 'sk_modular_divisiones'; ?> I have this query to fill a...
asked by 10.04.2017 / 20:06
1
answer

Simplify / Optimize FOR

How can I simplify the second for , that is, I would like to improve it / optimize it, I see it as repetitive but I do not understand how to improve it: var book =[ { title: "The Giver", stars: 4, author: "Manuel G. H.", color...
asked by 09.04.2017 / 15:41
2
answers

Obtain PHP object data but it has a json array at the end

Good evening, I have a problem trying to get the answer from the webservices of afip. I send a request to the ws of afip and it returns me the following. I want to get the error but if you see it, the WS response is a stdclass and below...
asked by 08.04.2017 / 02:36
1
answer

Select only one Item from a list of child components in Vue.js 2

My question is as follows. I have a list of folders which, when you click on one of them, will light up and show your information. All right up to here, now the problem is that when selecting another folder, the previous one will continue...
asked by 08.04.2017 / 22:33
1
answer

Ajax validation errors

Hello good day I have a question about how to make an error or an exception in Ajax. My problem is this: When I select a city that does not have zones, (records in BD) I require an error message to appear. However, currently the prog...
asked by 11.04.2017 / 15:51