Questions tagged as 'javascript'

1
answer

How do I call a phone number right from my ANGULAR JS AND IONIC application

I have an Ionic + Angular Js application that receives the data from the database and in those my data has the phone number as I do when clicking it calls straight from my application. Thank you for helping me     
asked by 10.07.2016 / 11:31
1
answer

How to enable cookies on Electron

I need to use http only cookies in electron, but they are disabled, does anyone know how to enable?     
asked by 15.07.2016 / 16:41
1
answer

Wait for variable value to return function

I'm trying to create a function that turns a file into a Data URL. But I'm facing a problem: The return value of the function is not what I expected. Here is my code: File.prototype.toData = function() { //Leitor de Arquivos va...
asked by 13.06.2016 / 06:54
1
answer

Constant visible throughout the application

Hello, I'm developing the frontend for a API I've developed and I'm having a small problem, the URL of my API I'm setting in all the modules I use, to create a global constant for the application to set URL of the AP...
asked by 14.06.2016 / 12:55
1
answer

Why is NaN greater than any number?

A practical example of this statement is: parseInt(50) > parseInt('a'); When performing this operation on a console, for example, the result is false . The actual code that brought me to this question looks like this: variableB =...
asked by 06.01.2016 / 18:02
1
answer

Upload AJAX select multiple files

This script below selects only one file for UPLOAD. I did a lot of research and found nothing that I could implement so I could select multiple files. <script type="text/javascript" > $(function(){ var btnUpload=$('#upload');...
asked by 30.12.2015 / 11:11
1
answer

How do I know if the browser scroll is close to the height of the div?

I'm trying to make the divs that are hidden at the same height (or next) as the browser scroll appear (individually) as fedeIn effect. Can anyone help me with any ideas?     
asked by 17.01.2016 / 17:53
1
answer

What is the best way to accent words in .js files?

Is there a way to write words the way they are, with their accents? In php, just use: <meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1" /> In javascript, the word Informação must be written Informa\...
asked by 04.01.2016 / 18:36
3
answers

Javascript - save / update content

Well, my question is: I would like to know if it is possible to update the contents of a file in general. Example: I have a file called name.html and inside it I have a <h1>nome</h1> , I would like to do a function that wh...
asked by 25.01.2016 / 06:26
1
answer

foreach javascript array

I have the following script: var data = JSON.parse( '<?php echo json_encode($lista_tipo_indicadores) ?>' ); var cores = JSON.parse('<?php echo json_encode($cores) ?>'); // Quantidade de Indicadores por Tipo var doughnutData =...
asked by 29.01.2016 / 13:59