Questions tagged as 'javascript'

1
answer

Uncaught ReferenceError: vira1 is not defined

I am creating a function but when it is called says that it has not been defined yet, what would be the reason? import { Component } from '@angular/core'; import { NavController, NavParams } from 'ionic-angular'; @Component({ select...
asked by 15.10.2017 / 09:11
1
answer

Selecting all page elements?

I was thinking about Grid-CSS , I read in some sites about frameworks that exist for him, and that in general are very bad, because they limit the capacity of the technology, so I thought, framework , where javascript...
asked by 29.11.2017 / 17:05
1
answer

How to copy div from iframe to parent? (replicate) can be using ajax, jquery, javascript

I have an index.php which makes a post in conteudo.php, and takes the result and writes in the #contribed div within index.php. Post: <script type="text/javascript"> $(this).on('load',function(){ var dadosLink = 'nada...
asked by 15.10.2017 / 04:33
2
answers

Read .js file and write to page using javascript

I have an Excel spreadsheet that I want to export some data to load into an HTML page. Searching the net I found that this is only possible if I have this data in a .JS file (data type .js). So far so good. But how to read the data in the .js...
asked by 28.09.2017 / 19:46
1
answer

addClass with Math.round

I am trying to make a script in which when a sensor that is part of the test sends me a number 5, it changes the color of the table that is in red to green. That way the test would be approved. But I'm not able to connect addClass with Math.r...
asked by 29.09.2017 / 14:43
2
answers

API or database to achieve latitude and longitude

I need to know the latitude and longitude of a location looking for CEP or any other option that I can provide, it can not be Google maps . Does anyone know any API or base de dados ?     
asked by 29.09.2017 / 18:46
2
answers

Validation based on a list of words

I want to validate a form with Jquery + JQuery Validation, using a list of authorized words. Ex: var PalavrasAutorizadas = ['foo', 'bar', 'fizz', 'buzz' ]; If he enters any word that is not in the list he invalidates the form and do...
asked by 06.09.2017 / 21:16
1
answer

put image in a PHP array [closed]

I have an event counter on my game site, where I wanted to appear a git before the event name. I need some help where I would follow this order. zombie: layout.php<divclass="Themebox Eventos-Box" style="background-image:url(<...
asked by 06.09.2017 / 21:28
1
answer

Find places near a given coordinate [duplicate]

I would like to find places close to a certain geographical coordinate. I have a database with a list of landmarks and their coordinates. Ex: var points = [ ['cristo redentor', '111111', '222222'] ['parque do ibirapuera', '111111',...
asked by 08.09.2017 / 16:40
1
answer

How to make a line increase height automatically css javascript jquery

Good night, people I have the following problem, in the layout that I'm putting together has several lines in different places during the course of the page, the client wants these lines to appear and grow from different directions, initially I...
asked by 08.09.2017 / 00:50