Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to scrape displayed text hidden by javascript ?

Status
Not open for further replies.

Andzar

Programmer
Feb 1, 2010
4
PL
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 file as available .js source linked to that page. I've also put some comments there about the URL location.

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

Code:
function ShowUserPhone(userid){
var UserPhoneLink=document.getElementById("UserPhoneLink");
var UserPhone = document.getElementById("UserPhone");
if(document.images){
(new Image()).src="/pp-owners-list-click-counter.asp?UserId="+escape(userid)+"&counterType=detailsphone";
}
if (UserPhoneLink){
UserPhoneLink.style.display="none";
}
if (UserPhone){
UserPhone.style.display="block";
}
}
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top