Questions tagged as 'javascript'

2
answers

getJSON Ajax for JSON with multiple objects

To search for data in a simple JSON , such as: { "chave1":"valor1", "chave2":"valor2" } I use something like this: $.getJSON(dados, function(json) { $.each(json, function() { $('#r').append("<p>"+this.chave1+"&l...
asked by 16.01.2016 / 07:36
4
answers

JavaScript function does not work

I have a function that works on my test done in Notepad, but the project does not work. <head> <script type="text/javascript"> function MostrarEsconderDiv(div) { if (document.getElementById(div).style.disp...
asked by 21.07.2015 / 15:31
1
answer

How to appear what I typed in the input in an image

Hello, I would like to know how I can do the following, I have several images with names, and I created a script in js for me to type in the input and what I typed appears underneath, and this time I would like you to create an image. Example: I...
asked by 21.07.2015 / 19:01
2
answers

how to use the sortable JQuery update method?

I have this code and would like to update the value within div based on the position where it occupy I have already been able to get the value of it when the order is changed, but I can not get other properties of the element.     
asked by 20.07.2015 / 21:31
1
answer

Modal Box - Where to start? (example link)

I need to make a modal box like this one in the example Modal Example . Can I use Bootstrap .js to do this?     
asked by 26.11.2015 / 12:58
2
answers

Angularjs $ http.get

Friends, I'm new to AngularJS and I'm in need of your help. This is the following, I'm doing a request via $http of AngularJS, I can get the data all right, but I need to do post with the data I requested in $http.get()...
asked by 19.11.2015 / 03:46
1
answer

How to print a JSON array?

var listaNomeProjeto = [{ "nomeProjeto": "NomeProjeto1", "subProjeto": [ "Sub Projeto1", "Sub Projeto2", "Sub Projeto3", "Sub Projeto4", "Sub Proj...
asked by 29.07.2015 / 17:55
1
answer

I would like this bar to scroll the page [closed]

But just by completing the steps when scrolling the page, can anyone help? $(document).ready(function() { var i = 1; $('.progress .circle').removeClass().addClass('circle'); $('.progress .bar').removeClass().addClass('bar'); setInter...
asked by 24.07.2015 / 04:26
2
answers

percentage calculation jquery [closed]

I have this code and put it in jsfiddle to make it easier to understand link It calculates percentages by adding the value of the purchase price and places the result in the sale price. it works if I put a whole number in the purchase pr...
asked by 03.08.2015 / 17:50
1
answer

Uploading ChatBox message notifications

Is there any way to refresh the page without being setTimeout or setInterval directly from PHP? if you have it by JS also serves. I'm making a system of notifications and chats that need to be second by second to be bringing Cha...
asked by 09.07.2015 / 16:43