Tuesday, June 14, 2011

Firebug Failed to show POST Response

For future reference, showing errors with GET:

            var fields = {
                    'client': client,
                    'apikey': apikey,
                    'appver': appver,
                    'pver': pver,
                    'url': 'http://www.phishing.com/'
            };
            $.ajax({
                    url: 'https://sb-ssl.google.com/safebrowsing/api/lookup',
                    type: 'GET',
                    data: fields,
                    dataType: "text",
                    success: function(rdata) {
                            $('#gdb').html(rdata);
                    },
                    error: function() {
                            // Handle errors
                    }
            }); 

No comments:

Post a Comment