Click to See Complete Forum and Search --> : Extract contents from page using Javascript


msmp3
04-23-2007, 03:20 PM
On my HTML page I am using a javascript from an external source (I cannot modify it). On executing my HTML page, it displays some data, different on every user's ip.

What I want to do is create another javascript on that page, so after the first external script gots processed and displays the data, this new one should extract that data and pass it by forward to a php form hidden input or something like that, so I can process it more, depending on the resulted data from the first script.

What do you think about this? :)

DARTHTAMPON
04-23-2007, 03:24 PM
How about some actual data

msmp3
04-23-2007, 03:33 PM
The first external javascript writes a HTML link on my page based on the visitor's ip. I want to get this link and process it further.

DARTHTAMPON
04-23-2007, 03:46 PM
var reg = new RegExp("([0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3})", ["gi"]);
var ar = reg.exec(pageInput);
var ip = ar[0];