Questions tagged as 'javascript'

1
answer

PHP Receive data from a CSV via URL

Good morning, I need to know if there is a possibility of doing fgetcsv() using temporary of a .csv file coming from a url. The reason you try to do this is because Chrome does not overwrite any saved files. You could do the...
asked by 14.02.2017 / 13:34
2
answers

ionic2 - upload photo via server

Next Galley. I have an application in ionic 2. The action is simple: take a photo or select a photo from the gallery. So far so good. however, at the time of upload, it goes on the server, but the photo does not go, that is, $ _FILES is empty...
asked by 11.01.2017 / 17:19
1
answer

JavaScript: How self is it used? [duplicate]

     This question already has an answer here:                   JavaScript - Difference between 'this' and 'self'                                      1 reply                                What is the specialty of self , a...
asked by 11.01.2017 / 14:48
1
answer

Route in Google Maps using coordinates

I have this code to create routes using Google Maps var map; var directionsDisplay; // Instanciaremos ele mais tarde, que será o nosso google.maps.DirectionsRenderer var directionsService = new google.maps.DirectionsService(); fun...
asked by 10.01.2017 / 14:00
1
answer

Get table value with jQuery

I would like to get the value of a column from the table, but in a way that I could reuse the function to get values from other tables. I tried the following, but it does not show me anything on the console. NOTE: The value for the line o...
asked by 23.02.2017 / 01:11
1
answer

Filter Array and return a new array with objects that have been filtered

Using Javascript , I created a function as simple as possible that gets a _Array_ of objects Pessoa (example: {name: "Alex", age: 24} ) that returns a new _Array_ only with Pessoa objects that have age bet...
asked by 21.02.2017 / 22:19
1
answer

Scrolling with anchor

I need to make an anchor on my website and at the moment I have the following script : <script> $(document).ready(function() { window.location.href='#foo'; }); </script> It directs the page to the desired element, but...
asked by 22.02.2017 / 12:44
1
answer

Error with custom inputs

Hello, I'm using a script to add input fields to a div: <script src="//ajax.googleapis.com/ajax/libs/jquery/1.11.2/jquery.min.js"></script> <script type="text/javascript"> // Adicionar curso $(document).r...
asked by 22.02.2017 / 02:46
1
answer

How to insert and unhide a list of items in the database

The code below allows insertion of n items in the array $scope.items[] : var app = angular.module('app', []); app.controller('controlador', function($scope, $http) { $scope.user = {}; $scope.produtoTrib = {}; $s...
asked by 02.02.2017 / 11:48
2
answers

TypeError: b is undefined jquery.min.js: 3: 6371

I'm trying to create a function that, given the type of post, returns the findings that are in the database using jQuery-min-3.1.1.js , PHP, and JSON to exchange information. However I get the following error message: TypeError: b is un...
asked by 03.02.2017 / 21:48