473,396 Members | 2,004 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

writing to a page

is it possible to write text into a page or does the whole page have to be
re written using Document.Write?
I'm an absolute beginner and wanted to add lines of text when a button is
clicked. the only references i can find are to text boxes or alerts. if I
use Document.Write the page changes to hiving only the text I wrote so do I
have to rewrite the whole page into the script. Could be a long job.
Jul 20 '05 #1
7 1649
In article <jU*******************@news-lhr.blueyonder.co.uk>, iz0nlee
<iz*****@blueyonder.com> wrote:
is it possible to write text into a page or does the whole page have to be
re written using Document.Write?
I'm an absolute beginner and wanted to add lines of text when a button is
clicked. the only references i can find are to text boxes or alerts. if I
use Document.Write the page changes to hiving only the text I wrote so do I
have to rewrite the whole page into the script. Could be a long job.


You can write to an iFrame as I do on my Amtrak page.

See http:www.dcs-chico.com/~denmarks/amtrak.html

-- in body
<iframe src="initial page to display - optional" name="framename"
height="?" width="?" scrolling="auto">This text will appear if iframe
is not supported</iframe>

-- in a script
iFrameWindow=frames["framename"];
iFrameWindow.document.open();
iFrameWindow.document.write("This is the text");
iFrameWindow.document.close();

--
Dennis M. Marks
-----= Posted via Newsfeeds.Com, Uncensored Usenet News =-----
http://www.newsfeeds.com - The #1 Newsgroup Service in the World!
-----== Over 100,000 Newsgroups - 19 Different Servers! =-----
Jul 20 '05 #2
In article <jU*******************@news-lhr.blueyonder.co.uk>, "iz0nlee"
<iz*****@blueyonder.com> writes:
is it possible to write text into a page or does the whole page have to be
re written using Document.Write?
Yes. Its what dHTML is all about. Thats assuming you mean document.write and
not Document.Write (javascript is case sensitive)
I'm an absolute beginner and wanted to add lines of text when a button is
clicked. the only references i can find are to text boxes or alerts. if I
use Document.Write the page changes to hiving only the text I wrote so do I
have to rewrite the whole page into the script. Could be a long job.


http://www.jibbering.com/faq/#FAQ4_15
--
Randy
Jul 20 '05 #3
JRS: In article <14*************************@dcsi.net>, seen in
news:comp.lang.javascript, Dennis M. Marks <de******@dcsi.net> posted at
Sun, 14 Dec 2003 15:37:10 :-
In article <jU*******************@news-lhr.blueyonder.co.uk>, iz0nlee
<iz*****@blueyonder.com> wrote:
is it possible to write text into a page or does the whole page have to be
re written using Document.Write?
I'm an absolute beginner and wanted to add lines of text when a button is
clicked. the only references i can find are to text boxes or alerts. if I
use Document.Write the page changes to hiving only the text I wrote so do I
have to rewrite the whole page into the script. Could be a long job.


You can write to an iFrame as I do on my Amtrak page.

See http:www.dcs-chico.com/~denmarks/amtrak.html

-- in body
<iframe src="initial page to display - optional" name="framename"
height="?" width="?" scrolling="auto">This text will appear if iframe
is not supported</iframe>

-- in a script
iFrameWindow=frames["framename"];
iFrameWindow.document.open();
iFrameWindow.document.write("This is the text");
iFrameWindow.document.close();


You could give better-informed answers by familiarising yourself with
the FAQ *before* answering. This one is 4.16.
OP : <URL:http://www.merlyn.demon.co.uk/js-valid.htm#VFF> provides an
example of this, if you make at least one entry wrong (e.g. blank)
before pressing an FTry button.

<URL:http://www.merlyn.demon.co.uk/js-other.htm#RWP> refers;
<URL:http://www.merlyn.demon.co.uk/js-tests.htm#DynTest> demonstrates.

--
© John Stockton, Surrey, UK. ?@merlyn.demon.co.uk Turnpike v4.00 IE 4 ©
<URL:http://jibbering.com/faq/> Jim Ley's FAQ for news:comp.lang.javascript
<URL:http://www.merlyn.demon.co.uk/js-index.htm> Jsc maths, dates, sources.
<URL:http://www.merlyn.demon.co.uk/> TP/BP/Delphi/Jsc/&c, FAQ topics, links.
Jul 20 '05 #4
@SM
"Dennis M. Marks" a ecrit :
You can write to an iFrame as I do on my Amtrak page.
unluck
my NC 4.5 can't read iframes !
how will he (you) show me his (yours) lines ?
See http:www.dcs-chico.com/~denmarks/amtrak.html


You'll have to double with a layer, if you use this way
--
************************************************** ************
Stéphane MORIAUX : mailto:st*********************@wanadoo.fr

Jul 20 '05 #5
@SM
Dr John Stockton a ecrit :
You could give better-informed answers by familiarising yourself with
the FAQ *before* answering. This one is 4.16.
Wich FAQ ?

Is it somewhere in one of urls below ?
OP : <URL:http://www.merlyn.demon.co.uk/js-valid.htm#VFF> provides an
example of this, if you make at least one entry wrong (e.g. blank)
before pressing an FTry button.

<URL:http://www.merlyn.demon.co.uk/js-other.htm#RWP> refers;
<URL:http://www.merlyn.demon.co.uk/js-tests.htm#DynTest> demonstrates.

--
© John Stockton, Surrey, UK. ?@merlyn.demon.co.uk Turnpike v4.00 IE 4 ©
<URL:http://jibbering.com/faq/> Jim Ley's FAQ for news:comp.lang.javascript
<URL:http://www.merlyn.demon.co.uk/js-index.htm> Jsc maths, dates, sources.
<URL:http://www.merlyn.demon.co.uk/> TP/BP/Delphi/Jsc/&c, FAQ topics, links.


--
************************************************** ************
Stéphane MORIAUX : mailto:st*********************@wanadoo.fr

Jul 20 '05 #6
"@SM" <st**************@wanadoo.fr> wrote in message
news:3F**************@wanadoo.fr...
You could give better-informed answers by familiarising
yourself with the FAQ *before* answering. This one is 4.16.
Wich FAQ ?


The comp.lang.javascript FAQ of course.
Is it somewhere in one of urls below ?


Yes:-

<snip>
<URL: http://jibbering.com/faq/ > Jim Ley's
FAQ for news:comp.lang.javascript

<snip>

It is also automatically posted to the group on a fairly regular basis,
I am surprised that you have missed it, especially as it has come in for
an unusual amount of comment in the last week.

Richard.
Jul 20 '05 #7
@SM wrote on 15 Dec 2003 at Mon, 15 Dec 2003 23:49:32 GMT:
Dr John Stockton a ecrit :
You could give better-informed answers by familiarising
yourself with the FAQ *before* answering. This one is 4.16.


Wich FAQ ?

Is it somewhere in one of urls below ?


Yes: <URL:http://jibbering.com/faq/>

Jim Ley's FAQ for news:comp.lang.javascript

Mike

--
Michael Winter
M.******@blueyonder.co.invalid (replace ".invalid" with ".uk")
Jul 20 '05 #8

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

Similar topics

1
by: Google Mike | last post by:
Tell me if this can be done, and if I have a misconception here. I am writing an app that will be served up in an app farm, and therefore I need to move the session information to the client, not...
2
by: Troy Lynch | last post by:
I'm looking into writing a Category Hierarchy on a site I've written and am looking for some information about writing this kind of code. Maybe some samples or a book. Any information would be...
7
by: Brian Burgess | last post by:
Hi all, Anyone see anything wrong with the following: *************************************************************** <%@ LANGUAGE="VBSCRIPT" %> <% Option Explicit Dim nAcctNbr Dim...
4
by: George Stout | last post by:
First off I do not know alot about writing queries to an Access Database from an ASP page. This is why I need help. I have an Events database for 6 colleges in our metro area. On the homepage I...
6
by: Jeff Thies | last post by:
I've been thinking about writing CSS that's easy to read and adjust at a later date (often by someone else). Here's where I seem to be headed: Breaking the page down into container divs,...
385
by: Xah Lee | last post by:
Jargons of Info Tech industry (A Love of Jargons) Xah Lee, 2002 Feb People in the computing field like to spur the use of spurious jargons. The less educated they are, the more they like...
17
by: Eric Lindsay | last post by:
Is learning to write CSS a better use of time than finding and using a package that produces complete web pages? I've moved to a new platform (Macintosh), taking with me about 400 personal web...
102
by: Xah Lee | last post by:
i had the pleasure to read the PHP's manual today. http://www.php.net/manual/en/ although Pretty Home Page is another criminal hack of the unix lineage, but if we are here to judge the quality...
1
by: Julian32 | last post by:
Hello, I'm trying to keep track of purchases made from my website by having Paypal redirect users to a page on my site after purchase, and writing the information received to an Access Database....
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
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
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
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...
0
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,...

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.