473,480 Members | 1,850 Online
Bytes | Software Development & Data Engineering Community
Create 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 5459
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
14672
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
43511
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
3317
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
2127
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
1761
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
3071
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
976
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
7041
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
7044
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,...
0
7084
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...
1
6739
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
5337
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
4481
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...
0
1300
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 ...
1
563
muto222
php
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
181
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.