View Full Version : How to scrape hidden text displayed by javascript ?

01-05-2011, 04:38 PM
Is it possible to scrape displayed text you can't find in html source code ?

The text shows up only when you click a link, but is still not visible in source code. That link has got a userid and is used as a variable in function ShowUserPhone(userid).

If someone knows how to solve this mystery, please help. I added http://www.mediafire.com/file/9eo72us6hac7ja5/ShowUserPhone.txt file as available .js source linked to that smart page. I've also put some comments there about URL original location.

Here is the main function where the process started I guess:

function ShowUserPhone(userid){
var UserPhoneLink=document.getElementById("UserPhoneLink");
var UserPhone = document.getElementById("UserPhone");
(new Image()).src="/pp-owners-list-click-counter.asp?UserId="+escape(userid)+"&counterType=detailsphone";
if (UserPhoneLink){
if (UserPhone){

Please help.