Questions tagged as 'javascript'

1
answer

How to check if data already exists in the bank before inserting another in angular?

I have already made a modal that receives a name, it sends the controller in the function of inserting new contact. I want to check if this data is already registered in the bank so they do not sign it again. Anyone know how I can do this in Ang...
asked by 07.05.2018 / 19:45
1
answer

Identify the name of the streets contained in a polygon

I have the following polygon below: function initialize() { var bounds = new google.maps.LatLngBounds(); var i; var polygonCoords = [ new google.maps.LatLng(-23.554548, -46.607911), new google.maps.LatLng(-23.556043,...
asked by 22.10.2017 / 17:44
1
answer

play button plays another audio

I have a table named posts , and there is a post_aud column where a text is inserted with the name of the audio / music (which is 'saved' in the audios folder) ... $get_posts = "SELECT * FROM posts ORDER by 1 DESC"; $run_posts = m...
asked by 15.12.2017 / 04:11
6
answers

What's the difference between declaring an array with "array ()" and "[]" in JavaScript?

In JavaScript we can declare an array in two ways: var matriz = new Array(); and var matriz = []; What is the difference between the two and what are their consequences? This question is being posed for the purpose of documenting...
asked by 04.03.2014 / 21:48
1
answer

How do I create a DataTable that has a dynamic column structure?

Hello, I need to create a DataTable in my MVC project that does not have predefined columns. The number of columns must be defined from the amount of data in a DB field. I have a field in my Model that is called Low Tier Id, it is an FK from...
asked by 14.08.2018 / 14:55
1
answer

Download File via API + Lumen + Maatwebsite \ Excel

I have an Angular application 5 that makes a request to the backend made in Lumen 5.6, in this backend, I have a function that creates an excel file, with the Maatwebsite \ Excel library, for download. However I am not able to download the file...
asked by 13.07.2018 / 12:03
1
answer

Detect phase change, navigator.online

I use this navigator.onLine to check if the user is logged in, however I need to constantly check and use setInterval for this, is there a more elegant way that leaves this gambiarra back type on('navigator.online') ? To c...
asked by 29.05.2015 / 22:12
1
answer

Preventing AdSense links from opening in new tab

Is there any way to prevent my site from opening links in a new tab and having them open in it? It's the opposite? Thank you. Edit: I use Google Adsense. Some ads open on the same tab, others open a new tab. I wanted to block them from openin...
asked by 26.05.2015 / 02:21
1
answer

Return PartialView with validations for an ASP Modal MVC 4

I have an Index screen, where is the table of registered people, on the same screen I have a new button that calls a Modal (boostrap) like this: <a href="@Url.Action("Add", "Pessoa", new { area = "Gestor" })" class="btn btn-primary" data-to...
asked by 21.05.2015 / 02:01
1
answer

Send and receive SMS from a GPS

I need to send SMS to chip do GPS and it will return a coordinate. How do I send and receive this SMS ? Could you put examples of links and services based on HTML and JavaScript for this submission?     
asked by 18.05.2015 / 18:45