Richard,

Thanks for your response.  Your advice works great in IE, but in Netscape
when I increase the height of the inline <div> it does not push down the
part of the page below it: the inline <div> just expands down, overlapping
it.
Is there any way to get it to behave the way IE behaves?

Thanks again,
Jonah

PS: How about this for a workaround. Write the entire page's HTML content to
a JavaScript string variable, and then let the entire page be a single
<div>,
whose html we set to the string.  Then any dynamic modifications are
guaranteed
to be bross-browser.  Not too elegant, but what do you think?

-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]On Behalf Of Richard
Bennett
Sent: Monday, June 11, 2001 1:30 PM
To: [EMAIL PROTECTED]
Subject: Re: [Dynapi-Help] relatively positioned layers--creation and
deletion


to keep things simple, you could take the Glen Deas example, relative
positioning, and change the inline div to this:
<div id="layer1" style="position:relative; overflow: hidden;">

Now if you do
layer1.setSize(1,1)
the rest of the text moves up - BUT, guess which browser doesn't support
this...

So the hard way would be:
If your inline div doesn't contain any text, you can make it small, and the
rest of the page follows, but, a div always includes a linebreak, so the
minimum size is one line height.
you would use the inline div to get it's x,y coords, and position another
div showing the text at that place, you can increase the inline div's height
to move the rest of the page down.
By changing the div to a span, you get around the minimum one line height
problem, but you have to edit inline.js to look for spans instead of divs.

In answer to the difference between cloning you asked offline, the cloned
one uses the inline div to hold the same text as is inline, and displays
itself over the other text, it doesn't move the rest of the page , and
cannot be changed in size etc:
<div id="layer1" style="position:absolute; visibility:hidden">This is a
test.</div>This is a test blah blah


Richard.

----- Original Message -----
From: "Jonah" <[EMAIL PROTECTED]>
To: "Dynapi-Help" <[EMAIL PROTECTED]>
Sent: 11 June, 2001 20:44
Subject: [Dynapi-Help] relatively positioned layers--creation and deletion


> I am looking for a way to make relatively positioned layers act as though
> they were being created and deleted--that is, actually dissappear and
> reappear from the flow of the page, but can find only two unsatisfactory
> options.  Setting the visibility on and off makes the layer appear and
> reappear, but leaves unwanted blank space when the layer is invisible.
> Actually deleting the layer gets rid of the blank space, but also (as far
as
> I can tell) deletes the layer from memory, so that I can't get it back.
Is
> there a way to get the effect of a deletion and then bring a layer back
when
> it's relatively positioned?
>
> Thanks,
> Jonah
>
>
> _______________________________________________
> Dynapi-Help mailing list
> [EMAIL PROTECTED]
> http://lists.sourceforge.net/lists/listinfo/dynapi-help
>


_______________________________________________
Dynapi-Help mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/dynapi-help


_______________________________________________
Dynapi-Help mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/dynapi-help

Reply via email to