Questions tagged as 'javascript'

2
answers

Radio Stream with Phonegap

I'm developing an app and I have the function below and it's perfect for an online radio, I'd like to add others but I'm not sure how. Follow the function: // Radio Controller var radio = null; var isPlaying = false; app.controller('radioC...
asked by 10.07.2015 / 14:03
2
answers

How to do a regressive counter with javascript?

Hello folks I do not understand pretty much anything from Javascript, so for weeks I was trying to make a script that would do the following: 00:00:00 1st started a countdown of 20 minutes after clicking on...
asked by 17.05.2016 / 18:59
1
answer

How to bring the total of each column in the FooterRow of a jqGrid?

I'm using the jqGrid (4.6.0) property with jQuery (1.11.0) , but I was only able to generate the total per column and not That's what I want, I'd like the grand total. The jqGrid contains the grouping property that contains the grou...
asked by 11.03.2014 / 19:37
1
answer

How to safely pass the token after authentication for angular application

I'm developing an angular addin for outlook - Office365 for a management application "Jasmin Software". The application is divided into two parts, A 1 is a javasscript application to handle authentication on the Aouth2 server, the second is the...
asked by 14.03.2018 / 18:06
2
answers

Why is the numbering of the months of the Date object starting at zero?

For example: var data:Date = new Date(); trace(data.month); //Supondo que o mês seja Janeiro: 0 I'd like some details as I know it's not just in ActionScript and Javascript that this happens. Why not simplify the month counter so that in a...
asked by 28.04.2014 / 15:00
3
answers

How to sort an array by values?

Suppose I have the following data. Data = [3,5,1,7,3,9,10]; If I try to use the sort method in this array, sorting is done as if the data were not numeric. Data.sort() But the data type is numeric when I run the following function:...
asked by 20.03.2014 / 13:37
1
answer

The appropriate type to serve JavaScript is "text / javascript" or "application / x-javascript" or "application / javascript"?

When analyzing the source code of several pages, Javascript headers vary with respect to the mime (English) , but the question remains about which one we should actually use: How do we use HTML to indicate a Javascript block < sup> (En...
asked by 03.12.2014 / 14:45
1
answer

Error sending Upload with Ajax

I'm trying to upload a file via Upload to a certain folder but I'm not able to make or understand the error being accused by the script, I'll try to be as clear as possible in describing the problem. Here is the excerpt from Upload Upload: //...
asked by 28.07.2015 / 15:16
4
answers

How to force the opening of a link in another tab and not window?

I have a button (anchor) that needs to be 'hidden', or no text at all. His structure is this: <a class="testeimprimir" href="javascript:teste1();" target="_blank">TESTE</a> The function is this: function teste1() { window....
asked by 07.11.2014 / 12:47
3
answers

Why is it possible to change an array or object value from within a constant?

const array = ["a", "b", "c", "d"]; array[1] = 2; console.log(array); //- ['a',2,'c','d'] In this example I gave, I changed the value of the constant dynamically, too, it is possible to do the same with objects. I would like to...
asked by 29.09.2018 / 01:17