473,503 Members | 1,666 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Floating window in another frame

1 New Member
Hi Guys,

I'd like to get some help regarding creating a floating window with the following scenario:

* I have index.html which is contains the frameset definition:

Expand|Select|Wrap|Line Numbers
  1. <html>
  2. <head>
  3. </head>
  4. <frameset>
  5.     <frame name="top" src="top.html">
  6.     <frame name="bottom" src="http://www.myothersite.com">
  7.     <noframes>
  8.     <body>
  9.     <p>This page uses frames, but your browser doesn't support them.</p>
  10.     </body>
  11.     </noframes>
  12. </frameset>
  13. </html> 
  14.  
* I can only modify either index.html or top.html
* How can I create a floating window (like this http://www.dhtmlgoodies.com/scripts/...ng_window.html) by placing the code either in index.html or top.html and have the window shown on the "bottom" frame. What I need is using onLoad command in either index.html or top.html, create a floating window in "bottom" frame, without modifiying anything in the bottom frame (external content, e.g myothersite.com)
* I've tried to modify the sample from that sample script:
if I modify index.html by putting onLoad in the body section, nothing change
if I modify top.html, the floating window shown on the "top" frame, which is not what I want.

Any suggestion?

Thanks in advance.
Aug 28 '06 #1
1 5461
acoder
16,027 Recognized Expert Moderator MVP
You will need to use DOM methods to create the elements used to make the floating window and also load the JavaScript and CSS files.

To access the frame from the frameset page, use window.frames[0]... or top.bottom from top.html.

Note, though, that if the bottom frame URL is from a different domain, you cannot access it from the index page or the top frame.
May 6 '08 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

10
14677
by: Scott | last post by:
I'm new to ASP, but I've been programming in VB for several years, and I'm having a few issues with this ASP enhancement I'm working on. I've found ASP to be a lot different than what I'm use to...
4
5502
by: Jon | last post by:
I can use a frame tag to open up another src file but is it possible to put that src file document (target) into a separate window besides just another frame ? If so how ? Jon
5
2212
by: Etienne Charland | last post by:
Hi, I have a simple problem that doesn't seem to have an easy solution. I have a popup used in many places in the application. At the top of the page, there is a link to switch between two views of...
4
43528
by: Dustan | last post by:
I'm a newbie here, especially with Tkinter. I'm writing a program that has 3 phases, if you will, in which I would have to clear the window and insert new widgets. Is this possible, and if so,...
4
3322
by: CMM | last post by:
Has any one gotten a "stay-in-view" floating div to work in ASP.NET 2.0? For those that don't know, the classic way is this (for IE anyway): (window.onscroll...)...
2
2128
by: KC | last post by:
Hi, Every JavaScript executive context has a top-level window and we can use window.open() to open another window ... Does this related to Windows created by click on "File"->"New Window" or...
1
1764
by: Garg | last post by:
Hi, I am facing a problem while trying to close a window that I've opened in a frame. I am using javascript to close my current popup window. I have written the following line of code on click...
4
3073
by: sid | last post by:
"about:blank" oepns new browser window I am writing a webpage that will run on other machines that I may or may not know about. My page is framed where frame1 controls the content of frame2. ...
0
980
by: Anish Chapagain | last post by:
Hi!! I'm trying to program an application which have multiple windows and is capable of executing method defined inside class of one another, i tries a simpel frame work here and am creating...
0
7203
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
7087
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...
0
7281
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
1
6993
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
7462
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...
1
5014
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...
0
3168
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
3156
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
383
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...

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.