Anyone know how to get an iframe's contents?

Status
Not open for further replies.

zaui

New member
Dec 12, 2006
10
0
0
Hi,



I've created an object that points to all the iframes

using a for loop searching for getelementsbytagname('iframe')

a_iframeObj1 = elements;

Anyone know how to get an iframe's contents?

out of a_iframeObj1

Thanks,

Zaui
 


You can do it with javascript but theres no point since most browsers block it. You can either get the page source when creating your page and store it as a javascript variable. or you can do an ajax call to get it(but you will need a proxy file on your server to do this)
 
hmmm. That sucks.

Let me try phrasing it another way then =)

Anyone found a way to capture the ad text being shown on a google adsense ad? All the commercial scripts I've found dont capture the actual ad text.
 
This would be great thing to have in affiliate marketing also. If you could pull iframe's source, you could easily track when the sale happened. Now you just have to trust merchant or CPA network to show you correct stats and you have no way of knowing how much is average order etc.
 
Status
Not open for further replies.