Questions tagged as 'jquery'

1
answer

Pull fixed data from .json to select on form

I do not know what is wrong that is not pulling the json data, my goal is to pull the city / neighborhood data to display through another javascript code, however I can not make the select display the cities and neighborhoods that are in the jso...
asked by 22.03.2017 / 15:30
1
answer

Dealing with synchronous and asynchronous request results

I have a function that triggers an ajax request for a route, see: var getInstituicoesSemUsuario = function(tipo) { var resultado = ""; $.ajax( { url: "{{path_for('instituicao.sem.responsavel')}}",...
asked by 12.08.2017 / 17:35
1
answer

Dynamic form and send to mysql via jquery and ajax

I've already asked some questions about this, but I've been helped, but the kind of way they said it only works if the form is normal, with inputs with name "something here" my form only has an input "text" name "table "to put the table number t...
asked by 03.02.2017 / 18:55
1
answer

Subtract after removing a row from the JavaScript table

I have a certain bug here. I have a function that calculate the quantity x unit price to give the total value and with that make the total sub. Like an e-commerce cart. $('.total').prop('readonly', true); $('.vlun').mask("000.000.000.000.000.0...
asked by 20.06.2017 / 18:10
1
answer

Execute function when closing javascript tab

Opa, I need to run an ajax when closing the tab, is it possible? I tried: window.onbeforeunload = ConfirmExit; function ConfirmExit() { $.ajax({ url:'salvar.php', data:{usuari...
asked by 13.06.2017 / 21:19
1
answer

Compare Div Value

You can sweep a div and return it. For example: <div class='result' id='add9' align='middle'> 1</div> <div class='result' id='add9' align='middle'> 2</div> <div class='result' id='add9' align='middle'> 3</div&g...
asked by 31.03.2017 / 23:08
1
answer

How to show connection errors in HTML with a JSON?

I was developing HTML that accessed a JSON file. When, out of nowhere, the internet dropped from my house and I ended up thinking about it: Is there a way to get a connection error and warn the user of this error? For example, if I give a...
asked by 27.02.2017 / 13:25
1
answer

Function of "Like it" without reloading the page?

Hello, good afternoon! I'm having a problem that I do not know how to solve. I do not know how to program in JQuery or Ajax, but I intend to start learning. How can I do to make the following code in PHP work in Ajax or JS? Which of the two o...
asked by 22.02.2017 / 18:16
1
answer

PrimeFaces - Select DataTable row via JQuery, Javascript or PF

How do I select a row from a DataTable, using JQuery, pure Javascript, or the javascript PF command?     
asked by 13.02.2017 / 15:25
3
answers

I need to clone the contents of a div and put it in the form of my modal

Good afternoon guys. Again I turn to you about a problem I have. I need to use the syntax below in a modal. $("#divConsulta").clone().appendTo($("#formFruta")); In the line below when clicking, I open my modal with the data form to updat...
asked by 16.12.2016 / 16:29