Questions tagged as 'javascript'

1
answer

Checking URL regardless of server

I need to check the URL of a page in JavaScript. I'm displaying the following alert: alert(window.location.href.toString()) The following ULR is displayed in the alert: http://localhost:9577/Painel/Index I can not compare...
asked by 28.09.2016 / 21:17
2
answers

How to display element by mouse inactivity? [duplicate]

For example, the user enters the page and, while not moving the mouse after a certain time, an element appears.     
asked by 20.04.2016 / 18:40
2
answers

How to leave the Google map like this?

Is there any way to style the google map like this?     
asked by 20.04.2016 / 02:56
1
answer

E-mail evaluation

I have a problem analyzing email in a form of register, what I would like to do is that once the user enters his email in the email field, the site already evaluates the email in the database to know if he is available to register....
asked by 20.04.2016 / 17:48
2
answers

fill select field when opening javascript / jquery page

Hi, I already received a lot of help when I needed a select field to fill in automatically in this post here: fill javascript / jquery select field It's working perfectly well, but now I need to open a page where the select field is already...
asked by 21.05.2016 / 00:07
1
answer

When clicking on link perform reload on div with Angular. ng-click, ng-include, controller

Hello! I have this link: <ul class="nav child_menu"> <li><a href="graficos.html">Gráficos</a></li> </ul> Clicking the link should display grafico.html through ng-include : <div ng-in...
asked by 20.05.2016 / 19:07
1
answer

Bring DB data with javascript

Hello! I have a MENU and a submenu within each item of this menu. Every time I click on a menu item, it opens a sub-menu (concert effect). Is there a way to do select within the database and work with the result of these select, within...
asked by 08.04.2016 / 22:33
1
answer

Would it be possible for me to connect to a server in java using Basic socket using a Javascript client?

I am studying game development and lately I have considered developing a game online or even online. There are two IDE's in which I can develop games, Unity3D and RPG Maker MV which use the javascript language. I'm a beginner in javascript so...
asked by 10.04.2016 / 05:27
2
answers

OnClick type image

I'm having trouble making a onclick event work. I would like to change an image of an input type image. I did a test with a simple alert and it was not called the function either. Here is part of my code. <div class="bg-secund">...
asked by 06.06.2016 / 06:08
1
answer

Javascript - How do "IF and Else" work in conjunction with "returns"?

I'm having a hard time understanding why sometimes, depending on where an "if" statement is inserted into a particular block of a function, it is ignored. And how to use the "retuns", when it is desired within that expressions to stop, forward o...
asked by 08.06.2016 / 16:51