AJAX


Snippet Details

Shortcut
ajax
Description
Cria uma snippet AJAX
Language
JavaScript
Types
Author
Zonaro, Carvalho
Upload on
5/17/2016 9:18:18 PM
Downloads
900

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