homepage Welcome to WebmasterWorld Guest from 54.196.168.78
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Pubcon Platinum Sponsor 2014
Home / Forums Index / Code, Content, and Presentation / JavaScript and AJAX
Forum Library, Charter, Moderator: open

JavaScript and AJAX Forum

    
Analyzing you site's pages to see what third party content loaded
Is there a way to "look" at your page after it loads?
otem




msg:3345893
 9:58 pm on May 21, 2007 (gmt 0)

I have a page that loads an iframe with content from a third party domain.

If there is content the page loads fine, else a color of my choice will appear. In either situation the iframe's src is the same.

In the event there is no content, is there any way I might be able to use javascript to tell?

I would imagine I'm pretty much out of luck here, since the src is the same, and that it loads content from another website's domain where I don't have any privilege to.

Though, I'm hoping there might be something I might be able to try.

Maybe it would be possible to have a script "look" at the page to detect that color? Might this be possible?

Anything else I might try?

 

xxshadowxx




msg:3345953
 11:12 pm on May 21, 2007 (gmt 0)

im not sure, but php would work. stripos or strpos would try to find some specific content on the page.

Dabrowski




msg:3346036
 1:43 am on May 22, 2007 (gmt 0)

You are right otem, you can't access any IFRAME's content if it's from another domain.

Global Options:
 top home search open messages active posts  
 

Home / Forums Index / Code, Content, and Presentation / JavaScript and AJAX
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved