473,699 Members | 2,552 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Getting IFRAME text

<iframe name="iframe" width="100%" height="25%" src="test1.txt" >
</iframe>

<a href="test1.txt " target="input"> one</a>
<a href="test2.txt " target="input"> two</a>

<form name="form1">
<textarea name="textarea" cols=80 rows=18>
This is a test
</textarea><br>
<button name="Copy" value="Copy" OnClick="DoCopy ()">Copy</button>
</form>

<script>

function DoCopy()
{
form1.textarea. value=iframe.in nerText;
}
</script>
Nov 10 '05
15 20554
> Don't listen to what V'often wrong'K is telling you. There is nothing
wrong in using such names, there is no known side effect in any language
or UA. What is true is that it is a Good Thing to choose names with
meaning; for example, the `textarea' element could be named according
to its expected content.


Yes they are different namespaces.
This does not deal with getting the text from a text document
in an iframe which is what I was after.


Try referenceToIfra me.document.bod y.firstChild.fi rstChild.nodeVa lue in
Mozilla/5.0.
WFM in Firefox 1.0.7/Linux as an iframe with a plaintext
resource is made available through an embedded HTML document with a
`pre' element containing the resource's content.


referenceToIfra me.document.bod y.firstChild.fi rstChild.nodeVa lue

Works in IE too :)

Thanks.

Aaron
Nov 11 '05 #11
Aaron Gray wrote:

Please provide proper attribution, see
<http://jibbering.com/faq/faq_notes/pots1.html>
vvvvvvvvvvvvvvv vvvvvvvvvvvvvvv vvvvvvvvvvvvvvv vv
This does not deal with getting the text from a text document
in an iframe which is what I was after.
Try referenceToIfra me.document.bod y.firstChild.fi rstChild.nodeVa lue in
Mozilla/5.0.
WFM in Firefox 1.0.7/Linux as an iframe with a plaintext
resource is made available through an embedded HTML document with a
`pre' element containing the resource's content.


referenceToIfra me.document.bod y.firstChild.fi rstChild.nodeVa lue

Works in IE too :)


Nice :) However it is not supposed to work in IE/Windows < 5.0 and I'm
not sure about IE/Mac either. W3C DOM support was introduced in IE pretty
late, so you should definitely feature-test it on run time.
Thanks.


You're welcome.
PointedEars
Nov 11 '05 #12
> Please provide proper attribution, see
<http://jibbering.com/faq/faq_notes/pots1.html>
vvvvvvvvvvvvvvv vvvvvvvvvvvvvvv vvvvvvvvvvvvvvv vv


http://jibbering.com/faq/faq_notes/pots1.html#ps1TopPs

!:)

Aaron
Nov 11 '05 #13
Aaron Gray wrote:
Please provide proper attribution, see
<http://jibbering.com/faq/faq_notes/pots1.html>
vvvvvvvvvvvvvvv vvvvvvvvvvvvvvv vvvvvvvvvvvvvvv vv


http://jibbering.com/faq/faq_notes/pots1.html#ps1TopPs

!:)


Why, I did not top-post :)
F'up2 PointedEars
Nov 11 '05 #14
> Why, I did not top-post :)

Just joking :)

I did think when I wrote that post that the context was odd.

Aaron
Nov 11 '05 #15
JRS: In article <18************ ****@PointedEar s.de>, dated Fri, 11 Nov
2005 19:49:47, seen in news:comp.lang. javascript, Thomas 'PointedEars'
Lahn <Po*********@we b.de> posted :
Aaron Gray wrote:

Please provide proper attribution, see
<http://jibbering.com/faq/faq_notes/pots1.html>


Please provide proper attribution, as guided by USEFOR thinking.

Please stop being a nerdish bully.

--
© John Stockton, Surrey, UK. ?@merlyn.demon. co.uk Turnpike v4.00 MIME ©
Web <URL:http://www.uwasa.fi/~ts/http/tsfaq.html> -> Timo Salmi: Usenet Q&A.
Web <URL:http://www.merlyn.demo n.co.uk/news-use.htm> : about usage of News.
No Encoding. Quotes before replies. Snip well. Write clearly. Don't Mail News.
Nov 23 '05 #16

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

Similar topics

7
10909
by: Lorenzo Vaina | last post by:
Can i get the content of an URL and put it in a variable using javascript? I want js execute different operations varying a file that is on internet. Thanks, regards.
5
2563
by: Noorul Ameen | last post by:
Dear Folks, In a HTML page I want to get all the files in a selected dirs. Is that any way to do this thru javascript. Help will be highly appreciated. Thanks in advance. Regards, Ameen T
9
11171
by: aatcbbtccctc | last post by:
Hi folks I've googled for an answer to this, with no success. Can someone please jump in, and put me out of my misery! (I'm sure it's quite simple) I have an invisible IFRAME, and a visible DIV: <IFRAME id=myframe style="display:none" src="..." onload="ShowNews(this)"></IFRAME>
4
2552
by: Drew | last post by:
This might beyond the scope of this group because it deals with SharePoint, but I'm not sure if I can't get it to work because of SharePoint or because JavaScript is weird (I don't have much experience with JavaScript). Anyway, here is the code i'm working with. Basically, it creates appends a hidden IFrame to the page, gets the links from the IFrame, and displays those which have the "OnLink" property. The weird thing is that when I...
4
5080
by: bushi | last post by:
hi! i'm designing a web application,basically it have two pages,"client_browser.apsx" & "adserver.aspx"."client_browser.aspx" contains an iframe,and in the iframe i have displayed my "adserver.aspx".now i want to get the URL path of the client browser on my "adserver.aspx".but the code i have used returns me the URL path of "adserver.aspx",as it is behind the adserver.aspx.i want to get the URL path of the any client page displaying my...
0
7770
by: tequilamala | last post by:
I have an Iframe in one of the pages i am developing... the iframe is suppose to scroll up and down and the links target the iframe. the problem is that the iframe scrolls side to side on internet explorer but not on firefox. I dont want it to scroll sideways. in index.htm the iframe is at the bottom of the code. index.htm <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Frameset//EN" "http://www.w3.org/TR/html4/frameset.dtd">...
3
4391
by: smartphreak | last post by:
not sure if this is the right forum but i will try explain myself. lets start by giving the code <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>TITLE</title> <script type="text/javascript" src="loadiframes.js"></script> <style type="text/css"> body {
6
4107
by: buntyindia | last post by:
Hi, I have a page. There is a section 'sidebar' where bulleted text is there. Just after first bullet there is a hidden IFRAME. That go visible on clicking of that bullet text. My problem is with Safari Browser in Mac and WindowsXP. When we press the tab after first bullet link instead of going to next bulleted text the focus goes to the hidden IFRAME. How can I avoid the focus to hidden IFRAME. I tried both visibility:hidden and...
0
8687
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
9174
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
9035
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
8914
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
8884
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
7751
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
5875
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
4376
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
4629
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?

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.