This is the bocoup web log with posts from Al, Boaz, Rick, Sam, Nate, Nick & Pete. You should also make sure to checkout code.bocoup.com, where we keep the finished versions of ideas we kick around here.


Jul 31, 2009

Firebug AJAX Reading…

Want to read an async AJAX request in FireBug console?

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.



Comments:




Please send your questions to this address or call Bocoup at 617-379-2752
This web page is proudly maintained by Bocoup and hosted by (mt) Media Temple
All code on this website is Open Source