The problem with this approach when using ns4 is that if your webapplication
has
user-entered content, then reloading on resize looses all the content that the
user
labored to enter .....

If you have a simple webpage, then it does not matter. I am trying to build a
webapplication and you do not want to loose all the user-entered data.

My solution was to save the content on the navigator object  on reload
due to resize and when the page comes up, initialized with the saved data.

I'd love to have a simpler solution.

RME



Chris Casad wrote:

> Well this is the fix that I am going with for now... does anyone have any
> comments on this.  Is this bad?
>
> In dynapi.js: (line 224)
>
>         DynAPIObject.prototype.resizeHandler = function() {
>                 eval(this.onResizeCodes.join(";"));
>                 if (is.ns4) location.reload();  ////////// New Line
>                 if (this.onResize) this.onResize();
>         }
>
> Chris
>
> -----Original Message-----
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED]]On Behalf Of Chris Casad
> Sent: Thursday, May 17, 2001 11:07 AM
> To: [EMAIL PROTECTED]
> Subject: RE: [Dynapi-Dev] Netscape resize ... <pulling hair out>
>
> Does anyone have an answer to main question as well as Doug's note that the
> NS resize fix was removed and will it be put back in?
>
> This seems like such a big thing. Was it removed by accident or on purpose?
>
> Chris
>
> -----Original Message-----
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED]]On Behalf Of Doug Melvin
> Sent: Wednesday, May 16, 2001 8:45 PM
> To: [EMAIL PROTECTED]
> Subject: Re: [Dynapi-Dev] Netscape resize ... <pulling hair out>
>
> It would seem that the NS resize fix was removed form the code-base
> completely..
>
> Anyone planon putting it back?
>
> I would, but I wasn't even sure of the logic behind it all.
> ----- Original Message -----
> From: "Chris Casad" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Wednesday, May 16, 2001 8:30 AM
> Subject: RE: [Dynapi-Dev] Netscape resize ... <pulling hair out>
>
> > It is a single page ... no frame.
> >
> > Oh and I am using the newest DynAPI 2.53 (May 8, 2001).
> >
> > Chris
> >
> >
> > -----Original Message-----
> > From: [EMAIL PROTECTED]
> > [mailto:[EMAIL PROTECTED]]On Behalf Of Jordi
> > Ministral
> > Sent: Wednesday, May 16, 2001 11:23 AM
> > To: [EMAIL PROTECTED]
> > Subject: Re: [Dynapi-Dev] Netscape resize ... <pulling hair out>
> >
> >
> > Is you page in a frame ?
> >
> > Chris Casad wrote:
> >
> > > Ok ... does the onResize work with Netscape (I'm using 4.76)? I thought
> I
> > > had it working at one time but I can't even get this simple script below
> > to
> > > work correctly.  Am I forgetting something or am I wrong in the fact
> that
> > it
> > > is suppose to work in Netscape?
> > >
> > > The layer shows up correctly onLoad but when I resize Netscape the layer
> > > just disappears.
> > >
> > > And of course, it works in IE.
> > >
> > > --Chris
> > >
> > > /////////////////////////////////////////////////////////////
> > >
> > > <script language="Javascript">
> > >
> > > DynAPI.onLoad=function() {
> > >         backLayer = new DynLayer();
> > >         backLayer.moveTo(2,2);
> > >         backLayer.setWidth(DynAPI.document.getWidth()-4);
> > >         backLayer.setHeight(150);
> > >         backLayer.setBgColor('#000000');
> > >         backLayer.setVisible(true);
> > >
> > >         DynAPI.document.addChild(backLayer);
> > > }
> > >
> > > DynAPI.onResize=function() {
> > >         backLayer.setWidth(DynAPI.document.getWidth()-4);
> > > }
> > >
> > > </script>
> > >
> > > /////////////////////////////////////////////////////////////
> > >
> > > _______________________________________________
> > > Dynapi-Dev mailing list
> > > [EMAIL PROTECTED]
> > > http://lists.sourceforge.net/lists/listinfo/dynapi-dev
> >
> >
> > _______________________________________________
> > Dynapi-Dev mailing list
> > [EMAIL PROTECTED]
> > http://lists.sourceforge.net/lists/listinfo/dynapi-dev
> >
> >
> > _______________________________________________
> > Dynapi-Dev mailing list
> > [EMAIL PROTECTED]
> > http://lists.sourceforge.net/lists/listinfo/dynapi-dev
>
> _______________________________________________
> Dynapi-Dev mailing list
> [EMAIL PROTECTED]
> http://lists.sourceforge.net/lists/listinfo/dynapi-dev
>
> _______________________________________________
> Dynapi-Dev mailing list
> [EMAIL PROTECTED]
> http://lists.sourceforge.net/lists/listinfo/dynapi-dev
>
> _______________________________________________
> Dynapi-Dev mailing list
> [EMAIL PROTECTED]
> http://lists.sourceforge.net/lists/listinfo/dynapi-dev


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

Reply via email to