Questions tagged as 'javascript'

1
answer

How do I get the full path of a selected file with a type="file" field? [duplicate]

I have a field as follows: <input type="file" id="fileUpload"> And I want to know What is the complete path ?, but when doing this.val() from javascript , I get the following:    C: \ fakepath \ test.txt How can...
asked by 10.06.2017 / 02:30
2
answers

How to activate a href="# id" from another page .html?

How can I make a click on a route that should take me to an identifier and this identifier must perform a secondary action as modal, everything works well from the same page, since the reference from there , but in the practical exercise it must...
asked by 11.06.2017 / 21:48
1
answer

Unexpected token N in JSON at position 0

Guys I have an error that in my NodeJS rest API, and can not resolve this. My idea is to do a github login, this application works like this: Redirection to github by returning a temporary code in callback. Send this temporary code to m...
asked by 27.01.2017 / 17:37
1
answer

How to return variable in nodejs

I have this function: I do not know how to return. var getVariablesOriginales=function(nombre){ var objBD = BD(); let res=[]; objBD.query("select ID_U from usuario u where u.'NOMBRE'=?",[nombre], function(err, rows, fields) {...
asked by 28.01.2017 / 15:29
1
answer

Array Data Passage by onclick [duplicated]

Good afternoon, I needed help with a topic. I bring the data from an api with curl in php which I keep in an array and that's perfect, I show the data in a table and in that table I have a input button which I need to click, send me t...
asked by 28.01.2017 / 14:10
1
answer

Read the names of the contents of an array and write them in an html tag

I have an array with 5 names that have a boolean state in true . When I click on each button assigned to each of them, it becomes false . What I want to get now is that those that are in false , read me the names of the cont...
asked by 02.02.2017 / 15:25
1
answer

Google Maps API, error "No Access-Control-Allow-Origin"

I have a list of orders where each order has an address, what I want is for you to tell me the best order of delivery according to the direction of the orders. For that I use the Google Maps API that returns the positions in an array. But when I...
asked by 13.01.2017 / 13:34
1
answer

BX SLIDER name following photos

I am using bx-slider to make my image presentations. My problem arises when I want to name all the images that make up the Slider to go directly to them in Slider and I do not know how it is done. Attached photo <...
asked by 10.01.2017 / 19:30
1
answer

How to use variable window.open (JavaScript)?

I have a page in which I run a window, what I want to do is communicate the parent window with the child (send information from the father to the child), I did tests before implementing it and it worked correctly. what I did was declare a variab...
asked by 27.02.2017 / 20:08
4
answers

How to disable an option in a select

I'm working with PHP and JavaScript . I have a select , which is filled in by bringing the data from a BD . What I try to do is that when selecting an option of select , it is disabled so that the user can not access that opti...
asked by 10.01.2017 / 20:45