473,785 Members | 2,388 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

IFRAME closed captioning component???

1 New Member
Hello to all.

I just finished my first web development class so now I have a little knowledge and could be considered dangerous.

I have no real clue on how to make this idea work but it sure seems feasible and would immensely appreciate any assistance or direction to make this happen.


What I want to happen is to have the user have the ability to turn an IFRAME, ON and OFF at anytime say within a series of 25 continuously linked pages.

OK that doesn't sound like a big deal. The problem is how do I make the IFRAME stay open or closed as the user moves from page to page through the sequence of pages? I am trying to create closed captioning component for a training piece. So if the user decides to use the CC the IFRAME would stay open through all the pages of a section and the content of the IFRAME would automatically change to correspond to the new page as the user advances through a section.

I have done this in flash by loading and unloading movies. So to show the CC the user hit a button that unloaded the top layer movie to expose the CC on a lower layer and back on to close or hide it again. That was a pretty simple task but I can not get my head around JavaScript and IFRAME to make this happen and could sure use a whole lot of help.

Thank you
Clancy
May 5 '07 #1
2 1495
acoder
16,027 Recognized Expert Moderator MVP
Welcome to TSDN.

I assume you mean you want to hide/display the iframe. Use the display property:
Expand|Select|Wrap|Line Numbers
  1. document.getElementById(frameid).style.display='none'
to hide and st it to 'block' to display.
May 5 '07 #2
pbmods
5,821 Recognized Expert Expert
If all you're doing is displaying text, an iframe is probably way overkill (plus it breaks web standards).

Instead, just put a DIV on your page and set its display property as acoder mentioned.

Whenever you need to change the text of the DIV, just use:
Expand|Select|Wrap|Line Numbers
  1. document.getElementById('theId').firstChild.nodeValue = text;
  2.  
May 5 '07 #3

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

Similar topics

1
2040
by: Vilmar Brazão de Oliveira | last post by:
Hi folk, How can I send a IFRAME element in a message with Cdonts or other component? the IFRAME follows below: I tried to send using webmail and outlook and I coudn'n sent yet. I doesn't appear me anything <iframe src="http://www.hitecnet.com.br/provisorio/MensagemdeNatal/MensagemDeNatal.h tm" width="435" height="1130" frameborder="0" scrolling="no">
1
5650
by: boyscout | last post by:
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...
2
1531
by: sebastiraj | last post by:
I have one JSP program in which one iframe is defined. And the source of which is an another jsp. Contents of an iframe is in hyperlink. When i click any of the hyperlinks one popup box will come. After some operation that popup will be closed...And that operation should be updated in the Iframe source.(that is what ever operation we carried out in popup) Any code/help would really end my one week sleepless nights. Thanks in advance.
3
1588
by: Wraith Daquell | last post by:
Hello all! I'm trying (read: becoming frustrated) to write a DVD viewer in VB.NET. I can embed the DVD picture using DirectX technology, but it seems to be impossible to obtain closed captioning from the DVD and convert it to a string. There were a few tips on getting the captioning in the MSDN, I know, but they were rather cryptic (unusual) and didn't convert the captioning to a string. If there is anyone who can help me, or even just...
7
3351
by: pb | last post by:
Hi all, I have some code that automatically generates a url depending on user selections. This url is then set as a hyperlink and the user clicks on the link that has the target as an iframe on the same page. What is the easier way to automatically fill the iframe with the required new web page without having to get the user to click on the link first.
0
1321
by: PulkitZery | last post by:
Hi all, I have a question about windows media encoder (WME) closed captioning. Does WME maintains the Line-21 closed captioning? In other words, does windows media encoder pulls closed captioning from line-21 off of the video feed and automatically builds the closed captioning into the Archive file? Thanks very much in advance for your help and time. Best regards, Jerry
3
1993
by: PulkitZery | last post by:
Hi All, I am trying to get the Closed Captioning (if available) from the Windows media player and display it in my little dialog box. Can some one give me an example or point me to any documentation/paper/article that shows how can I get the Close Captioning from windows media player? Thanks in advance for any help. - Pulkit Zery
16
2545
by: vikas000000a | last post by:
Hello all, I am creating a report generation program with VB 6.0 as front-end and Oracle 10i as back-end. My reqiurements are 1. User will query the database through the front-end. 2. The results will get populated in an MSHFlexGrid. 3. There will be a button at the bottom captioning "Export to excel" clicking which shoud generate an excel file with the data contained in the grid. 4. User must not be able to copy the data from the...
0
9647
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
10357
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...
0
10163
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
10104
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,...
1
7510
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6744
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
5397
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...
2
3668
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2894
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.