Questions tagged as 'javascript'

2
answers

Send file by AJAX [duplicated]

I am trying to send a% file% by ajax , but the input file returns an error. How can you send "file" files by PHP ? THE HTML CODE <form id="form" enctype="multipart/form-data"> <input type="file" name...
asked by 05.01.2017 / 20:46
2
answers

Type of data to receive file in Asp.net (C #) sent from JavaScript

I have a page made in HTML and JavaScript , in this I have a form with several inputs among them is a input file , and I send them to server through Ajax and JS . On the server side I receive the data of inputs , bu...
asked by 04.01.2017 / 18:18
1
answer

Return a variable that is within an ajax [duplicated]

I am looking for a way to show a child.rows but the only way that can be shown is with a return direct. then I made this code so that outside of ajax I take those values but it does not give me, I hope you can help me. CODE...
asked by 20.01.2017 / 21:31
2
answers

join two arrangements based on a property

I have two arrangements this way array1=[{fecha:"2017-01-01", valor:12}, {fecha:"2017-01-02", valor:3 }]; array2 = [{fecha:"2017-01-01", valor:10}, {fecha:"2017-01-03", valor:15 }]; and I want to form a third arrangement from these two by s...
asked by 11.04.2017 / 23:28
2
answers

Select row and those data pass them to another aspx

At the moment I only have this idea, when you select a column, the Id is placed in a Label and at the same time it is directed to the other page, dragging the Label3 ( id_cr ), and putting it in another Label on...
asked by 02.01.2017 / 19:25
1
answer

Different syntax for throw

I have a question that has come up to me using the keyword throw of JavaScript. According to the documentation the syntax is:    throw expression; Now, I've seen several examples using throw as if it were a call to a function, that i...
asked by 02.01.2017 / 17:05
1
answer

Encrypt data sent by url

I am sending a id by url to the index.php page that loads certain data respectively of the id that it obtained through a session variable, the detail is that if the user 1 with id 1 changes the id 1 to id 2 in the url will consult data t...
asked by 22.02.2017 / 21:33
4
answers

Error in ES6: "is not a function"

How to call a method (from another) that are in the same class in NodeJS? class Usuario{ static foo(){ let a = this.bar(); } bar(){ return true; } } Usuario.foo(); I...
asked by 10.04.2017 / 22:36
1
answer

Place cursor at the beginning of an input after event focus

I have a concern that I would like to share with you in order to find a solution. I am using React for the implementation of a project and I need in one of my forms that when performing the autofocus of one of its inputs which already has an...
asked by 11.04.2017 / 15:47
2
answers

send select data by ajax

I have a form that when selecting a 'select' is sent automatically by AJAX, the call works well. Now when passing the variables of the form it says Notice: Undefined index: In the index.php file I have function enviar(theForm) { $.a...
asked by 30.09.2018 / 09:40