Questions tagged as 'javascript'

4
answers

Open page from html depending on if statement

I am creating a web page where you can create two types of users, A and B. For this I have a script where people can decide what type of account to use. Each account re-directs one or the other but I do not know how to do it from a script. Here...
asked by 12.11.2017 / 15:36
2
answers

Add and subtract values when hiding or showing a div

I would like to see if you can help me, guide me to solve this problem, I have a gross value and from this I can add or subtract values, depending on the selection I make, I mean, I come with a gross value of 500000, here I can select if by the...
asked by 13.11.2017 / 21:43
1
answer

My responsive only works when activating the desktop version in the browser

I have a website, which in version portrait on my cell works responsively, but when I turn it into a landscape version, it shows how it would look like on a large PC (although the average querie specifies that it takes version landscape of the s...
asked by 10.11.2017 / 21:57
1
answer

How to access a file hosted on another server

I am trying to access an .obj file with javascript that a different domain than the one it is hosted, by placing the url address of its location but I am returning the following error "missing the CORS header 'Access-Control-Allow-Origin' ), "I...
asked by 10.11.2017 / 19:51
0
answers

Q: How to create .xml files with custom name with javascript?

I am currently encountering the following problem: I have an SQL query that brings me data and stores it in a table, when I click on a button, it executes a Javascript that exports the information of the table to a .XML, but when exporting it it...
asked by 10.11.2017 / 20:29
0
answers

Get data from the Firebase database?

I try to bring firebase data code: function getClient(key) { var client; db.child("Client") .on('value', function(snapshot){ client = snapshot.child(key).val() console.log("1", client) });...
asked by 10.11.2017 / 22:32
0
answers

Put element that has the focus in sight

I have a problem, I have a list in which when I click on any of the elements it gives the focus but as the view changes position, and the element where I clicked is lost, which can cause this? Greetings     
asked by 09.11.2017 / 10:25
1
answer

How to manage groups for access to buckets in Amazon S3

I am developing a serverless app on AWS with the javascript API in angular 4, I have a bucket mi-bucket in S3 with one folder per client ( mi-bucket/cliente1 , mi-bucket/cliente2 ). I have created a userPool cargaArchivo...
asked by 08.11.2017 / 23:10
1
answer

Cancel sending form to servlet

Cordial greeting, I have problems trying to validate the form to send a form to the servlet, I'm going to validate by JavaScript, but even if I return false to the form on the onsubmit tag, the same form is processed in the servlet. I clarify...
asked by 08.11.2017 / 04:53
0
answers

Synchronous function waiting for swal in JavaScript?

What I'm looking for is that the execution thread of a X function is waiting for the swal . Something like this function x() { var t = false //Por aqui valida cosas //llega al swal swal({ title: "¿Desea actualizar...
asked by 09.11.2017 / 20:59