By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
437,598 Members | 1,894 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 437,598 IT Pros & Developers. It's quick & easy.

check page loaded in an iframe

P: n/a
I load a page into an iframe that comes from another server. If this
page is not accessible, this server redirects to a login page.
I want to check if the correct page was loaded in the iframe in order to
give the appropriate instructions if the redirect occured. My idea was
to use framename.search('some text on the page'), but I'm not allowed to
do this for a page from a different server.
Any idea how to do something like this, or is this simply impossible?

Christian

Jul 20 '05 #1
Share this Question
Share on Google+
2 Replies


P: n/a
Christian Schmitt wrote:
I load a page into an iframe that comes from another server.
I hope you are allowed to use the content of the third party.
If this page is not accessible, this server redirects to a login page.
I want to check if the correct page was loaded in the iframe in order to
give the appropriate instructions if the redirect occured. [...]
Any idea how to do something like this, or is this simply impossible?


You need a signed script, otherwise the Same Origin Policy gets you.
Ask friend(!) Google for details.
PointedEars
--
news:de.comp.lang.javascript
Jul 20 '05 #2

P: n/a
Thomas 'PointedEars' Lahn schrieb:

Christian Schmitt wrote:
I load a page into an iframe that comes from another server.
I hope you are allowed to use the content of the third party.


Sure I am.
If this page is not accessible, this server redirects to a login page.
I want to check if the correct page was loaded in the iframe in order to
give the appropriate instructions if the redirect occured. [...]
Any idea how to do something like this, or is this simply impossible?


You need a signed script, otherwise the Same Origin Policy gets you.
Ask friend(!) Google for details.


But signed scripts don't work with IE, right? I browsers of the
netscape-family, I can use the UniversalBrowserRead privilege even
without signed scripts, the user just has to confirm the warning dialog.
But what do I do in IE? Asking the user to add my page to the trusted
sites isn't really an option. At least I wouldn't do this as it gives
the site just too much power. Isn't there any equivalent to
UniversalBrowserRead in IE?
I didn't find anything in google, that's always my first stop.

PointedEars
--
news:de.comp.lang.javascript

Thanks, Christian
Jul 20 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.