Questions tagged as 'javascript'

1
answer

How to correctly use React props within a data-target?

I would like to know how to use props within a data-target attribute of a 'Modal' this would be my code for the button that activates the Modal <button type="button" className="btn btn-primary btn-block" data-toggle="modal" data-target={...
asked by 26.11.2017 / 17:22
1
answer

how to make the function parameter a String

Hi, I'm trying to generate a table but by making the function parameter text I've had a lot of problems this is the code: elemento = elemento +'</br>'+'<span onclick="borrar('+libros[i].autores[j]+');">'+libros[i].autores[j]+'<...
asked by 19.11.2017 / 00:45
1
answer

Error in mysql_fetch_array

this is the error:    Warning: mysql_fetch_array () expects parameter 1 to be resource,   boolean given in C: \ xampp \ htdocs \ 10-1 \ workshopfinal \ consult1.php on   line 6 <?php $documento=$_REQUEST["documento"]; $conexion=mysql_co...
asked by 19.11.2017 / 00:11
1
answer

How to have an entry method for mathematical equations

I'm making a web page where users have to enter mathematical equations in a normal input like this (without a text editor): <input type="text" name="Ecuacion"> How can I do it so that users can enter the equations without havi...
asked by 18.11.2017 / 02:45
0
answers

Retrieve table data DynamoDB

I am trying to recover data from a DynamoDB table that meet 3 conditions (that is, the parameters match with 3 attributes that I give it). I work with Nodejs, DynamoDB and Dynamoose. If I do it with just one parameter everything works perf...
asked by 15.11.2017 / 17:57
0
answers

Internal Server Error 500 in Ajax

I have a website hosted on Digital Ocean that runs on an Ubuntu under Lamp with PHP & MySQL My problem is that when I want to pass data through APIRest it gives me an internal error. This is my code function ajaxPost(url, encodedata, su...
asked by 17.11.2017 / 13:48
0
answers

Datepicker Range Javascript and Django

I try to use the DatePicker tool from link in my project Django I wish that the date entered by the user was sent with method POST in my view, the problem is that I do not know anything about javascript and this is...
asked by 28.11.2017 / 15:05
0
answers

Get CSV in ZIP from a site with Basic Auth using Google Apps Script (google sheets)

I'm trying to get a csv that is zipped in a url, which needs basic auth. I can not achieve it, since it throws a syntax error in the argument of the variable 'files'. This is what I tried: function importdatastreamcsv() { var user = 'user';...
asked by 17.11.2017 / 09:45
2
answers

How to make an audio stop when you start another one in html5?

Good on a page with
asked by 28.11.2017 / 13:51
1
answer

Problem with Js and the onload event

I'm trying to make an alert on a function load with the onload event. It's easy but it does not work because I'm not. Code: function inicia(){ alert("hola"); } <body onload="inicia()"> <table style="width:50%" border=...
asked by 12.11.2017 / 16:54