Questions tagged as 'jquery'

0
answers

Create a modal in instance, and after destroying it

I have in my system many parts where the user double clicks on a certain line, and loads the corresponding action inside a Bootstrap modal. In the current method I use, there are three modal elements indicating: #primary-layer-modal #secon...
asked by 28.08.2017 / 14:30
1
answer

Information stored and displayed wrong

Hello, I have the following code: var marcas = { nome: '', fipeId: '' }; var marcasVet = []; var select; $.ajax({ dataType: "json", url: 'http://fipeapi.wipsites.com.br/carros/marcas', succes...
asked by 10.09.2017 / 02:35
1
answer

How GET works with AJAX

I have a page with AJAX that is working, actually it does not work better, I'm trying to understand how AJAX works with the url for pagination to work properly. What happens is that in normal pagination, without AJAX each...
asked by 10.09.2017 / 16:55
1
answer

Freight Calculation Ajax and Jquery

I am developing an online store where in the shopping cart I will implement the freight calculation via the webservice of the post office. The code below it does the calculation and returns only the option of Pac, I need that as the user sele...
asked by 27.08.2017 / 07:25
3
answers

I can not retrieve JSON in jQuery

I can not display uf in the following situation: $.post("<?php echo site_url('Welcome/viacep'); ?>", {cep: cep}, function(dados){ alert(dados.uf); }, 'json' ); But when I change the alert to alert(da...
asked by 27.08.2017 / 22:40
1
answer

How to update a specific div on the page?

I would like that after $ajax has finished, update the div tag that has as #coments , because in this div it loads the data from the database. HTML <div id="coments"> <!-- // Query dos comentár...
asked by 05.09.2017 / 20:27
1
answer

Jquery function .data

Can someone clarify or explain to me the difference between these two situations $.data(this, 'timer') Or $(this).data('timer');     
asked by 07.09.2017 / 19:37
2
answers

Passing value from jquery to php

I'm looking for a div from another page and putting it in my: My div: <div id="teste"></div> script: <script type="text/javascript"> $("#teste").load("http://www.home356.org/index.php #ip_filter"); </...
asked by 28.08.2017 / 19:55
1
answer

Execute the submit of a form in the click event of an element

What is the best way to do a POST at the click of a button on an ASP.NET MVC form.    View Create: @model Projeto.WebERP.EntityFramework.Entities.Pais @{ ViewBag.Title = "Create"; } <div id="bannerMessage"> </div> | @Ht...
asked by 29.08.2017 / 02:34
1
answer

how to put different colors in a title with jquery array

I would like to put different colors in title with a jQuery array, More without being random, in case they are pre-defined colors I am now starting to program, and would like the help of vcs. right now Obridago And this is what I want to do t...
asked by 10.09.2017 / 02:00