Posts by Wanattichiã Diogo Stezoucoski • 555 points
4 posts
-
36
votes5
answers86551
viewsA: Upload a file with AJAX
Simple implementation of the "client side": HTML: <input type="file" id="fileUpload" name="fileUpload" /> <input type="button" id="btnEnviar" value="Enviar" /> Javascript $(function () {…
-
4
votes2
answers946
viewsA: Query the return of an Ajax
If the problem is sending the ID of the option selected via Ajax, the code below should work smoothly: $('#formProd select').change(function(){ $.ajax({ type: 'POST', url: 'index.php/home', data: {…
-
1
votes5
answers1876
viewsA: Retrieve a final value from a json in Javascript
Just as our colleague @Gustavo Rodrigues answered, the code below worked perfectly: $.getJSON('http://maps.googleapis.com/maps/api/geocode/jsonlatlng=-12.9945,-38.5266&sensor=false', null,…
-
3
votes2
answers10588
viewsA: Send image by selecting it and show thumbnail without refreshing the page
To simply display the image on the screen at the moment of choosing, just implement the js code below: $("##ID DO INPUT FILE##").change(function (event) { var reader = new FileReader();…