Getting Google Page Rank using Javascript – For Adobe AIR Apps

Posted 6 CommentsPosted in Web Development
Last week while working on SEO Analyzer v 1.1 desktop application, I faced a challenge of getting google page rank for a particular site using javascript. I am not sure if someone has already done this before, but I thought of sharing this javascript code for all adobe air and web developers out there. googlepagerank.js var googlepagerank = { hexdec: function(hex_string) { hex_string = (hex_string+'').replace(/[^a-f0-9]/gi, ''); return parseInt(hex_string, 16); }, count: function( mixed_var, mode ) { var key, cnt = 0; if( mode == 'COUNT_RECURSIVE' ) mode = 1; if( mode != 1 ) mode = 0; for (key in...