Posts by Rodrigo Prieto • 76 points
6 posts
-
0
votes1
answer37
viewsA: How do I return a random value from my database already displaying in another tab?
It wouldn’t just be putting inside Success? $.ajax({ url: url , type: "GET" , data: { id: id } , datatype: "Json" , success: function (data) { alert("retornou"); }, error: function () {…
-
2
votes3
answers315
viewsA: How to mount this SQL to bring months that are not in the list?
As there are no lines for the months, can do by Queries: select (select count(*) as jan from mv_clientes where (ativo not in('C')) and extract(month from data_cad) = 1 and extract(year from…
-
0
votes2
answers712
viewsA: Update Cities Combo with jQuery when editing
I usually do it that way: function AtualizarCidade(idUf) { $.ajax({ url: "/Cidades/_ListaPorUf", type: "POST", data: { idUf: parseInt(idUf) }, beforeSend: function () { $("#Cidade").attr("disabled",…
-
2
votes1
answer371
viewsA: Ajax Reload div
Ever tried to put the same Function you used to return the data, in . ajax I deleted? In Success: Function(){} it is empty replace with the same code as used in getRequestVouchers Success…
-
1
votes3
answers1767
viewsA: Attribute in Dataannotations for Currency
This validation should be done via jquery. Create a jquery.validade.ptbr.js file $.validator.methods.range = function (value, element, param) { var globalizedValue = value.replace(",", "."); return…
-
1
votes1
answer269
viewsA: Help with Action Edit and Delete returning null
Take a look at your view, when you click the field button id is going null, probably because there is no input name="id" in his view. Or if you have it, it’s null. You can also change the public…