Questions tagged as 'javascript'

1
answer

Save image link as file in local storage

How can I save a link ( http://example.com/img.png ) in the file format, which in this case is .png, using JavaScript and saving local storage with $localStorage of AngularJS?     
asked by 26.11.2015 / 17:03
2
answers

Create a Vertical Label or Input

I need to create a LABEL or an Input so that the typed text is Vertical, as follows: M E U T E X T O Would It Be Possible Anyway? This is required for the printing of banners in this format.     
asked by 19.07.2016 / 18:11
2
answers

Why copy the prototype method instead of directly using it?

I was confused when I saw a particular javascript library code - undescore.js . I can not remember the snippet of the code, but it was something like what I saw. var filter = Array.prototype.filter; var meu_array = [1, 2, 3, 4, 5, 6...
asked by 01.08.2015 / 18:45
4
answers

Digital Certificate A3, e-CPF, how to access information with JavaScript

I'm having to develop an application, which for security purposes, requires the use of an e-CPF by users when trying to log in. I just need to check if the e-CPF number checks with the registered user's CPF, which is trying to log in. Can I reco...
asked by 07.07.2016 / 22:30
3
answers

Callback being executed the moment you load the page

I'm doing some testing to learn more about callback in javascript and found the following difficulty: function nome_existe(element) { console.log(element.id); } window.onload = function() { Array.from(document.getElementById...
asked by 17.07.2017 / 14:13
4
answers

Mobile zoom tool

I'm developing a mobile app with Apache Cordova , I need a tool similar to Zoomify , but for mobile I tried to use Zoomify, did not get good results, which tool is the most suitable for this work? Is there a Google Maps API that does this work...
asked by 09.04.2015 / 15:52
3
answers

How do I add jquery library with javascript?

I would like to know how to load the jQuery library with pure Javascript and run something simple with jQuery after its loading? My code looks like this: function colocaScript(){ var scriptJquery = document.createElement('script')...
asked by 19.02.2014 / 14:44
1
answer

Difference between promise.then (sucess, error) and promise.then () .catch ()?

Hello, I would like to clarify the difference and when to use each of the promising treatment templates: obj.promessa( parametro ).then( function ( resposta ) { console.log("Resposta: " + resposta); }, function ( erro ) { console.lo...
asked by 24.05.2017 / 21:59
1
answer

Element removal with Javascript

Removing an element using Jquery is the simplest and most objective thing to do, first you capture the element and then remove it: $('#elemento').remove(); I came in a situation where I need to remove the element only with pure javas...
asked by 27.09.2018 / 23:30
2
answers

What are isomorphic applications?

In several articles and methods of developing modern applications, I come across isomorphic applications . But what is it really? Usually define as "the best of the client / server side" together. So, how are these isomorphic applications?...
asked by 18.08.2015 / 03:59