473,406 Members | 2,371 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,406 software developers and data experts.

check page loaded in an iframe

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
2 6556
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
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

5
by: Pete Wason | last post by:
Hiall! I have a demo viewer page for javascript stuff that has three buttons "DEMO" "HTML" and "JSCR", and an IFRAME called 'viewer'. Initially, the IFRAME gets loaded with the actual demo...
0
by: Bruce E. Pullum | last post by:
Ok, I really need some help here.... I have an ASPX page, that contains a save button. It also has an IFRAME that has a tabstrip and multipage control. What I am trying to do is to allow the...
6
by: adnanx82 | last post by:
Hi, I was wondering if anyone knew how to perform the following 2 tasks in Javascript: 1) distinguish between frames and iframes (during an onload event for example) 2) figure out whether a...
1
by: Eli | last post by:
Hi, I've created a dynamic IFRAME and inserted it in the document. Then I changed the src property to some URL (not the same domain as the main document). I want to check when the IFRAME is...
2
by: DaveO | last post by:
Hi All. I have a web with the default startup page as : index.htm that contains an iFrame. The default page, that loads in the iFrame, when index.htm is loaded, is htmPage1.htm I want...
6
by: SF RVN | last post by:
Hmmmm.. a wee bit of a problem: Background default.htm has a left-aligned table serving as a 'navigation menu' and a right-aligned iFrame (named 'viewframe') serving as the 'target' for...
8
by: '69 Camaro | last post by:
Perhaps I'm Googling for the wrong terms. Does anyone have links to examples of the syntax necessary to read the HTML on another Web page when that HTML is produced from JavaScript using the...
5
by: Tudor Tihan | last post by:
Hi, This is my first post here, so please be kind. I have tryed to make a javascript html page loader by using an invisible <IFrame> and some javascript variable text passing between...
14
by: Silver | last post by:
I have a main page that includes one menu and one iFrame. Depending on the selections made on a menu, a different html page is loaded inside the iFrame. The menu is just a list of <a href=...> ...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.