473,799 Members | 3,093 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

PLEASE How to break out of an iframe?

On a page I'm offering file download links which are each targeted to an
tiny 1-pixel X 1-pixel iframe on the same page. (If you care why, see
below.) Under certain conditions, I want to popup a window which is NOT
constrained within the iframe to which its creator page is targeted. But
since the download page is being targeted to the tiny iframe on the
application page, any popups or alerts I've tried creating from the download
page's code do not appear, presumably because they're being created inside
the "invisible" iframe.

Is there any method for asserting on a page that a window or alert should
NOT appear in the iframe to which the page was supposed to send its output?
I'm developing in ASP.NET, so can modify page HTML and Javascript just
before the page is sent to the browser.

The reason I'm targeting links to the tiny iframe is that when users select
a file for download, the standard Windows open / save / cancel dialog pops
up over the page they clicked rather than first opening a new "file
download" page. When download is complete and the dialog disappears the
original page remains ready for another user selection. The giant download
site tucows.com uses this technique. However if there's another way to get
this functionality I'm all ears!

1. User selects file for download on application page.

2. If no errors, standard Windows dialog pops up over application & download
proceeds without changing application page. When download completes, dialog
disappears and application page remains unchanged ready for further use.

3. If error, window or alert pops up over application. When closed,
application page remains unchanged ready for further use.

Thanks for ANY ideas.
Jul 20 '05 #1
1 5650
In article <7nSkb.98755$mf .65231
@twister01.bloo r.is.net.cable. rogers.com>, no****@nospam.c om enlightened
us with...
On a page I'm offering file download links which are each targeted to an
tiny 1-pixel X 1-pixel iframe on the same page. (If you care why, see
below.) Under certain conditions, I want to popup a window which is NOT
constrained within the iframe to which its creator page is targeted. But
since the download page is being targeted to the tiny iframe on the
application page, any popups or alerts I've tried creating from the download
page's code do not appear, presumably because they're being created inside
the "invisible" iframe.


Don't know if this works, since I am a bit pressed for time and don't
have time to test it.
Give it a shot...

if (whatever error you want to catch)
{
opener.alert("e rror");
}

It may depend on domains and permissions and such, but it sounds like
all the pages are yours, so...

-------------------------------------------------
~kaeli~
Jesus saves, Allah protects, and Cthulhu
thinks you'd make a nice sandwich.
http://www.ipwebdesign.net/wildAtHeart
http://www.ipwebdesign.net/kaelisSpace
-------------------------------------------------
Jul 20 '05 #2

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

Similar topics

1
9657
by: David Van D | last post by:
Hi there, A few weeks until I begin my journey towards a degree in Computer Science at Canterbury University in New Zealand, Anyway the course tutors are going to be teaching us JAVA wth bluej and I was wondering if anyone here would be able to give me some tips for young players such as myself, for learning the language. Is this the best Newsgroup for support with JAVA?
0
873
by: sfrvn | last post by:
I found the following post while researching this subject: " Refresh Parent from iframe Page_Load " This is EXACTLY what I need to do. However, my lack of experience and C# knowledge simply do not allow me to adapt this to my situation. Would someone in this group be able to 'translate' this for me? I am in an ASP/VB environment (not .NET). I realize this may be considered off-topic for this group, but have posted this here because...
4
1299
by: alxasa | last post by:
Hi, this is my present configuration <FRAMESET ID="MAIN_BODY" FRAMESPACING="0" ROWS="100%,*" FRAMEBORDER="0"> <FRAME NAME="frameA" SRC="./contentA.htm"> <FRAME NAME="frameB" SRC="./contentB.htm"> </FRAMESET> 'contentA.htm' has a <IFRAMEinside of it, with the ID/NAME of
3
4489
by: PCgeek | last post by:
sorry moved this over to javascript forum, didn't mean to post 2x! Hi guys, I'm trying to put the finishing touches on my website and could really use some help on this particular issue. My page includes background music with a javascript music player on the main page below an iframe that is used for all content and navigation of the site and so that the music doesn't reload each time a page is switched. There is another javascript to resize...
1
4955
by: Bob | last post by:
Hi, Hope you can help me with this one. I'm at my wits end. I'm trying to create an intelligent edit-box like the excellent "Customer" one at the URL: http://munich.schwarz-interactive.de/autocomplete.aspx
2
2600
by: kwenterprise | last post by:
Hello All, I am normally great at figuring out ways around iframe issues that frustrate us all. I am using javasript to try and break an iframe that I have a banner rotator embedded in but it is not working. I want visitors to click the banners and actually be taken to those pages instead of the new page being stuck in the iframe. What ever the case when I click on any banner, it opens the url right there inside the frame instead of...
2
11575
by: cybervigilante | last post by:
I have a table inside an iframe that has paypal buttons in table cells. Each button is a Form. (The table has to be in an iframe to protect it from a containing CMS, which buggers the forms otherwise) When I click on one of the buttons I go to paypal, but the resulting PayPal page is still inside the iframe and too small, so you have to scroll. I need to get out of the iframe but still go to paypal. What is the javascript I'd use? I...
0
1910
by: magicofureyes | last post by:
Hello Guys im a just a new user and i dnt knw much abt Xml i want to upload a new template in Blogger so got some free coding but when i save this code in Blogger template it say '''' Your template could not be parsed as it is not well-formed. Please make sure all XML elements are closed properly. XML error message: The element type "Variable" must be terminated by the matching end-tag "". so please help me out and check this coding if...
1
2232
PepsiHack
by: PepsiHack | last post by:
Ok i am developing a site on a server that only allows HTML and some Java Script - The Server displays my pages in its own layout. I tried to set up hosting somewhere else, however the organization has to host on this server.At first i couldnt even use CSS to style the page. However up to this point I have used javascript to impliment CSS and an external server to host scripts and images and css on. Heres the problem: there is a chat room...
0
9685
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
9538
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
10249
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
10219
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
10025
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
6804
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();...
0
5584
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4138
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
3
2937
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.