Google Answers Logo
View Question
 
Q: HOW to determine and display the URL of a frame on a page ( No Answer,   1 Comment )
Question  
Subject: HOW to determine and display the URL of a frame on a page
Category: Computers > Programming
Asked by: kjgraham-ga
List Price: $6.50
Posted: 19 Jan 2006 15:52 PST
Expires: 18 Feb 2006 15:52 PST
Question ID: 435603
I'm building a web page and I'm looking for an easy method to
determine and display the URL of a frame on that page...the thing is,
it should be ANY page, for example if the frame is displaying
google.com, I would like the page to know this and display in a
textbox or something, "://www.google.com".  Now I don't care what
technology is use (javascript, flash, etc.), I just want to know
different methods it can be done.  I know that in Javascript I can use
location.href to accomplish this goal.  The problem is: It returns a
"permission denied" when the page to identify is on an outside of the
server.  Years ago, I "think" I read that this security limitation can
be bypassed if a certain certificate is bought, but I can't for the
life of me find out if thats true today and what it is.  Thats where
you come in, please let me know if this is true and if so, what the
name and price of the certificate is.  Also, please let me know if a
macromedia swf file can be programmed to determine the URL of a web
page in a frame.  Thanks in advance.
Answer  
There is no answer at this time.

Comments  
Subject: Re: HOW to determine and display the URL of a frame on a page
From: willcodeforfood-ga on 23 Jan 2006 11:05 PST
 
Getting the URL of another frame is not going to be possible from
within the sandbox.  That means anything running inside a frame,
including JavaScript, a Flash object and so forth will not be able to
get the URL of a frame that points to a different domain.  There is no
such thing as a certificate to bypass these security limitations.  The
only way to accomplish what you seek would be to build an IE extension
(commonly referred to as a plug-in).  Your users would have to
download and install your extension, which would likely be written as
an ActiveX component.  Needless to say, that is probably too much work
for what you are trying to accomplish and any web savvy user would not
install code while browsing your website.  Several years ago, prior to
IE 4.0, you could have accomplished what you seek, but with computer
and Internet security becoming a big deal, these holes and hacks have
long since been closed.

Important Disclaimer: Answers and comments provided on Google Answers are general information, and are not intended to substitute for informed professional medical, psychiatric, psychological, tax, legal, investment, accounting, or other professional advice. Google does not endorse, and expressly disclaims liability for any product, manufacturer, distributor, service or service provider mentioned or any opinion expressed in answers or comments. Please read carefully the Google Answers Terms of Service.

If you feel that you have found inappropriate content, please let us know by emailing us at answers-support@google.com with the question ID listed above. Thank you.
Search Google Answers for
Google Answers  


Google Home - Answers FAQ - Terms of Service - Privacy Policy