AJAX


Snippet Details

Shortcut
ajax
Description
Cria uma snippet AJAX
Language
JavaScript
Types
Author
Zonaro, Carvalho
Upload on
17-5-2016 21:18:18
Downloads
4604

Declarations

ID ToolTip Default
acao= acao=

Code Output

        $$.ajax({
        type: 'GET',
		url:location.pathname,
        async: true,
        data: "$acao=$",
        success: function (data) {
            console.log(data)
        },
        error: function(xhr, status, error) {
  			var err = eval("(" + xhr.responseText + ")");
  			alert("Erro: " + err.Message);
    	},
        beforeSend: function () {
           console.log("comecou")
        },
        complete: function () {
			console.log("acabou")
        }
});
    

Download Add to .VSIX Package


comments powered by Disqus

Extension Package

No snippets are added


Languages