Questions tagged as 'javascript'

0
answers

Add information to edit record with DataTables

I start the Datables in this way, notice that it has an Edit button on each line: $(document).ready(function () { table = $("#table").DataTable({ columns: [ { title: 'Nome' },...
asked by 01.10.2018 / 03:54
1
answer

How to get data from the Client Side to the Server

Hello. Developed an application in .NET CORE and the access page will pick up the geolocation of the client with the coordinates of Longitude and Latitude. However, I made this code using javascript, and the same will run on the client side, I...
asked by 30.09.2018 / 01:30
0
answers

Invert Ocorrecias

Good morning guys. With this code, and I need the output of it to go the other way, I will put an image just to illustrate. code: <script> var num =[]; function loadDoc() { var xhttp = new XMLHttpRequest(); xhttp.onread...
asked by 30.09.2018 / 17:30
0
answers

Error without explanation, Uncaught SyntaxError: Unexpected end of JSON input

I'm doing a chart and I'm using Chart.js, PHP and jQuery. I was able to run with the correct information, but after a while it stops working and displays the following error: Uncaught SyntaxError: Unexpected end of JSON input at JSON.par...
asked by 27.09.2018 / 14:47
0
answers

Google Maps - google.maps.geometry.spherical.computeDistanceBetween () returns NaN

I have several Bookmarks on the map and when I select any of the Bookmarks, I would like you to calculate the distance between the selected Bookmark and the rest that are on the map. All markers come from a database. When I use computeDist...
asked by 27.09.2018 / 14:06
0
answers

Dynamic PDF with html data in javascript and JSPDF

Well I'm generating pdf using jsPDF but I'm having 2 problems. Just getting a page. You are not having a line break. I tried to use some functions of jsPDF but I did not have success in any of them. PDF being saved...
asked by 05.10.2018 / 17:47
0
answers

Calling a NodeMailer.js via Javascript (AJAX)

Hello, I wonder if it is possible to run a nodemailer via javascript (AJAX). Because error returns and I can not debug (because this is on the server). Is this the right way to call the file? Thank you The code for NodeMailer.js var n...
asked by 05.10.2018 / 13:27
0
answers

Ways to check type in javascript

I am studying JavaScript, and I came across an issue, which I present below, I found several ways to solve a same case in JavaScript, and show which one I chose. I would like to know if they know other ways, and how best to deal with this kind o...
asked by 05.10.2018 / 16:03
0
answers

Create a policy with ng-click and ng-change behavior

Good morning everyone! I have the following problem, I have a combobox and clicking an element will open a modal, if I use ng-change it only calls when I change it ok, if ng-click does not show me the other options. <select ng-model="transa...
asked by 26.09.2018 / 16:47
1
answer

Adding Elements with JavaScript [duplicate]

I'm getting the error:    Uncaught DOMException: Failed to execute 'insertBefore' on 'Node': The   node before which the new node is to be inserted is not a child of   this node. When I try to insert one div after another using JavaScri...
asked by 26.09.2018 / 16:45