codetoad.com
  ASP Shopping CartForum & BBS
  - all for $20 from CodeToad Plus!
  
  Home || ASP | ASP.Net | C++/C# | DHTML | HTML | Java | Javascript | Perl | VB | XML || CodeToad Plus! || Forums || RAM 
Search Site:
Search Forums:
  Bubbling events of a nested IFRAME  Archive Import (nah) at 22:13 on Sunday, August 10, 2003
 

Hi,
I need to respond to the event of a nested IFrame from its parent which is also an IFrame.

Here`s a simplified example:

<html>
<body>

<iframe id="if1" width=500 height=200></iframe>

<script language=javascript>
<!--
var msg = "`Context Menu here!`"
if1.document.open()
if1.document.write(`<html><body bgcolor=red oncontextmenu="alert(` + msg + `)"><iframe id=if2></iframe></body></html>`)
if1.document.close()
//-->
</script>

</body>
</html>


When clicking the red IFRAME with the alternative mouse button you`ll see a message.

What I need is to show the same message when the user clicks over the white IFRAME.

Thanks in advance!

  Re: Bubbling events of a nested IFRAME  Troy Wolf at 10:03 on Monday, August 11, 2003
 

Add these 2 lines below your if1.document.close() line:

1. if1.if2.document.write(`<html><body bgcolor=white oncontextmenu="alert(` + msg + `)"></body></html>`)
2. if1.if2.document.close()
Troy Wolf: site expert
SnippetEdit Website Editor


  Re: Bubbling events of a nested IFRAME  Archive Import (nah) at 21:03 on Tuesday, August 12, 2003
 

Thanks Troy!

I tried to do the same, but the actual case is a more complex, my example was just a simplication.

When right clicking the red IFRAME it shows a context menu on the document, so the idea is to do the same thing in the white nested IFRAME.

So is there a way to bubble the event, so that when you right click the white nested IFRAME it calls the red parent IFRAME`s event?

  Re: Bubbling events of a nested IFRAME  Troy Wolf at 12:00 on Wednesday, August 13, 2003
 

I understand what you are looking for now. I`m not exactly sure so I don`t want to give you bad code! Event bubbling is very different between Netscape and IE. Here is an IE-specific article about Event Bubbling.
http://www.wdvl.com/Authoring/JavaScript/Events/bobble.html
Troy Wolf: site expert
SnippetEdit Website Editor


  Re: Bubbling events of a nested IFRAME  Archive Import (nah) at 18:33 on Thursday, August 28, 2003
 

Thanks!, it`s a good article, but it looks like the oncontextmenu event doesn`t bubble... anyway, I found my way by calling the function from the nested IFRAME.

Now I have a different problem:
Since the right click event takes place in the IFRAME, the X and Y coordinates i`ll have will be those of the IFRAME.
The thing is that I want to show the contextual menu in the main document... so how would I know the X and Y for the contextual menu?

  Re: Bubbling events of a nested IFRAME  Troy Wolf at 21:54 on Thursday, August 28, 2003
 

Hmmm...I`m not sure what you want to do, but perhaps some others will reply with a good answer!
Troy Wolf: site expert
SnippetEdit Website Editor


  Re: Bubbling events of a nested IFRAME  benben at 06:11 on Saturday, May 21, 2011
 


Replica Rolex Collection Datejust II men watches Online
Replica Rolex Collection Datejust II men watches Online
Replica Rolex Collection Datejust II men watches Online
Replica Rolex Collection Datejust II men watches Online
Replica Rolex Collection Datejust II men watches Online
Replica Rolex Collection Datejust II men watches Online
Replica Rolex Collection Datejust II men watches Online
Replica Rolex Collection Datejust II men watches Online
Replica Rolex Collection Date-Day II men watches Online

  Re: Bubbling events of a nested IFRAME  ladygaga at 07:55 on Tuesday, June 14, 2011
 

replica shoes
designer replica shoes
fake designer shoes
discount shoes online
cheap designer shoes
silver glitter pumps


  Re: Bubbling events of a nested IFRAME  carinadresses at 01:27 on Wednesday, June 22, 2011
 

Save yourself potential heartbreak later and store your dress Cocktail Dresses correctly with an acid free, pH neutral wedding dress box. This way you know your dress will be safe through it all and when it is time to renew those vows, you will be ready to go.
There are many different styles of wedding dresses, almost as many styles of wedding dresses as there are shapes of women. No two women are shaped the same and that is why it is so important Ball Gown Wedding Dresses to get wedding dresses tailored to fit the bride. This often costs more money but it is well worth it if you want to look your best as you walk down the aisle. This should be the goal of all wedding dresses, to highlight all of the brides best features and attributes.
The styles of wedding dresses change with the seasons but there are a few classic styles that will never get old or go out of style. The classic A line dress is one of the wedding dresses. Of A-Line Wedding Dresses all the wedding dresses on the market today A line wedding dresses are the best. These wedding dresses look good on any woman, no matter what she looks like and what she weighs. It is the A line wedding dresses that flatter every woman alike. This cannot be said for any other of the wedding dresses out there.
When you first go shopping for wedding dresses you will want to have a sit down with the bridal consultant at the bridal boutique. He or she will be able to give you some helpful advice about Wedding Accessories which of the wedding dresses will flatter you the most. These consultants are so useful when you are looking at wedding dresses.
You should also try on all kinds of different wedding dresses just to make sure that you choose the perfect one. You need to try all of these wedding dresses to find the one that is the most comfortable and the one that will make you feel the most like a queen. That is what wedding dresses need to do, make you feel like one of a kind because that is what you are and that is why your husband to be loves you so much.
The wedding dresses that you try on can be of any color. White Venice Film Festival Dresses is the most common color of wedding dresses but there is no reason that you have to stick with it. If you want a bright red wedding dress then you should have it that is your right as a bride. If the wedding dresses you are trying on are not what you are looking for you should let your bridal consultant know. This consultant will go through all of the wedding dresses in their boutique in order to try to find the one that you will like. They can also show you some wedding dresses from their catalogs. If you see some that you think you might like your boutique should be able to order in these wedding dresses.
Your bridal boutique should be able to deal with Wedding Veil all of your concerns with wedding dresses. If they are not then you might want to think about looking for wedding dresses elsewhere.


  Re: Bubbling events of a nested IFRAME  wwwkan123 at 05:49 on Friday, June 24, 2011
 



Today I found a wonderful website,the site contained:

wedding dresses


cheap wedding dresses


Junior Bridesmaid Dresses


Cheap Homecoming Dresses


Cheap Quinceanera Dresses


Inexpensive bridesmaid dresses


Wholesale wedding dress


Wholesale wedding dress


Discount wedding dresses


Cheap Maternity Wedding Dresses


A-Line Wedding Dresses


Cheap Couture Wedding Dresses


Cheap Beach Wedding Dresses


Cheap Casual Wedding Dresses


Cheap Simple Wedding Dresses


Cheap Modest Wedding Dresses


Cheap Special Occasion Dresses


Cheap Evening Dresses


Cheap Prom Dresses


Cheap Little Black Dresses


Cheap Plus Size Wedding Dresses


Pink Wedding Dresses


Cheap Wedding Party Dresses


Cheap Bridesmaid Dresses


Cheap Flower Girl Dresses


Cheap Mother of the Bride Dresses

victoria's secret,

cheap wedding dresses,wholesale wedding dress,Wedding dresses 2011,Plus Size Wedding Dress wholesale,Couture Wedding Dress wholesale,Formal Wedding Dress wholesale,Bridesmaid Dresses wholesale,Discount Bridesmaid Dress wholesale,Junior Bridesmaids Dresses wholesale,Maternity Bridesmaid Dress wholesale,Cocktail Dress wholesale,Prom Dress wholesale,Evening Dress wholesale,Sexy Evening Dress wholesale,Stardoll Dress wholesale,Quinceanera Dress wholesale,Mother of the Bride Dress,Flower Girl Dress,Wedding Accessories wholesale


  Re: Bubbling events of a nested IFRAME  george22 at 09:31 on Monday, July 18, 2011
 

You can't directly force a web page to save to the local computer - that would be a major security risk. What you can do is force a prompt to save as.. What kind of output is going to be produced from the ASP page?
Another way round this might be to make the ASP page create the file on the webserver and then allow the VB application permission to that folder to pick up the file. testking 642-982 testking E22-275 testking JN0-660 testking 642-185 testking JK0-016 testking 000-106 testking 1Y0-A18 testking 642-467


  louis vuitton outlet  certificate at 03:04 on Thursday, July 21, 2011
 

There will not be any louis vuitton outlet handbags made in Korea, carry out of story. washing cleaning soap be unfortunate adequate to non-public gucci outlet that which you believed was a geniune instructor bag, only to locate upon receiving your bag that this louis vuitton bags  stated in Korea for that tag, go back gucci sale or consider it back again immediately for merely a refund. that is not really a genuine instructor louis vuitton bags outlet  and you undoubtedly are a complete gucci purses offer more content not buying some dilemma from that company.The stress sharp increase will carry out result within your transmit gucci outlet the material–The glutanic acid salt's propagation velocity www.luxurysaleup.com up, so promotes the memory.6.









CodeToad Experts

Can't find the answer?
Our Site experts are answering questions for free in the CodeToad forums








Recent Forum Threads
•  Cheap John Legend Tickets
•  Re: Auto Reply
•  Re: Disable reply on mail
•  Re: how can i make link
•  Re: image in asp.net control from sql server as image datatype
•  Re: Doubles .toString Error: double cannot be dereferenced.
•  louis vuitton handbags
•  coach purses outlet
•  jordan shoes


Recent Articles
ASP GetTempName
Decode and Encode UTF-8
ASP GetFile
ASP FolderExists
ASP FileExists
ASP OpenTextFile
ASP FilesystemObject
ASP CreateFolder
ASP CreateTextFile
Javascript Get Selected Text


© Copyright codetoad.com 2001-2011