From: George A. <GAr...@co...> - 2003-09-22 18:22:43
|
hello everyone , i just started using the new dynapi 3.0 CVS version a couple of days ago . i realized in my script i need to perform a function call every time the user resizes the window to update some display elements . however , i cant seem to find how to accomplish this . Looking through some the list's archives i came across some emails how one can call Dynapi.onresize = function(...) {...}; i cant seem to personally get this to work . is there a different way to accomplish this in DynAPI 3 ? thanks . george . |
From: Leif W <war...@us...> - 2003-09-22 19:49:38
|
I used some code like this [1], but it worked only in Mozilla 1.5 beta, Mozilla Firebird 0.6.1, and Opera 7.11. M$ says Internet Explorer 6 has all these fancy onresize[*|start|end] events[2], but it doesn't seem to work with a simple example like this, surprise surprise. [1] code window.onresize = function () { alert( 'window was resized!!' ); } [2] http://msdn.microsoft.com/workshop/author/dhtml/reference/objects/obj_window.asp Leif ----- Original Message ----- From: "George Ardeleanu" <GAr...@co...> To: <dyn...@li...> Sent: Monday, September 22, 2003 2:22 PM Subject: [Dynapi-Help] onresize hook . > > > > > hello everyone , > > i just started using the new dynapi 3.0 CVS version a couple of days ago . > i realized in my script i need to perform a function call every time the > user resizes the window to update some display elements . however , i cant > seem to find how to accomplish this . Looking through some the list's > archives i came across some emails how one can call Dynapi.onresize = > function(...) {...}; i cant seem to personally get this to work . is > there a different way to accomplish this in DynAPI 3 ? > > > thanks . > > george . > > > > ------------------------------------------------------- > This sf.net email is sponsored by:ThinkGeek > Welcome to geek heaven. > http://thinkgeek.com/sf > _______________________________________________ > Dynapi-Help mailing list > Dyn...@li... > https://lists.sourceforge.net/lists/listinfo/dynapi-help > > |
From: George A. <GAr...@co...> - 2003-09-22 20:31:20
|
thank for getting back to me so quickly .. i can use the example [1] because i think the DynAPI anchor script is already registering a function for window.onresize . "Leif W" <warp-9.9 @usa.net> To Sent by: <dyn...@li...> dynapi-help-admin cc @lists.sourceforg e.net Subject Re: [Dynapi-Help] onresize hook . 09/22/2003 03:44 PM Please respond to dynapi-help@lists .sourceforge.net I used some code like this [1], but it worked only in Mozilla 1.5 beta, Mozilla Firebird 0.6.1, and Opera 7.11. M$ says Internet Explorer 6 has all these fancy onresize[*|start|end] events[2], but it doesn't seem to work with a simple example like this, surprise surprise. [1] code window.onresize = function () { alert( 'window was resized!!' ); } [2] http://msdn.microsoft.com/workshop/author/dhtml/reference/objects/obj_window.asp Leif ----- Original Message ----- From: "George Ardeleanu" <GAr...@co...> To: <dyn...@li...> Sent: Monday, September 22, 2003 2:22 PM Subject: [Dynapi-Help] onresize hook . > > > > > hello everyone , > > i just started using the new dynapi 3.0 CVS version a couple of days ago . > i realized in my script i need to perform a function call every time the > user resizes the window to update some display elements . however , i cant > seem to find how to accomplish this . Looking through some the list's > archives i came across some emails how one can call Dynapi.onresize = > function(...) {...}; i cant seem to personally get this to work . is > there a different way to accomplish this in DynAPI 3 ? > > > thanks . > > george . > > > > ------------------------------------------------------- > This sf.net email is sponsored by:ThinkGeek > Welcome to geek heaven. > http://thinkgeek.com/sf > _______________________________________________ > Dynapi-Help mailing list > Dyn...@li... > https://lists.sourceforge.net/lists/listinfo/dynapi-help > > ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf _______________________________________________ Dynapi-Help mailing list Dyn...@li... https://lists.sourceforge.net/lists/listinfo/dynapi-help |
From: Raymond I. <xw...@ya...> - 2003-09-22 20:40:16
|
Use the onresize event listener: dynapi.document.addEventListener({ onresize : function(e){ var o = e.getSource(); // do some work here } }) -- Raymond Irving --- George Ardeleanu <GAr...@co...> wrote: > > > > > hello everyone , > > i just started using the new dynapi 3.0 CVS version > a couple of days ago . > i realized in my script i need to perform a function > call every time the > user resizes the window to update some display > elements . however , i cant > seem to find how to accomplish this . Looking > through some the list's > archives i came across some emails how one can call > Dynapi.onresize = > function(...) {...}; i cant seem to personally > get this to work . is > there a different way to accomplish this in DynAPI 3 > ? > > > thanks . > > george . > > > > ------------------------------------------------------- > This sf.net email is sponsored by:ThinkGeek > Welcome to geek heaven. > http://thinkgeek.com/sf > _______________________________________________ > Dynapi-Help mailing list > Dyn...@li... > https://lists.sourceforge.net/lists/listinfo/dynapi-help __________________________________ Do you Yahoo!? Yahoo! SiteBuilder - Free, easy-to-use web site design software http://sitebuilder.yahoo.com |
From: Leif W <war...@us...> - 2003-09-22 21:48:39
|
Does the dynapi.document.addEventListener work for a window resize? The initial programming requirement stated the use case of a window resize being the event to trigger some function [1]. I tried the code below [2] but it didn't seem to work. Got the error in the Mozilla Javascript Console: dynapi.document has no properties. Not sure if I'm doing something wrong. [1] Use case > > i realized in my script i need to perform a function > > call every time the > > user resizes the window to update some display [2] Code <SCRIPT LANGUAGE="JavaScript" SRC="../../dynapi3x/src/dynapi.js"> <SCRIPT LANGUAGE="JavaScript" TYPE="text/javascript"> dynapi.document.addEventListener({ onresize : function ( e ) { var o = e.getSource(); // do some work here alert( 'window was resized!!' ); } }) </SCRIPT> ----- Original Message ----- From: "Raymond Irving" <xw...@ya...> To: <dyn...@li...> Sent: Monday, September 22, 2003 4:40 PM Subject: Re: [Dynapi-Help] onresize hook . > > Use the onresize event listener: > > dynapi.document.addEventListener({ > onresize : function(e){ > var o = e.getSource(); > // do some work here > } > }) > > -- > Raymond Irving > > --- George Ardeleanu <GAr...@co...> > wrote: > > > > > > > > > > hello everyone , > > > > i just started using the new dynapi 3.0 CVS version > > a couple of days ago . > > i realized in my script i need to perform a function > > call every time the > > user resizes the window to update some display > > elements . however , i cant > > seem to find how to accomplish this . Looking > > through some the list's > > archives i came across some emails how one can call > > Dynapi.onresize = > > function(...) {...}; i cant seem to personally > > get this to work . is > > there a different way to accomplish this in DynAPI 3 > > ? > > > > > > thanks . > > > > george . > > > > > > > > > ------------------------------------------------------- > > This sf.net email is sponsored by:ThinkGeek > > Welcome to geek heaven. > > http://thinkgeek.com/sf > > _______________________________________________ > > Dynapi-Help mailing list > > Dyn...@li... > > > https://lists.sourceforge.net/lists/listinfo/dynapi-help > > > __________________________________ > Do you Yahoo!? > Yahoo! SiteBuilder - Free, easy-to-use web site design software > http://sitebuilder.yahoo.com > > > ------------------------------------------------------- > This sf.net email is sponsored by:ThinkGeek > Welcome to geek heaven. > http://thinkgeek.com/sf > _______________________________________________ > Dynapi-Help mailing list > Dyn...@li... > https://lists.sourceforge.net/lists/listinfo/dynapi-help > > |
From: George A. <GAr...@co...> - 2003-09-22 21:52:13
|
thank you .. this is exactly what i was looking for ... can this information be found in the documentation that comes along with DynAPI 3.0 beta ? thanks ! george . Raymond Irving <xw...@ya... m> To Sent by: dyn...@li... dynapi-help-admin cc @lists.sourceforg e.net Subject Re: [Dynapi-Help] onresize hook . 09/22/2003 04:40 PM Please respond to dynapi-help@lists .sourceforge.net Use the onresize event listener: dynapi.document.addEventListener({ onresize : function(e){ var o = e.getSource(); // do some work here } }) -- Raymond Irving --- George Ardeleanu <GAr...@co...> wrote: > > > > > hello everyone , > > i just started using the new dynapi 3.0 CVS version > a couple of days ago . > i realized in my script i need to perform a function > call every time the > user resizes the window to update some display > elements . however , i cant > seem to find how to accomplish this . Looking > through some the list's > archives i came across some emails how one can call > Dynapi.onresize = > function(...) {...}; i cant seem to personally > get this to work . is > there a different way to accomplish this in DynAPI 3 > ? > > > thanks . > > george . > > > > ------------------------------------------------------- > This sf.net email is sponsored by:ThinkGeek > Welcome to geek heaven. > http://thinkgeek.com/sf > _______________________________________________ > Dynapi-Help mailing list > Dyn...@li... > https://lists.sourceforge.net/lists/listinfo/dynapi-help __________________________________ Do you Yahoo!? Yahoo! SiteBuilder - Free, easy-to-use web site design software http://sitebuilder.yahoo.com ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf _______________________________________________ Dynapi-Help mailing list Dyn...@li... https://lists.sourceforge.net/lists/listinfo/dynapi-help |