Showing posts with label firebug. Show all posts
Showing posts with label firebug. Show all posts

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
                    }
            });