Unfortunatelly, it doesn't work in my case :-(
I put the code
DynAPI.addResizefunction('window.location.reload()')
inside the onLoad function.



--- Doug Melvin <[EMAIL PROTECTED]> wrote:
> In that case, yes. 
> :-)
> 
> 
> > All I want to do is to reLoad the page everytime
> the
> > user resize the page, so I just need to write
> > something like
> > 
> > <script language=javascript>
> >       
> >
> DynAPI.addResizefunction('window.location.reload()')
> > </script>
> > ?
> > 
> > Is that right?
> > 
> > thanks in advance.
> > 
> > --- Doug Melvin <[EMAIL PROTECTED]>
> wrote:
> > > The DynAPI object has it's own resize handler:
> > > 
> > > The DynDocument appends some resize code which
> > > handles re-rendering layers
> > > in NS.
> > > 
> > > so, using DynAPI.addResizeFunction('your code
> here')
> > > adds the code to the
> > > existing resize handler
> > > 
> > > DynAPI.onResize = function() {
> > >     your code here;
> > > };
> > > 
> > > Will overwrite (delete) the existing resize
> handler.
> > > 
> > > If you are still not convinced, then just do it
> > > anyways,
> > > Trust us, we wrote this library and know what we
> > > area talking about.
> > > 
> > > :-)
> > > 
> > > Doug Melvin
> > > 
> > > ----- Original Message -----
> > > From: "Matt Lam" <[EMAIL PROTECTED]>
> > > To: "Andrew Hull" <[EMAIL PROTECTED]>
> > > Cc: <[EMAIL PROTECTED]>
> > > Sent: Thursday, October 18, 2001 3:23 PM
> > > Subject: Re: [Dynapi-Help] Problem with Resize
> on
> > > Netscape message "Alert,
> > > did not find converter or decoder"
> > > 
> > > 
> > > > You mean DynAPI will automatically handle
> resize
> > > event
> > > > even if I don't write any event handler
> myself?
> > > > what is the difference between using
> > > >
> > >
> >
>
DynAPI.addResizeFunction('document.location.reload(true)');
> > > >
> > > > and
> > > > DynAPI.onResize = function() {
> > > >         window.location.reload();
> > > > }
> > > >
> > > > Anyway, I did find a way to get around the
> problem
> > > i
> > > > have in NS4.75, instead of creating DynLayer
> in
> > > onLoad
> > > > function, I just create it only when the user
> > > mouse
> > > > over, and delete it after the mouse out, and
> > > create
> > > > the DynLayer when mouse over again. I still
> don't
> > > know
> > > > what is causing the problem i had before
> though.
> > > >
> > > > one more thing, what is the difference between
> > > > DynAPI.document.deleteChild(layer1)
> > > > and
> > > > DynAPI.document.removeChild(layer1)
> > > >
> > > > Thanks a lot, guys.
> > > >
> > > > Jack
> > > > --- Andrew Hull <[EMAIL PROTECTED]> wrote:
> > > > > you must be overwriting some of DynAPI's
> reload
> > > > > functionality. wouldnt
> > > > > this be safer?
> > > > >
> > > >
> > >
> >
>
DynAPI.addResizeFunction('document.location.reload(true)');
> > > > >
> > > > > Matt Lam wrote:
> > > > >
> > > > > >In fact, I did use
> > > > > >DynAPI.onResize = function() {
> > > > > >        window.location.reload();
> > > > > >    }
> > > > > >but that won't solve the problem either. It
> is
> > > > > working
> > > > > >fine in other browser except NS4.75
> > > > > >
> > > > > >I dont know what is going on.
> > > > > >
> > > > > >I really need some help :-(
> > > > > >
> > > > > >
> > > > > >
> > > > > >--- Jim Richards <[EMAIL PROTECTED]> wrote:
> > > > > >
> > > > > >>You can't use
> > > > > >>
> > > > > >>    <body onresize="return something();">
> > > > > >>
> > > > > >>because that'll confuse DynAPI, I tend to
> > > force a
> > > > > >>reload of the page, as
> > > > > >>this works best across
> > > > > >>all browers
> > > > > >>
> > > > > >>    DynAPI.onResize = function() {
> > > > > >>        window.location.reload();
> > > > > >>    }
> > > > > >>
> > > > > >>
> > > > > >>Matt Lam wrote:
> > > > > >>
> > > > > >>>Hi,
> > > > > >>>If I comment out the resize code, this
> > > problem
> > > > > will
> > > > > >>>
> > > > > >>go
> > > > > >>
> > > > > >>>away. But I have to detect the resize
> event
> > > so
> > > > > that
> > > > > >>>
> > > > > >>i
> > > > > >>
> > > > > >>>can move the dynlayer to the correct
> position
> > > in
> > > > > >>>
> > > > > >>the
> > > > > >>
> > > > > >>>browser. The problem is it doesn't matter
> > > where I
> > > > > >>>
> > > > > >>put
> > > > > >>
> > > > > >>>the onresize event handler, the problem
> will
> > > > > occur.
> > > > > >>><body onResize=""> no matter what code i
> put
> > > > > inside
> > > > > >>>that onResize="" the problem will happen,
> or
> > > if i
> > > > > >>>
> > > > > >>do
> > > > > >>
> > > > > >>>DynAPI.onResize = function () {
> > > > > >>>    //doesn't matter what code is in
> here,
> > > the
> > > > > >>>problem will happen too
> > > > > >>>}
> > > > > >>>
> > > > > >>>my code is something like the following:
> > > > > >>>
> > > > > >>><HTML><HEAD><TITLE></TITLE>
> > > > > >>><Script language="Javascript">
> > > > > >>>
> > > DynAPI.setLibraryPath('/home/dynapi/src/lib/')
> > > > > >>>       DynAPI.include('dynapi.api.*')
> > > > > >>>       DynAPI.include('dynapi.event.*')
> > > > > >>> DynAPI.include('dynapi.ext.inline.js')
> > > > > >>></script>
> 
=== message truncated ===


__________________________________________________
Do You Yahoo!?
Make a great connection at Yahoo! Personals.
http://personals.yahoo.com

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

Reply via email to