Questions tagged as 'javascript'

1
answer

How to submit a form and after submission load a div with ajax

Good evening, everyone! I'm having a problem with my application. The problem is as follows, I have a form to login and a button of type submit , when I click on this button, the form is submitted to validate and verify the login, but t...
asked by 19.07.2017 / 03:00
2
answers

Scope of a service

I have a problem with a service of AngularJS , after a query REST using RestAngular with return 401 , I need to be able to call a service method in which it is inserted. The problem is that when calling the same I get the...
asked by 20.07.2017 / 21:34
2
answers

Access the data returned in the success of an ajax request, within a $ ('form'). on ('submit' ...)

I have a $ ('form'). on ('submit', function ()); and inside it I would like to make a call from a function that runs an ajax and returns an array of data. however when saving the return of the function in a variable it becomes "undifined" can no...
asked by 21.07.2017 / 13:47
1
answer

Number count according to page scroll jQuery!

Personal I have a PROGRESS BAR that displays numbers from 0% up to 100%, I need when the scroll is greater than 900px, start counting the numbers for example from 0% to 70% in the time of 2 seconds .. I have a code here is working fine .. it doe...
asked by 26.07.2017 / 02:05
3
answers

How to perform function once per visitor after loading the site?

How to make JavaScript run only once per visitor (type if already registered in the browser's cokkies, do not run anymore). <?php $tmp='<script> Push.create("Olá Mundo!", { body: "Esta é uma mensagem no...
asked by 22.08.2017 / 02:21
1
answer

Evaluating the $ http response from the factory to the controller in AngularJS

I've created a Factory to perform the operations CRUD in a api REST using $ http service to make a user control. Factory //Listar..Recuperar ..Inserir ...Editar..{...} usuarioService.Excluir = function (id) { var promise =...
asked by 23.08.2017 / 15:16
1
answer

What is the best method of loading JS files? [closed]

I'm trying to work with the form code that gives me the greatest possible use of what was written, so for every feature I'll need to do in javascript / jQuery I control the individual version of every thing with git. / p> Controlling this indi...
asked by 04.08.2017 / 18:54
2
answers

Add Favicon to my website

If I am accessing a website, both desktop and mobile, there is the option to add the link to the home screen, and some websites add the link with a custom icon. Ex: Stack Nowmysiteforexamplehasnoiconsetandcomesabrowserdefault. How...
asked by 04.08.2017 / 05:20
1
answer

AJAX Request in Bootstrap

Hello I need to open an external page through an AJAX request in my ROW in Bootstrap, but I'm not having success, I'm following the tutorial below, but it's not opening my page in the Bootstrap ROW, like I can do ? Are there any native Bootst...
asked by 04.08.2017 / 19:38
1
answer

Dates Array of the Year

In JavaScript, how do you work with a period spanning day, month, and year at the same time and at one time instead of using New Date () to get day, month and year individually and creating rules? The idea is to work with a range of dates to...
asked by 01.09.2017 / 22:17