Questions tagged as 'javascript'

1
answer

Select an element by attribute in Javascript without Jquery

How to select an element by some type attribute (type, for, value) as done in jQuery ex: [type = text]? I wanted to do a function to skip fields in an automatic form ... I wanted to do type like this, get the tabindex of the current element a...
asked by 06.02.2016 / 15:26
1
answer

Open and close a Collapse at a time

People, the situation is as follows: I have 04 links that when clicking on one of them a collapse appears and presents its respective content. So far so good, the problem is in the moment of displaying these contents. Currently, if I open a coll...
asked by 19.11.2015 / 15:30
1
answer

Logic: How does a friend locator app work?

I'm studying mobile development and painted a question: How does an app that locates real-time friends on the map? Example: An app that shows on the map where your friends are that tb has the app, how far they are and location on the map....
asked by 25.09.2015 / 15:50
2
answers

Exchanging content between pages with JavaScript [closed]

I need to change text that is in <p> of a page x to a <p> of a page and. As part of a bimonthly presentation (course work) I can use HTML, CSS3 and JavaScript. Can you do this with any of these technologies? S...
asked by 26.09.2015 / 22:50
1
answer

How to copy to clipboard in JavaScript?

What better code to copy to clipboard that works across browsers?     
asked by 26.09.2015 / 02:04
2
answers

how to get the date of the server with JQuery

I'm trying to get the date from the server, I know to get the server date with php, but will it be possible with JQuery?     
asked by 29.12.2015 / 08:00
1
answer

Javascript - Capture src by class name

How to capture the src attribute of an image with a class name x? For example: var Image = document.getElementByClassName("Picture"); console.log(Image.src)     
asked by 08.11.2015 / 17:26
1
answer

Graphic made with imperfection Javascript canvas

I made a normal Cartesian plan here on a canvas, but with a problem, the graph is not perfectly centered and this is bothering me a lot, I know I can change the position manually in code, but the question is: By that the graph is decentralized?...
asked by 07.11.2015 / 22:57
1
answer

Background cordova / phonegap

I'm a beginner in the area of creating apps with Cordova, I've looked all over the internet but I did not find any tutorial that explained exactly how to use the background plugin, in all the questions I saw here are the same answers I did not I...
asked by 03.11.2015 / 06:48
1
answer

When to use this and when to use event.target

Today a question came up, although with the tests I did I managed to solve several of them. But so, when should I use e.target and when should I use This . Because yesterday when I discovered e.target, I started to use it. But th...
asked by 12.05.2015 / 00:14