Questions tagged as 'javascript'

1
answer

Javascript - Filter array of objects

And I have an array of objects in javascript: var array = [ { conta_id : "7", marcar : 1, pag_data_emissao : "04/08/2015", pag_debito_credito : "D", pag_historico : "CHEQUE 331107 VENDA S",...
asked by 20.08.2015 / 20:57
1
answer

How to Rank in a List, The Most Accessed Table Link

I'm creating a PivotTable in Javascript to represent a set of favorite links that will be managed through HTML document. Example document.getElementById('resultado').innerHTML =[ '<table>', '<tr>', '<th>ID</th...
asked by 21.07.2016 / 03:53
2
answers

Create playlist control flow for web player

To illustrate what I'm looking for, look at the figure: Screen Shot ForthisIputthesourcecodeforexample:Code<html><head><styletype="text/css"> #slide #screenshot { width: 480px; height: 360px; border: solid 3px #333; }...
asked by 28.12.2016 / 21:05
1
answer

Condition error if

I have a condition if that only sends to the else, even when the boolean returned must be true, the condition drops in else , it must be a silly error, but I've already rolled the code and found nothing yet : if((result1 +...
asked by 23.12.2016 / 22:11
1
answer

Object as a parameter in a JavaScript function

I looked in several places about using object as a parameter in a function, but I only found on this site , but I did not feel comfortable with this structure. what is the best way to parse an object as a JavaScript function parameter and set a...
asked by 01.05.2015 / 05:26
1
answer

Return number with Regular Expression

I have a list of articles from Art. 1 through Art. 2040, but in each article there are other numbers. I would like to make an expression that: 1 - Capture the numbers always after the string "Art." Until the space after the number; 2 - Exclud...
asked by 22.04.2015 / 05:32
2
answers

How to sort the DataTables by ignoring accents?

I am experimenting with DataTables and when ordering the table that has strings starting with accents, they appear at the end of the table. How to sort the table in Brazilian Portuguese format? Asyoucansee,thewordsstartingwithanaccentappearat...
asked by 23.04.2015 / 02:49
2
answers

Getting data from a url

I have the url of a website, link , where I put an address and clicking the ' Search 'the site gives me the coordinates of this address, latitude and longitude, blz! I copied the code of this site and I want the search, by the coordinates of th...
asked by 04.05.2015 / 22:45
1
answer

How to remove a single element having several with the same id

I'm using a jQuery to flip an element and would like the feature to remove the cloned element. When I try to remove the element, for some reason, it does not work because <button> is between <span class='input-group-btn'>...
asked by 08.05.2015 / 18:46
3
answers

Generate single random value with php

I need to generate a random value with letters and numbers in PHP, always starting with the letter A and having numbers and letters mixed with the value. It is referring to the "control code" field contained in this script: <?php requir...
asked by 23.04.2015 / 18:05