[Javascript] netscape: how to write to <div> tag??

BEKIM BACAJ Trojani2000 at hotmail.com
Thu Jun 28 03:26:18 CDT 2001


He is wrong anyway. In IE there is nothing like <Layer> tag except the <IFRAME>. There is some equivalency between
layer in the NN and the IFrame in IE, but the tag is a tag, and it's known as HTML.
Layer is analog to DIV but the logics of functioning are extremely different. Layer is a new NN document window layered inside, very much alike the <input>, while the div is same as nothin it's a simple container that does nothin(wery usefool indeed), non can consider a simple word or a letter inside document to be another page or the page within the page, because in IE you can manipulate and access a single letter of the page content and move it if you like all across the document. The guy has a problem with a write command, because it creates a new document instead of his aim to write inside the same document. The write method is window handeled, so it writes a new document no matter how you declare it.  
...


----- Original Message -----
From: Andrew Gibson
Sent: Wednesday, June 27, 2001 12:18 PM
To: javascript at LaTech.edu
Subject: RE: [Javascript] netscape: how to write to  
tag??


Well, I tend to think of if it as a page within a page in the same window.

ie

<html>
<!--other required tags in CSS to define the divs-->

<div id =div1>Content1</div>
<div id =div2>Content2</div>
<div id =div3>Content3</div>
</html>

Then using Javascript you can manipulate the divs, hide them, move them,
write
to them etc.

Andrew GIbson

> Hi,
>   So would i be correct in saying that a <div> tag is like a whole new
> window?
>
> -----Original Message-----
> From: javascript-admin at LaTech.edu [mailto:javascript-admin at LaTech.edu]On
> Behalf Of Peter-Paul Koch
> Sent: Wednesday, 27 June 2001 7:25 PM
> To: javascript at LaTech.edu
> Subject: RE: [Javascript] netscape: how to write to <div> tag??
>
>
>
> >    Is is possible to write to parts of the page (like the div
> tag) without
> >clearing the page? If it is possible, is it possible to write
> HTML to that
> >section of the page?
>
> Yes and yes. See
> http://www.xs4all.nl/~ppk/js/index.html?layerwrite.html for
> the script you need.
>
> As to the other question: Can you append something to a div, it
> is possible
> in IE and NN6 by doing
>
> innerHTML = innerHTML + '<P>The new stuff</P>';
>
> As to Netscape 4, I'm not sure. Maybe it is when you leave out
> the close().
> Anyway, you could always store the content of the DIV and then append the
> new content to the storage, then reopen the DIV and write the new content
> into it.
>
> ppk
> _________________________________________________________________________
> Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.
>
>
> _______________________________________________
> Javascript mailing list
> Javascript at LaTech.edu
> http://www.LaTech.edu/mailman/listinfo/javascript
>
>
> _______________________________________________
> Javascript mailing list
> Javascript at LaTech.edu
> http://www.LaTech.edu/mailman/listinfo/javascript
>


_______________________________________________
Javascript mailing list
Javascript at LaTech.edu
http://www.LaTech.edu/mailman/listinfo/javascript<br clear=all><hr>Get Your Private, Free E-mail from MSN Hotmail at <a href="http://www.hotmail.com">http://www.hotmail.com</a>.<br></p>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.evolt.org/pipermail/javascript/attachments/20010628/46fb7f60/attachment.htm>


More information about the Javascript mailing list