Questions tagged as 'javascript'

1
answer

Generate a random value in a track, excluding a track

Using Javascript how to do a range with random values with a deleted internal range? Exemplifying:    min | | | | | | x | x | x | x | x | x | | | | | | max       | | = accepted value | x | = value denied Code used: function gen(mi...
asked by 16.01.2015 / 13:41
1
answer

Ajax and PHP for uploading images + information registry

I've been beating since yesterday with an upload of images in AJAX. I am going to publish the advances that I had in study and the difficulties that I still have in case someone can help me:) My script as I always did (without images) was bas...
asked by 19.06.2018 / 15:11
1
answer

Trajectory of an object using canvas in javascript

The question is, I managed to develop the exercise to a certain extent, after that, as I do not know much of javascript, if I send the square back diagonally, the square comes back before due to the coordinates that have already been used, it is...
asked by 21.08.2018 / 02:02
1
answer

WebCrypto keys derived from PBKDF2

I'm using PBKDF2 in WebCryptoAPI to generate a "derivable" key based on a (a password) and deriving from it a AES-GCM key. I'm doing a round of testing where: In the first round I generate the keys (PBKDF2 and AES-GCM), except this...
asked by 17.08.2018 / 07:41
1
answer

How to get a file in PHP passed by $ .ajax?

I have a problem I do not know if it is when sending in $ .ajax or catching with PHP. It is not getting the $_FILES normal on the other side, it arrives as 'caminhofoto' => string 'C:\fakepath.jpg' (length=17) , gave var_du...
asked by 20.12.2018 / 15:12
2
answers

Problem in currency mask in input

I'm having a coin mask problem with AngularJS. I found this thread in Stackoverflow in English. The mask works fine by typing in the input and arrives right in the controller , however when I command formatted the controller to the scr...
asked by 29.01.2014 / 20:43
1
answer

Print EPL code with javascript

I'm doing some testing with the Zebra GC420T printer using the EPL language to generate text and barcode. How can I use javascript to send the printer the following code? N q812 S2 A50,0,0,1,1,1,N,"Example 1 0123456789" A50,50,0,2,1,1,N...
asked by 06.04.2015 / 17:33
1
answer

reload effects of design material

I have a site with design material, but when I update the page html with XHR the new content loses the javascript effect as I could do to reload the mdl? To make the change between the view, I use two functions, in the first step the file url...
asked by 06.06.2018 / 22:57
1
answer

How to create MASK with pure JS in React

I'm developing an HTML, CSS and jQuery site in React, but I've seen that using jQuery is out of phase in React since it's possible to create some components faster and easier, my question is how to make a jQuery-made mask for Javascript pure, or...
asked by 18.05.2018 / 15:48
1
answer

As per legend at a point created in an image

I have code that draws points in an image based on my select options. Each point is related to a select and so I would like to know how by a caption with the name of each select in the point, or rather, the acronym to identify each point. <...
asked by 06.05.2018 / 22:48