Questions tagged as 'jquery'

1
answer

Toggle page content by changing div only

I'm creating a website, where I want to use the div from the main page to switch between other pages. For example, I have the 'index', 'content 1' and 'content 2'. I want to make when I click the link, change the content from 'index' to 'content...
asked by 01.02.2017 / 22:56
1
answer

Using .append () or .html () - jQuery

I'm not able to insert html into an element. JS function carregaAgendamento() { var url = "http://prestoexpress.com.br/vistoria/json.php"; $.getJSON(url, function(result) { console.log(result); $.each(result, function(i, field) { v...
asked by 01.02.2017 / 22:46
1
answer

How to identify the child element clicked through the click event on the parent element

I have the following code: <div class="tipo-cadastro"> <div class="box-logista active">Logista</div> <div class="box-distribuidor">Distribuidor</div> </div> and the following code in javascript /...
asked by 01.02.2017 / 18:31
1
answer

Possibilities input mask with lib jquery

I am using input-maks to put a mask in the field but I am having difficulty setting a value, for example in my mask I put 'data-mask'=>"00000,00" referente ao campo decimal(5,2); But if I want to put cents like 50 , I need...
asked by 01.02.2017 / 01:59
1
answer

Get a JSON PHP Via Jquery

I have 3 pages, 1-Index, where I pass some settings; 2- game_data.php, where a query is made and returns a json with the data; 3- juego.php, The page where the json data is displayed is displayed. My difficulty now is, get this data from Json...
asked by 28.01.2017 / 01:45
1
answer

Ajax return with multiple result and creating lines

Due to an internal need, I need to make the return of an Ajax query create rows for each displayed result. Today I have a function that I use and that works normally when the result is only of one line, as below: Now,ifthereturnisofmorethan...
asked by 26.01.2017 / 14:11
1
answer

Save images to device without expiring

I have an application made with Intel XDK, running on iOS and Android. The purpose is to display images that are on the server, and store them on the device to not download every time it appears. Then, in addition to storing, you would need t...
asked by 27.01.2017 / 15:22
1
answer

PHP Array for Json [duplicate]

I have this query, I need to display each column in an HTML div. Hi, I need to return the data in a PHP array, pass this php array to an array in JS to be able to manipulate and display them in their respective divs, the query is working perfe...
asked by 25.01.2017 / 18:24
1
answer

How to access, in PHP, values passed as a parameter using jQuery.post ()

How can I access the values of the string cores and the filmes array on a PHP page individually? var filmes = ["Mad Max", "Assassin's Creed"]; var cores = "cor_um=Azul&cor_dois=Preto"; $.post("autosave.php", {'_cores': core...
asked by 26.01.2017 / 18:29
1
answer

programming logic JQUERY

Speak up! I am not able to reason in a problem that I am trying to improve the code. I have several divs (Content1, Content2, Content3 ....), I have a function that checks what content is active on the screen (n). By checking which asset is acti...
asked by 25.01.2017 / 12:29