var Console={
log: function( message ){
try { window.opera.postError( message ); }
catch(e) { console.log( message ); }
}
}
Showing posts with label Firebug. Show all posts
Showing posts with label Firebug. Show all posts
Saturday, August 8, 2009
Console log for Safari & Firefox
Friday, July 31, 2009
Firebug AJAX Reading...
Want to read an async AJAX request in FireBug console?
This prints everything, not just a successful response. Very useful for learning about the XMLHttpRequest object and reading POST responses inside an authenticated session without any cross-domain trickery.
AJAX=new XMLHttpRequest();
AJAX.open( 'POST', 'www.YourUrl.com', true );
AJAX.send( 'postKey=postVal' );
AJAX.onreadystatechange = function(){ console.log( AJAX ); }
This prints everything, not just a successful response. Very useful for learning about the XMLHttpRequest object and reading POST responses inside an authenticated session without any cross-domain trickery.
Subscribe to:
Posts (Atom)