473,699 Members | 2,838 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

silly question

is it possible for an iframe to relaod the parent page if it is in another
domain ?

I suspect not...

Zoe
Oct 3 '05
11 1940
Zoe Brown wrote:
is it possible for an iframe to relaod the parent page if it
is in another domain ?


A script executing in an IFRAME can refer to the global/window object of
the frame that contains it as - parent - and the topmost global/window
in a containing frameset or sequence of nested IFRAMEs as - top -. Those
global/window objects can be navigated by assigning a string
representation of a URL to the - location - property of those
global/window objects as:-

parent.location = ' some URL ';

- or :-

top.location = ' some URL ';

These assignments are allowed cross-domain because there is no security
implication in allowing 3rd party's frames to be navigated (the content
is destroyed in the process).

Assigning to the - href - property of the - location - object may not be
allowed on some browsers because that implies a read operation on a
property of the global/window object and that is often restricted across
domains.

Richard.
Oct 3 '05 #11
> It was an honest mistake was there any need to be quote so rude. if you
haven't got anything nice to say why bother ? And I dont use google groups.
Thanks.


It's okay. That's what you do here at c.l.js. You have a decent
discussion for about four posts about some geeky whatnot that strikes
your fancy, or something you didn't know before, then someone gets
cranky and for the next 25 messages, it's a "you're a skank", "no
YOU'RE a skank" festival. Didn't you read the FAQ? I mean, you have
to follow procedure here!

-Brendan

Oct 4 '05 #12

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

5
1886
by: Pjotr Wedersteers | last post by:
This may be a silly question, but I was wondering. If 10 clients fill out a form on my page simultaneaously and hit submit, how does my (Apache2.0.50/PHP4.3.8) server exactly ensure each gets 'their own' completed form returned ? Or is it possible the clients get mixed up under some conditions ? TIA Pjotr
4
263
by: Jenny | last post by:
Hi you al I have two very silly question The first one is In vb 6.0 you can add a procedure, sub or function, by clicking add procedure from the tools item on the menuba I cannot seem to find this in vb.net 2003 SV. My questions is do you have to manual enter the code to create a procedure yoursel And my sencond question Again in vb6 you can call a meun item from code like call mnuNew_Click and your application would respone as if you had...
4
1192
by: musosdev | last post by:
I think I'm having a dim day and should just go back to bed, but alas, I cant do that.... I'm writing a peice of code to create XHTML compliant documents using System.IO, there's probably an easier way but anyway... my code works fine, and it saves a file as an XML file. If I load this in IE, I get the xml code!! (rather than the page it should generate). If I rename the file to ..xhtml, IE wont load it and I get the "choose...
6
1246
by: Adam Honek | last post by:
Hi, I've looked over and over and in MSDN 2005 and just can't find what is a really simple answer. How do I select the first value in a combo box to be shown? I tried the .selectedindex -1 but it doesn't work. At the moment it populates fine but it just remains blank unless I dropdown the list.
7
1270
by: Matt | last post by:
I've asked this question to some developers that are much more experienced than I, and gotten different answers --- and I can't find anything about it in the documentation. Dim vs. Private as a variable declaration What is the difference between the two (I strongly suspect there is none)
2
1567
by: Willem Voncken | last post by:
Hi guys, might be a silly question, but i'm wondering whether it is even possible to generate access violations when using C#? I'm new at c# programming, but i have some experience with c++. Now that i'm using c# i can't see how i should mess up memory like that without the use of pointers or adresses. Regards, Willem
1
333
by: Pontifex | last post by:
Hi all, Has anyone devised a simple method for passing a string to an external script? For instance, suppose I want to produce a title bar that is very fancy and I don't want my main HTML file to be cluttered with the stuff that does that. Can I pass a title string to an external script
2
1770
by: toton | last post by:
Hi, This is a silly question related to syntax only. I have a template class with template member function, How to write it separately in a file (not translation unit, just want to separate declaration from definition! ). e.g, for ordinary template class member function it is done like, template <typename T> class Test{ public:
4
2085
by: Marcin Kasprzak | last post by:
Hello Guys, Silly question - what is the most elegant way of compiling a code similar to this one? <code> typedef struct a { b_t *b; } a_t; typedef struct b {
5
1463
by: Ben Bacarisse | last post by:
Newbie <newbie@gmail.comwrites: <snip> The version you posted in comp.programming has the correct loop. Why change it? -- Ben.
0
8685
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8612
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
9032
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
8905
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8880
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
5869
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
1
3053
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
2342
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2008
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.