Questions tagged as 'javascript'

1
answer

How to tell if a given coordinate is in a bounding box?

I have a coordinate (lat and lon) and also a bounding box (minlon, minlat, maxlon, maxlat) and I have to find out if a given coordinate is within the area. So far I have not found how I do, I looked in the Google Maps API documentation and found...
asked by 31.08.2018 / 17:59
0
answers

Internationalize plugin

Hello! I'm using a standard jQuery dataTable, but even with charset set to "UTF-8" the translation parts with accents are represented by: . Would anyone know a solution to fix this internationalization? My head looks like this: <head>...
asked by 31.08.2018 / 05:45
3
answers

How to make the first two numbers of a Math.random sequence are not EQUAL

I made a lottery system in order to learn, I will not post the whole code here just the part that I am packed. It is as follows: The draw of the PC is a sequence of 6 numbers that I present in the DOM (it does not matter), so I want the first...
asked by 05.10.2014 / 07:02
0
answers

Error compiling my TypeScript file: error TS5011

My code in the file say.ts: function say(person) { return "Hello" + person; } var user = "Gabriel Lemos"; console.log(say(user)); When I tried to compile:    tsc say.ts I had the error: path \ say.js (1,1): error TS5011: Emit E...
asked by 06.09.2018 / 21:49
1
answer

Datatables displays error while trying to load json file

Can anyone help me? I already researched several themes here in the OS but I still could not solve my problem. I made a query to the database via ajax to check the available schedules of some classrooms. I generated a JSON file from the resul...
asked by 06.09.2018 / 21:58
2
answers

Save data in LocalStorage and then check if it exists on another page

Good afternoon person. I need to save a data in LocalStorage and then check if this value exists on another page, I tried it here but it did not work. First I define the value of the "variable" Prof_AMC if($(myEmail == singleMail)){...
asked by 06.09.2018 / 21:43
0
answers

How to store an Object in Firebase and use in Ionic 3

I want to store the following data in Firebase and use it in Ionic 3, but I did not find any clear documentation that could help me. Can someone give me a way? Follow the code showing the object inside my home.ts initializeItems(...
asked by 30.08.2018 / 19:50
0
answers

Query in the bank within a Modal Window

Hello, I have a question. I want to reduce the amount of elements of my table in jsp by using a Modal (popout) window. I just have doubts about how I'm going to do it. The image below shows how it works, clicking on the "More info" button would...
asked by 30.08.2018 / 20:57
1
answer

How to read an array string in Ionic / AngularJs or Javascript and pass to directives?

I passed parameters to another TS with: console.log('Data', navParams.get('sessoes')); That shows me this result: {data: "2018-09-11", weight: "200", sessoes: "20", repeticoes: "2", notas: "teste"} In this way, I can get each of the Ar...
asked by 07.09.2018 / 18:55
0
answers

How to lock the background screen and allow only Scrooll in the menu

I have a problem here, I created a menu that has scrolling, however when I have to scroll, I need the background screen to be locked and just roll as far as the menu ... Here are the photos: Thecodeisasfollows:HTML(Fromthediv="content the code...
asked by 07.09.2018 / 19:24