Questions tagged as 'jquery'

1
answer

Script creating multiple divs

I'm using javascript to update a div every 5 seconds, and every 5 seconds the div updates, but is creating several div equal. I have the following code: session_start(); $url ="http://$_SERVER[HTTP_HOST]$_SERVER[REQUEST...
asked by 03.12.2017 / 16:21
0
answers

querySelector class? (JAVASCRIPT)

I made a function to change a photo when an element is added in my table, which table I created a class to get the photo to change, but to get the html element, I need to use the querySelector, but I'm not getting with class , but when it's with...
asked by 23.11.2017 / 16:39
1
answer

How to use "debounce" to execute function only after a while

Hello. I'm developing a script that runs when the user arrives at the end of page scrolling. What I have so far is the following code: $(document).ready(function() { var posicaoAtual = $(window).scrollTop(); $(window).scroll(functi...
asked by 23.11.2017 / 16:17
0
answers

How to arrange array to display on chart (chart)

This chart is intended to list the total number of monthly accesses per user type for the current year. It is divided into 3 series, each series represents a type of user, within it has the total of hits of that type per month: labels: ['Ja...
asked by 23.11.2017 / 17:20
1
answer

Cordova: Ajax works in browser but not Android device [duplicate]

I need to make an ajax request using Cordova in visual studio, and ajax through JQuery. When I do the test through the browser works correctly, but when I do Android test it returns error with "0" stats and no message. What could it be? func...
asked by 05.12.2017 / 17:20
2
answers

Copy value from one Textarea to another automatically

I saw this post ( How to get the value of one input and assign to another? ) but I could not adapt to textarea . I have the following HTML, which I want to pass the value of the first textarea to the second: <link href="https...
asked by 21.11.2017 / 14:48
0
answers

PHP - Create error status for ajax return

To perform a system validation I need to create an error status and get this status in ajax at: error: (function (erro) { //codigo }) Based on http_response_code(404); of PHP . Can I create a 603 error and...
asked by 21.11.2017 / 15:39
1
answer

Pass data received in JSON to another page

I have the code below where I get a JSON file and display 2 fields of it: $.getJSON('www.site.com.br/arquivo.json', function(data){ this.qtd = data.json.length; this.retorno = ''; for(i in data.json){ this.retorno += 'Nom...
asked by 22.11.2017 / 17:54
0
answers

Position of an Object with a specific name within an Array

Good afternoon! It's OK? Could you please help me resolve the case in JQuery / XML below? I make a request for an ex town name. ' Vila Velha - ES ' via JSON to a given XML, and it returns an array of cities 'Vila Valério - ES', 'Vila Velha -...
asked by 06.12.2017 / 20:00
0
answers

Create autocomplete for Select Option with JQuery?

I'm trying to autocomplete using select with jquery but I can not. How to do this? I'm trying this way function fillSelect(data) { //$('#usuarioSelected').empty(); if (data['InvestidorMaster'].length > 0) { //$.eac...
asked by 29.11.2017 / 15:14