Questions tagged as 'jquery'

0
answers

Change Banner Every week

I made a code js so that every week the specific advertising banner is changed, in case every Sunday one banner is exchanged for the other. I started doing Javascript , but within the r == 0 compare function document.byele...
asked by 26.04.2018 / 18:22
0
answers

How to get the value of a form serializeArray?

I have a serializeArray in my form to send the data via post with ajax, but I wanted to get a data that is in a hidden field in the form to use before the post, in the same javascript, how can I recover? // setup some local variables var...
asked by 26.04.2018 / 17:19
0
answers

How to Clear Input using the validator.AddMethod

I'm using this code below to validate a date field. $.validator.addMethod("formatoData", function (value, element) { var reg = /^(((0[1-9]|[12]\d|3[01])\/(0[13578]|1[02])\/((19|[2-9]\d)\d{2}))|((0[1-9]|[12]\d|30)\/(0[13456789...
asked by 26.04.2018 / 17:29
1
answer

How to disable page cache [duplicate]

I have a page that saves the user's photo, when editing the photo the cache always continues taking the old photo to display. Already tried using: and I tried to use some variations of it and it does not work. Does anyone know any other w...
asked by 27.04.2018 / 16:58
1
answer

Error calling variable out of function

I have the following code: var rtn = null; gapi.client.drive.files.list({ q: "mimeType = 'application/vnd.google-apps.folder'", }).then(function(response) { var files = response.result.files; rtn = files[0][...
asked by 06.05.2018 / 13:07
0
answers

Angular and mysql

I have a question but I do not know where to start and I did not find anything on the net to teach me something like that. I created a pie chart using angular (ready method) but I need to create an interactive graph, the idea is as follows....
asked by 25.04.2018 / 00:07
1
answer

How to do the Facebook content upload technique?

How does Facebook do this by loading your page? It loads the content bit by bit and not all at once like most sites, StackOverflow is an example that loads. How do you call this loading technique? (if you have a name) How can I do it in Ja...
asked by 19.02.2017 / 22:50
0
answers

Keyboard down arrow with typeahead

In typeahead in Jquery, how do I make the search suggestion just only selected down ? > $(document).ready(function () { $('#search').typeahead({ source: function (query, result) { $.ajax({...
asked by 02.05.2018 / 16:33
1
answer

Return Json with XMLHttpRequest

How popular is a table with JSON using XMLHttpResquest POST ?    Jquery var xhr = new XMLHttpRequest(); xhr.open("POST", "/EnvioEmail/PlanilhaPaciente", { area: "Sistema" }, true); xhr.addEventListener("load"...
asked by 02.05.2018 / 19:02
1
answer

add select field dynamically (laravel project)

I'm creating a form from a repository and I have several fields like that of modality. What I do not know how to do is create a function so that when a person clicks the + button next to the select, it creates on the screen another select field...
asked by 24.04.2018 / 01:26