Questions tagged as 'javascript'

1
answer

$ .getJSON not working as it should to get image graph API

I have this following code where I return comments for a post on facebook. function pegaFoto(id){ var url2 = 'https://graph.facebook.com/v2.8/' + from[id] + '/picture?fields=url'; $.getJSON(url2, function(res2){ for (var key2 in re...
asked by 16.11.2016 / 18:06
1
answer

pick up input values

I needed to create a code to generate inputs dynamically, below is the code: HTML <div id="divProdutoBase" style="display:none;"> Telefone: <input type="text" id="produto[]" name="produto[]" ng-model="telefones" /> <inp...
asked by 03.11.2016 / 11:18
1
answer

capture selected item DropDownList created in javascript

Hello, someone could help me. I have the following problem I have a TextBox and a DropDownList, in the textbox has an autocomplete with names of states; after finishing fill in the textbox populates DropDownList with names of cities correspondin...
asked by 02.11.2016 / 22:23
2
answers

JQuery Append does not work

I'm doing a load on demand I use a button that the user clicks on it loads the data from 2 to 2, this data comes from the database, but in that code I'll post it down below does not work when I put the. > $(function(){ carregar(0, 2, "Carregar...
asked by 30.12.2016 / 14:08
1
answer

How to smooth appearance of divs

In the onload event of my site, I load a function in which it makes a loading gif that was appearing, sum for the content of the site to appear. <body onload="carregar()"> <div id="preload"> <img src="...
asked by 12.11.2016 / 22:21
1
answer

How to create a "back" link

I have the index page that collects some information that it sends to itself. Then the user accesses a detail page, where on this page I created a link called "back". However, when returning to the index page, the forms are all lost. I would lik...
asked by 13.11.2016 / 17:21
1
answer

Get column value from an HTML table and pass to PHP variable

I have already seen that there is a good example on the web of how to get the column value of a HTML table, but also how to pass the value of a variable JavaScript to PHP . But when I'm using the two together it's not working...
asked by 26.11.2016 / 15:41
4
answers

Start grails application

So, I'm starting to use grails / groovy now, along with html / css / javascript and, as a good beginner, I'm full of doubts. I created a login html page with google plus and wanted to run the grails application to see what's happening but so...
asked by 26.11.2016 / 12:37
1
answer

Hide only child rows

I have a table as follows: <tabele> <thead> <tr>Codigo</tr> </thead> <tbody> <tr class='click-show-hide-tr'>exemplo</tr> <tr class='click-show-hide-tr'>exemplo...
asked by 25.11.2016 / 15:00
1
answer

Sort HTML tables

I have 2 tables that have been initialized in HTML but which are joining rows and columns through 2 Javascript functions. HTML Table 1: <table id="myTable" > <thead> <tr> <th>Disciplina</th> <...
asked by 26.11.2016 / 14:41