[Javascript] forcing a window to refresh

Mark.Drozd at walgreens.com Mark.Drozd at walgreens.com
Thu Apr 11 09:44:48 CDT 2002


Malki,

Try to put the labels and text boxes (that appear after the user selects
YES) within a <DIV> tag. Then set the document.layers[divId].visibility to
either hidden or visible depending on the value of YES/NO.

This way the page is loaded with everything you need initially and no
refresh is required.

Hope this helps...






"Malka Cymbalista" <Malki.Cymbalista at weizmann.ac.il>@LaTech.edu on
04/11/2002 08:17:55 AM

Please respond to javascript at LaTech.edu

Sent by:  javascript-admin at LaTech.edu


To:   <javascript at LaTech.edu>
cc:

Subject:  [Javascript] forcing a window to refresh


I am creating an html page that contains a form.  Basically, when the user
first sees the page, 3 questions are displayed each having a yes or no
answer. If the user clicks on yes, then an additional section opens where
the user must enter more information.  This additional section contains
text boxes and textarea boxes. We are using javascript with layers to
control what is placed on the page and where.  It pretty much works except
for one problem.
When the user clicks on yes, the new section appears but only with the text
that is printed outside each text box or textarea.  the text boxes
themselves do not appear.  If the user resized the window or does something
that forces a "refresh" then everything appears properly.  Is there
anything that will force a "refresh" of the window?  Doing reload() is not
an answer because that resets the page to the original without the
additional sections.

Any help will be appreciated. TIA.

Malki Cymbalista
Webmaster, Weizmann Institute of Science
Rehovot, Israel 76100
Internet: Malki.Cymbalista at weizmann.ac.il

_______________________________________________
Javascript mailing list
Javascript at LaTech.edu
https://lists.LaTech.edu/mailman/listinfo/javascript






More information about the Javascript mailing list