473,804 Members | 2,170 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

How could I add a tooltip to an iframe ? Also, the tooltip contents has to be determine @ run-time !

Hi.

1. OnLoad I populate a <select... html control with the doc files in
some folder.

2. The user selects one of the files in the combo, and

3. In an IFRAME I show a preview of the selected word document.

All those word docs also have lots of custom properties I would like to
show somehow. I have a function which reads them nicely, and I can see
them in a multiline text-box - problem is that there's no more
real-estate on the screen for the text-box (I want to reserve as much
space as possible for the preview in the IFRAME), so I'd like to create
a tooltip (JSCRIPT, maybe) which I could populate at run time with the
result of my function (the custom properties) and attach that
multi-line tooltip to the iframe.

Do you have any ideas ?

(PS. Also, the IFRAME has no onMouseover, onMouseout events !)

Thank you very much !
Alex.

Jan 8 '07 #1
1 1803
Put the iframe in a div and attach the javascript to the div.

-- bruce (sqlwork.com)
On 1/8/07 7:57 AM, in article
11************* ********@v33g20 00...legro ups.com, "Radu"
<cu************ *@yahoo.comwrot e:
Hi.

1. OnLoad I populate a <select... html control with the doc files in
some folder.

2. The user selects one of the files in the combo, and

3. In an IFRAME I show a preview of the selected word document.

All those word docs also have lots of custom properties I would like to
show somehow. I have a function which reads them nicely, and I can see
them in a multiline text-box - problem is that there's no more
real-estate on the screen for the text-box (I want to reserve as much
space as possible for the preview in the IFRAME), so I'd like to create
a tooltip (JSCRIPT, maybe) which I could populate at run time with the
result of my function (the custom properties) and attach that
multi-line tooltip to the iframe.

Do you have any ideas ?

(PS. Also, the IFRAME has no onMouseover, onMouseout events !)

Thank you very much !
Alex.
Jan 8 '07 #2

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

Similar topics

1
5965
by: Jeff Thies | last post by:
I'm (still) having trouble reading the contents of an IFRAME (IE5). I have this: var my_iframe = document.frames; What I would want to do at that point is get either the contentWindow.document or the contentDocument depending on whether this was IE or Mozilla. (Thanks Lasse.) I'm not finding this.
5
14040
by: hiroshi ochi | last post by:
Hello, Using MSIE 6.0 and above, with javascript is it possible to display an individual tooltip for each item in a listbox? I need this functionality to show the listitems that are longer than the listbox size. Please refer to this link to get the idea of what I would like to do. Unfortunately this one is for VB.
4
8999
by: Mark | last post by:
I am loading source files into several iframes, with each load happening after some user-generated event (like clicking a button). The loading works but I need to determine when the source file is FULLY loaded so I can do some calcs on its scroll height within the frame. If I check the scroll height right away (after fetching the file), it's wrong (some small number) but if I wait a couple of seconds I get the right value. I need to do...
3
6201
by: jeet_sen | last post by:
Hi, I have a some data in the form of a table to displayed as small pop up frame. For this I have used an Iframe which is created dynamically. Then I created a table element and added as a child of the the iframe. Though the frame is getting displayed but its empty without any table. Can a table element be added as a child of an iframe? Or Iframe can only read data from a source html mentioned with src attribute. Can anyone throw some...
3
2311
by: David Virgil Hobbs | last post by:
I discovered how to write out the inner HTML of the contents of an Iframe; I want to know how to write out the outerHTML of the contents of an Iframe. frames.document.body.innerHTML allows me to read the inner HTML of the contents of an iframe and also allows me to write out the inner HTML of the contents of an iframe. However using frames.document.body.innerHTML I am only able to change, in the contents of the iframe, the code in...
2
3304
by: Mani | last post by:
I have a file browse dialog and an IFRAME on my web page. User will select an RTF file using the file browse dialog and I need to load the contents of that file in IFRAME so that the user could edit the same. Any ideas how do I populate the contents of a file into IFRAME? Regards Mani
7
9638
by: Tom Cole | last post by:
IFrames have been used by years for people to accomplish many of the tasks the XMLHttpRequest does for them now...I unfortunately am late in the game and XMLHttpRequest was already out there by the time I got serious about using Javascript for more than just rollover images... I now would like to learn about the concept for the purposes of creating Ajax-like requests across domains. I felt like I had the basic concept down, but am...
7
3612
exoskeleton
by: exoskeleton | last post by:
hi guys..hope you can help me...my boss want me to edit our website and apply the tooltip thing, i mean the moving tooltip that follows the mouse.. please help...thank you... :(
9
18496
by: jad2006 | last post by:
Hi guys We have a requirement like in one iframe we have to show one site and in another iframe we have to show some other external site, we did it using <iframe src="http://www.a.com"> </iframe> <iframe src="http://www.b.com"> </iframe> now if the session expires in any one site, the login page is shown in only the correponding iframe, what we require is that the login page has to be shown in the entire window(since both...
1
1799
by: Larry Fletcher | last post by:
I have a javascript menu that works fine until I try to put an iframe on the same page. Using FF the contents of the iframe are shown, but not the menu. With IE6 the menu is shown, but not the contents of the iframe. Is there any way to make the javascript menu and the iframe coexist on the same page? I have searched the newsgroup and the web, but I can't find any reference to this problem.
0
9714
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
9594
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
10600
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
10351
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
9174
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
6866
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
5534
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 last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5673
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
3834
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.