Thanks for your answer, it's an interesting idea. However, we need to
support version 3 browsers, and I don't think they support CSS.
I was also thinking of something along the lines of updating values, like
you can in a form. For example you can set the "VALUE" attribute in <INPUT
TYPE="TEXT" ...> through JavaScript, except that I don't want it to be an
editable text field, just a plain piece of text. Can you somehow do that?
Thanks, Petr
----------
From: Douglas Bridges [SMTP:[EMAIL PROTECTED]]
Sent: Monday, 08 March, 1999 5:51 PM
To: [EMAIL PROTECTED]
Subject: Re: [a little bit off topic] Generating part of a page in
JavaScript
Unfortunately this does not work. The browser only parses through
the
HTML once. While theoretically possible to have Javascript change
the
code, the browser will not parse the new HTML. Thus it is a moot
point.
You might want to look into Cascading Style Sheets(CSS). They might
be
able to do want you want. They are extremely powerful especially
when
combined with Javascript.
Doug
>Date: Mon, 8 Mar 1999 17:21:24 -0000
>Reply-To: "A mailing list for discussion about Sun Microsystem's
Java
> Servlet API Technology."
<[EMAIL PROTECTED]>
>From: Petr Jiricka <[EMAIL PROTECTED]>
>Subject: [a little bit off topic] Generating part of a page in
JavaScript
>To: [EMAIL PROTECTED]
>
>Hi,
>Is it possible to write HTML code by JavaScript in the middle of a
document?
>I would like to dynamically change a part of a page when user
clicks a
>button on a page without having to call my servlet, because the
page is
>quite big and it needs to change quickly.
>Thanks in advance for your help.
>
>Petr
>
>___________________________________________________________________________
>To unsubscribe, send email to [EMAIL PROTECTED] and include in
the
body
>of the message "signoff SERVLET-INTEREST".
>
>Archives:
http://archives.java.sun.com/archives/servlet-interest.html
>Resources:
http://java.sun.com/products/servlet/external-resources.html
>LISTSERV Help: http://www.lsoft.com/manuals/user/user.html
>
______________________________________________________
Get Your Private, Free Email at http://www.hotmail.com
___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in
the body
of the message "signoff SERVLET-INTEREST".
Archives:
http://archives.java.sun.com/archives/servlet-interest.html
Resources:
http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html
___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".
Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html