Questions tagged as 'jquery'

3
answers

How to integrate AngularJS with common scripts?

My question started when I tried to use the twitter bootstrap Carousel within an AngularJS project, it did not work at all. I found the angular-ui , I solved my problem using this component, but my doubts are as follows: 1 - For every c...
asked by 03.12.2014 / 17:35
1
answer

Use local files if CDN is Offline

I would like to know if it is possible to perform a callback if a CDN is offline the system uses the local files. Ex: I use the Fontawesome CDN but if the user runs out of the internet or the CDN goes offline, it is possible to create a callb...
asked by 11.05.2015 / 16:48
1
answer

How does the $ .when () and the .then () aligned

In my studies of javascript with Jquery framework , I have come across several times with $.when() and .then() aligned. I wonder how they work together. an example that I came across was the code below. $.when(loadView, setData)...
asked by 25.08.2015 / 01:18
2
answers

How to create a single method to handle errors with ajax

I have a web app that runs several ajax calls . My faculty professor challenged me to create a generic message and unite the entire error handling in a single function. Can anybody help me ? function getShoes() { $.get( "/Shoes/List", fu...
asked by 04.09.2015 / 04:45
1
answer

Convert MMMM-YYYY data to dd / mm / yyyy datepicker bootstrap

I have the following date field: <div class='input-group date input-data' id='datetimepicker4'> <input type='text' name="mes" id="mes" class="form-control hidden" /> <span class="input-group-addon hidden"> <...
asked by 29.09.2016 / 13:44
2
answers

Sliding effect on 'anchor' links

I have a OnePage page and the anchor links of the menus when they clicked they only " skip " for the section of screen below but I wanted them slid gently to the intended 'anchor' section. I tried to put transition via CSS and I wa...
asked by 01.10.2015 / 19:21
4
answers

Difference between syntax for declaring a function

this response, I realized different forms of call a function using the jQuery. The first form would be this: $('#dois').on("click", testar); function testar() { console.log('Teste Dois'); } And the second one is this: $('#um').o...
asked by 17.11.2016 / 14:00
6
answers

Gradient color transition automatically smoothly

Hello, I have a div with the following css : background: linear-gradient(to right, #3e42e4, #e53472); And I would like colors to change through JavaScript. Similar to the top of this site: Pixelapse How can I do this?...
asked by 26.03.2015 / 19:48
9
answers

Search via ajax during typing in input text (autocomplete)

I made a search using ajax that when clicking a button triggers a request with the searched term and returns with data that fills combobox html ( select ). So far so good. However, I found it interesting to change this behavi...
asked by 02.01.2017 / 17:39
3
answers

Form filling with return of a json

I'm using a webService (viaCep) to automatically fill in the street, for when the user enters a zip code. The webService returns a json with the information of the street, and of that return I fill in the inputs referring (Street, city, etc .....
asked by 03.05.2018 / 17:22