Questions tagged as 'javascript'

1
answer

Error no-restricted-syntax iterators / generator on Eslint Airbnb

I'm testing Eslint using the Airbn style guides, I use the airbnb-base package My doubt arises from this error in a loop for..of error: no-restricted-syntax - iterator/generator In the documentation says:    Do not use iter...
asked by 06.04.2018 / 20:32
2
answers

Change .jpeg to .pdf with php

I have a form where I can upload a file and rename that file, normally jpeg files are uploaded but I need to convert them to .pdf, would there be any way to make it easy with php? I leave the code where you upload and rename the file <...
asked by 05.04.2018 / 08:36
0
answers

refactorization of ajax call using promises

I have a code that requests Ajax using callbacks, the task is to transform it into promises that are linked. So far, I do the two services using $ .when and .done the issue is that this confused about how to sort the parameters that were previou...
asked by 06.04.2018 / 03:16
1
answer

Receive data in MVC 5 controller

I have the following problem I am trying to send some data from ajax to my mvc driver but it did not manage to recover them this is my code: var Url = '@Url.Action("Save", "InspectionDailies")'; var user = 0; function getval(sel) {...
asked by 05.04.2018 / 23:13
0
answers

html2canvas jspdf at internetexplorer 11

I have the following problem. I have a button that has to make a screenshot and generate a pdf. I use the html2canvas libraries (to make the screenshot) and the jsPDF library, to convert the image to pdf. In browsers chrome and firefox works wit...
asked by 06.04.2018 / 11:46
1
answer

Obtaining values of a json in js

I need to save the data I'm receiving from a json for this occasion I need to save all the data I'm getting in different variables, that is, by data I need to create a new variable that contains it ... I have more or less the idea. I suppose.....
asked by 10.04.2018 / 15:47
1
answer

Failed to save items in MongoDB

I'm having a problem. When I enter data in an HTML and send it to the MongoDB database, the empty elements are sent to me, that is, the attributes that are saved do not contain the data I enter in the html. Here I show you the example: addItem...
asked by 10.04.2018 / 12:59
2
answers

Get the value of a table

Good morning I want to get a value from this table when I click: <table> <th>2016</th> <th>2017</th> <th>2018</th> <th>2019</th> <th>2020</th> </table> With this functi...
asked by 10.04.2018 / 15:37
0
answers

Problem inserting javascript into php

I have a problem with inserting javascript code into php. What I am trying to do is create a map and insert markers (points) in it. The data is taken from a database in mysql, the queries are php and the rest in javascript. What I show here is a...
asked by 05.04.2018 / 20:04
0
answers

Problem updating Trello card with its Javascript API

I am trying to modify the values of a trello card through its API, in this case I am trying to modify its name, the call offered by the API is as follows: PUT /1/cards/{id}/{property}?value={newValue} link I'm trying it in the followi...
asked by 05.04.2018 / 21:19