Posts by Jozimar Back • 327 points
7 posts
-
0
votes2
answers44
viewsA: How to disable link via Javascript CONFIRM?
You can change the anchor to: <a onclick="confirma()" href="javascript:void(0)">Baixar</a> And let the click do the execution.
-
5
votes5
answers1019
viewsA: Get piece of text inside a javascript word
Hello I believe you can do with Regex, for example: var w = "João"; var r = /Jo/i; r.test(w) //retorna true...
javascriptanswered Jozimar Back 327 -
2
votes2
answers398
viewsA: Difficulty to remove item from inverted list in Vue
Hello The changes I would make to the code would be adding key property to html and using the item itself as a reference for removal: <!DOCTYPE html> <html> <head> <meta…
-
3
votes3
answers82
viewsA: Add numbers respecting formatting R $ 00,00
Hello Perhaps this passage will help you: parseFloat(10.4).toFixed("2").replace(".", ",").replace(/(\d)(?=(\d{3})+(?!\d))/g, "$1.") Would look like this: <html> <head> <script…
-
0
votes5
answers1664
viewsA: I want to put the number of characters and put whether it even or odd
Try to do it this way: static void Main(string[] args) { string NumLetras; Console.WriteLine("Digite uma Palavra: "); NumLetras = Console.ReadLine(); Console.WriteLine("Sua palavrra tem " +…
-
0
votes1
answer208
viewsA: "Loading page" with ajax (no jQuery)
You can add a set of HTML elements like: <div class="prepage" id="prepage"> <div class="carregando" id="carregando"> <div class="cabecPre">Aguarde</div><br> <div…
-
8
votes5
answers86551
viewsA: Upload a file with AJAX
I use a generic form on most pages I use, both in file upload forms and forms without file upload. $(form).on('submit', function () { var data; var contentType = "application/x-www-form-urlencoded";…