From: Pascal B. <pb...@oi...> - 2000-11-29 08:11:52
|
it's on my list of todo's :) Pascal Bestebroer pb...@oi... http://www.oibv.com -----Oorspronkelijk bericht----- Van: dyn...@li... [mailto:dyn...@li...]Namens Scott Andrew LePera Verzonden: woensdag 29 november 2000 8:52 Aan: dyn...@li... Onderwerp: Re: [Dynapi-Help] new to DynApi 2 Yeah, but that's pretty old, though :-) You can probably hack it for your own purposes, though. To the issue of DynLayers having "focus"...you can simulate that by creating a focus manager object. A focus manager has an array that holds DynLayers you assign to it to manage. Then, all you have to do is decide what user actions give a DynLayer focus. For example, you can assign a mousedown eventlistener to a DynLayer that invokes a focus event on the DynLayer. Invoking focus on a DynLayer acitvates the focus manager. The focus manager first checks it's array of DynLayers to make sure it's responsible for the one that was clicked on, then assigns that layer to the "currently focused item" property. So if you want to know which DynLayer has focus, you just get it from the focus manager, something like "FocusManager.currentItem" or something. Okay, somebody build it. -- scott andrew lepera ----------------------------------- web stuff: www.scottandrew.com music stuff: www.walkingbirds.com "Richard :o)" wrote: > > hi, > Scott has a keypress widget here: > http://www.scottandrew.com/dhtml/docs/ > cheers, > Richard:o) > > ----- Original Message ----- > From: "Abel Eduardo Cantú Salas" <abe...@al...> > To: <dyn...@li...> > Sent: Tuesday, November 28, 2000 7:47 PM > Subject: RE: [Dynapi-Help] new to DynApi 2 > > > im in the same situation. We need some more documentation however, i > assume > > we all are very busy people... We have troubles. > > > > well, right now im wondering how to capture keyboard events (using an > > structure similar to events.js) and how to manage (if it is posible) the > > onfocus event... Actually i don't know how to generate onfocus event using > > the cursor arrows, as long as i know, theres no way in wich a DynLayer can > > receive focus. > > > > i remember a tutorial for DynApi that describes the ways of capturing > > keyboard events (im going to it right now)... but what about onfocus? > > somebody can giveme any reference? > > > > thanks!. > > > > -----Original Message----- > > From: dyn...@li... > > [mailto:dyn...@li...]On Behalf Of Dave > > Rattray > > Sent: Martes, 28 de Noviembre de 2000 06:46 a.m. > > To: dyn...@li... > > Subject: [Dynapi-Help] new to DynApi 2 > > > > > > I'm new to this version of DynApi and am having trouble getting to grips > > with it. I downloaded the link that Dan provided: > > > > http://fury161.dyndns.org/dynapi-2000.11.07-danwidgets.zip > > > > but didn't see any clear cut files showing me Scrollpane, Scrollbar, > Button, > > Label, ButtonImage and PushPanel. Am I overlooking something? Can someone > > point me in the right direction. > > > > I found the tutorials on dansteinman.com for the original DynAPI dynlayer > > very useful in learning everything but have not found anything like that > so > > far for DynAPI 2. > > > > I need help basically in the knowledge of how images are swapped in this > new > > version within layers and how to do the scroll window. > > > > Help?! > > > > > > _______________________________________________ > > Dynapi-Help mailing list > > Dyn...@li... > > http://lists.sourceforge.net/mailman/listinfo/dynapi-help > > ____________________________________________________________ > > Get your FREE personal .com domain name and > > NAMEzero Personal Portal at: http://www.namezero.com. > > For customer service, mailto:cus...@na.... > > > > > > _______________________________________________ > Dynapi-Help mailing list > Dyn...@li... > http://lists.sourceforge.net/mailman/listinfo/dynapi-help _______________________________________________ Dynapi-Help mailing list Dyn...@li... http://lists.sourceforge.net/mailman/listinfo/dynapi-help |
From: <abe...@al...> - 2000-11-29 18:23:18
|
relative to the management of keystrokes events in events.js ------------------------------------------------------------ ok for now im doing little changes to event.js: i'd changed the captureMouseEvents DynLayer.prototype.captureMouseEvents=function() { if (!this.eventListeners) this.eventListeners=[] this.hasEventListeners=true if (!this.created) return false var elm=this.elm //--******-- if (is.ns4) elm.captureEvents(Event.KEYDOWN | Event.MOUSEDOWN | Event.MOUSEUP | Event.CLICK | Event.DBLCLICK) elm.onkeypress=elm.onfocus=elm.onblur=elm.onmousedown=elm.onmouseup= elm.onmouseover=elm.onmouseout=elm.onclick=elm.ondblclick= DynLayer.prototype.EventMethod //--******-- if (is.ie5) this.elm.oncontextmenu=function() {return false} } it seems to work correctly in IE. However, on netscape (4.7) the onkeypress event never arises an the use of alert() inside the onfocus event handler causes an infinite loop :b Another problem that remains (in both browsers) is: The only way in which focus is triggered is thru a click, it is not possible to arise this event with the use of tab -> tab -> tab keys. however i think this will do the job: <a href="#" onclick="return false;" onfocus="document...layer.focus();"> <div id="layer" ...> </a> but looking at the DynLayer.createElement method, i just can't figure out how to put an <a> tag working in conjunction with the element being created without afecting the behavior of those DynLayers who don't need this anchor... Is it posible to overwrite the createElement method in a derived class? i thougt so... im trying it right now. Any suggestions, thanks! -----Original Message----- From: dyn...@li... [mailto:dyn...@li...]On Behalf Of Pascal Bestebroer Sent: Miércoles, 29 de Noviembre de 2000 02:12 a.m. To: dyn...@li... Subject: RE: [Dynapi-Help] new to DynApi 2 it's on my list of todo's :) Pascal Bestebroer pb...@oi... http://www.oibv.com -----Oorspronkelijk bericht----- Van: dyn...@li... [mailto:dyn...@li...]Namens Scott Andrew LePera Verzonden: woensdag 29 november 2000 8:52 Aan: dyn...@li... Onderwerp: Re: [Dynapi-Help] new to DynApi 2 Yeah, but that's pretty old, though :-) You can probably hack it for your own purposes, though. To the issue of DynLayers having "focus"...you can simulate that by creating a focus manager object. A focus manager has an array that holds DynLayers you assign to it to manage. Then, all you have to do is decide what user actions give a DynLayer focus. For example, you can assign a mousedown eventlistener to a DynLayer that invokes a focus event on the DynLayer. Invoking focus on a DynLayer acitvates the focus manager. The focus manager first checks it's array of DynLayers to make sure it's responsible for the one that was clicked on, then assigns that layer to the "currently focused item" property. So if you want to know which DynLayer has focus, you just get it from the focus manager, something like "FocusManager.currentItem" or something. Okay, somebody build it. -- scott andrew lepera ----------------------------------- web stuff: www.scottandrew.com music stuff: www.walkingbirds.com "Richard :o)" wrote: > > hi, > Scott has a keypress widget here: > http://www.scottandrew.com/dhtml/docs/ > cheers, > Richard:o) > > ----- Original Message ----- > From: "Abel Eduardo Cantú Salas" <abe...@al...> > To: <dyn...@li...> > Sent: Tuesday, November 28, 2000 7:47 PM > Subject: RE: [Dynapi-Help] new to DynApi 2 > > > im in the same situation. We need some more documentation however, i > assume > > we all are very busy people... We have troubles. > > > > well, right now im wondering how to capture keyboard events (using an > > structure similar to events.js) and how to manage (if it is posible) the > > onfocus event... Actually i don't know how to generate onfocus event using > > the cursor arrows, as long as i know, theres no way in wich a DynLayer can > > receive focus. > > > > i remember a tutorial for DynApi that describes the ways of capturing > > keyboard events (im going to it right now)... but what about onfocus? > > somebody can giveme any reference? > > > > thanks!. > > > > -----Original Message----- > > From: dyn...@li... > > [mailto:dyn...@li...]On Behalf Of Dave > > Rattray > > Sent: Martes, 28 de Noviembre de 2000 06:46 a.m. > > To: dyn...@li... > > Subject: [Dynapi-Help] new to DynApi 2 > > > > > > I'm new to this version of DynApi and am having trouble getting to grips > > with it. I downloaded the link that Dan provided: > > > > http://fury161.dyndns.org/dynapi-2000.11.07-danwidgets.zip > > > > but didn't see any clear cut files showing me Scrollpane, Scrollbar, > Button, > > Label, ButtonImage and PushPanel. Am I overlooking something? Can someone > > point me in the right direction. > > > > I found the tutorials on dansteinman.com for the original DynAPI dynlayer > > very useful in learning everything but have not found anything like that > so > > far for DynAPI 2. > > > > I need help basically in the knowledge of how images are swapped in this > new > > version within layers and how to do the scroll window. > > > > Help?! > > > > > > _______________________________________________ > > Dynapi-Help mailing list > > Dyn...@li... > > http://lists.sourceforge.net/mailman/listinfo/dynapi-help > > ____________________________________________________________ > > Get your FREE personal .com domain name and > > NAMEzero Personal Portal at: http://www.namezero.com. > > For customer service, mailto:cus...@na.... > > > > > > _______________________________________________ > Dynapi-Help mailing list > Dyn...@li... > http://lists.sourceforge.net/mailman/listinfo/dynapi-help _______________________________________________ Dynapi-Help mailing list Dyn...@li... http://lists.sourceforge.net/mailman/listinfo/dynapi-help _______________________________________________ Dynapi-Help mailing list Dyn...@li... http://lists.sourceforge.net/mailman/listinfo/dynapi-help |
From: Bill W. <bi...@my...> - 2000-11-29 21:18:13
|
Why would you use this syntax, with href="#": <a href="#" onclick="return false;" onfocus="document...layer.focus();"> <div id="layer" ...> </a> Rather than with href="javascript:void(null)": <a href="javascript:void(null)" onclick="return false;" onfocus="document...layer.focus();"> <div id="layer" ...> </a> ? -----Original Message----- From: dyn...@li... [mailto:dyn...@li...]On Behalf Of Abel Eduardo Cantú Salas Sent: Wednesday, November 29, 2000 10:26 AM To: dyn...@li... Subject: RE: [Dynapi-Help] events.js relative to the management of keystrokes events in events.js ------------------------------------------------------------ ok for now im doing little changes to event.js: i'd changed the captureMouseEvents DynLayer.prototype.captureMouseEvents=function() { if (!this.eventListeners) this.eventListeners=[] this.hasEventListeners=true if (!this.created) return false var elm=this.elm //--******-- if (is.ns4) elm.captureEvents(Event.KEYDOWN | Event.MOUSEDOWN | Event.MOUSEUP | Event.CLICK | Event.DBLCLICK) elm.onkeypress=elm.onfocus=elm.onblur=elm.onmousedown=elm.onmouseup= elm.onmouseover=elm.onmouseout=elm.onclick=elm.ondblclick= DynLayer.prototype.EventMethod //--******-- if (is.ie5) this.elm.oncontextmenu=function() {return false} } it seems to work correctly in IE. However, on netscape (4.7) the onkeypress event never arises an the use of alert() inside the onfocus event handler causes an infinite loop :b Another problem that remains (in both browsers) is: The only way in which focus is triggered is thru a click, it is not possible to arise this event with the use of tab -> tab -> tab keys. however i think this will do the job: <a href="#" onclick="return false;" onfocus="document...layer.focus();"> <div id="layer" ...> </a> but looking at the DynLayer.createElement method, i just can't figure out how to put an <a> tag working in conjunction with the element being created without afecting the behavior of those DynLayers who don't need this anchor... Is it posible to overwrite the createElement method in a derived class? i thougt so... im trying it right now. Any suggestions, thanks! -----Original Message----- From: dyn...@li... [mailto:dyn...@li...]On Behalf Of Pascal Bestebroer Sent: Miércoles, 29 de Noviembre de 2000 02:12 a.m. To: dyn...@li... Subject: RE: [Dynapi-Help] new to DynApi 2 it's on my list of todo's :) Pascal Bestebroer pb...@oi... http://www.oibv.com -----Oorspronkelijk bericht----- Van: dyn...@li... [mailto:dyn...@li...]Namens Scott Andrew LePera Verzonden: woensdag 29 november 2000 8:52 Aan: dyn...@li... Onderwerp: Re: [Dynapi-Help] new to DynApi 2 Yeah, but that's pretty old, though :-) You can probably hack it for your own purposes, though. To the issue of DynLayers having "focus"...you can simulate that by creating a focus manager object. A focus manager has an array that holds DynLayers you assign to it to manage. Then, all you have to do is decide what user actions give a DynLayer focus. For example, you can assign a mousedown eventlistener to a DynLayer that invokes a focus event on the DynLayer. Invoking focus on a DynLayer acitvates the focus manager. The focus manager first checks it's array of DynLayers to make sure it's responsible for the one that was clicked on, then assigns that layer to the "currently focused item" property. So if you want to know which DynLayer has focus, you just get it from the focus manager, something like "FocusManager.currentItem" or something. Okay, somebody build it. -- scott andrew lepera ----------------------------------- web stuff: www.scottandrew.com music stuff: www.walkingbirds.com "Richard :o)" wrote: > > hi, > Scott has a keypress widget here: > http://www.scottandrew.com/dhtml/docs/ > cheers, > Richard:o) > > ----- Original Message ----- > From: "Abel Eduardo Cantú Salas" <abe...@al...> > To: <dyn...@li...> > Sent: Tuesday, November 28, 2000 7:47 PM > Subject: RE: [Dynapi-Help] new to DynApi 2 > > > im in the same situation. We need some more documentation however, i > assume > > we all are very busy people... We have troubles. > > > > well, right now im wondering how to capture keyboard events (using an > > structure similar to events.js) and how to manage (if it is posible) the > > onfocus event... Actually i don't know how to generate onfocus event using > > the cursor arrows, as long as i know, theres no way in wich a DynLayer can > > receive focus. > > > > i remember a tutorial for DynApi that describes the ways of capturing > > keyboard events (im going to it right now)... but what about onfocus? > > somebody can giveme any reference? > > > > thanks!. > > > > -----Original Message----- > > From: dyn...@li... > > [mailto:dyn...@li...]On Behalf Of Dave > > Rattray > > Sent: Martes, 28 de Noviembre de 2000 06:46 a.m. > > To: dyn...@li... > > Subject: [Dynapi-Help] new to DynApi 2 > > > > > > I'm new to this version of DynApi and am having trouble getting to grips > > with it. I downloaded the link that Dan provided: > > > > http://fury161.dyndns.org/dynapi-2000.11.07-danwidgets.zip > > > > but didn't see any clear cut files showing me Scrollpane, Scrollbar, > Button, > > Label, ButtonImage and PushPanel. Am I overlooking something? Can someone > > point me in the right direction. > > > > I found the tutorials on dansteinman.com for the original DynAPI dynlayer > > very useful in learning everything but have not found anything like that > so > > far for DynAPI 2. > > > > I need help basically in the knowledge of how images are swapped in this > new > > version within layers and how to do the scroll window. > > > > Help?! > > > > > > _______________________________________________ > > Dynapi-Help mailing list > > Dyn...@li... > > http://lists.sourceforge.net/mailman/listinfo/dynapi-help > > ____________________________________________________________ > > Get your FREE personal .com domain name and > > NAMEzero Personal Portal at: http://www.namezero.com. > > For customer service, mailto:cus...@na.... > > > > > > _______________________________________________ > Dynapi-Help mailing list > Dyn...@li... > http://lists.sourceforge.net/mailman/listinfo/dynapi-help _______________________________________________ Dynapi-Help mailing list Dyn...@li... http://lists.sourceforge.net/mailman/listinfo/dynapi-help _______________________________________________ Dynapi-Help mailing list Dyn...@li... http://lists.sourceforge.net/mailman/listinfo/dynapi-help |
From: Scott A. L. <sc...@sc...> - 2000-11-29 23:21:38
|
Well, for one, I think the use of "javascript:" as a protocol is deprecated, but I'm not sure. Second, using "javascript:" has unintended side effects. For example, it will freeze animated GIFs. If someone clicks the link while a script is being loaded, the browser will abort loading the script. I've also noticed that "javascript:" links take longer to execute. The browser sometimes hangs for several seconds. There's a few more problems I saw posted on another DHTML list, but I can't find them. The general agreement was that using onclick is safer. -- scott andrew lepera ----------------------------------- web stuff: www.scottandrew.com music stuff: www.walkingbirds.com Bill Wesley wrote: > > Why would you use this syntax, with href="#": > > <a href="#" onclick="return false;" onfocus="document...layer.focus();"> > <div id="layer" ...> > </a> > > Rather than with href="javascript:void(null)": > > <a href="javascript:void(null)" onclick="return false;" > onfocus="document...layer.focus();"> > <div id="layer" ...> > </a> > > ? > |
From: Brandon M. <bnd...@ho...> - 2000-12-12 06:26:23
|
There are some benifits to using javascript: protocol... all data returned is placed into the page.. so javascript:'<html><body><H1>HELLO</h1></body></HTML>' would simply replace the current page with the HTML in quotes. Functions are the same, the return value of the function is also set as the source of the page. So.. dynamic javascript/html.. whatever... can be placed here... together with a target.. someone could generate dynamic script to be evaluated in an outside window or frame. This has some practical applications... Just a thought to knaw on. -----Original Message----- From: dyn...@li... [mailto:dyn...@li...]On Behalf Of Scott Andrew LePera Sent: Wednesday, November 29, 2000 6:21 PM To: dyn...@li... Subject: Re: [Dynapi-Help] events.js Well, for one, I think the use of "javascript:" as a protocol is deprecated, but I'm not sure. Second, using "javascript:" has unintended side effects. For example, it will freeze animated GIFs. If someone clicks the link while a script is being loaded, the browser will abort loading the script. I've also noticed that "javascript:" links take longer to execute. The browser sometimes hangs for several seconds. There's a few more problems I saw posted on another DHTML list, but I can't find them. The general agreement was that using onclick is safer. -- scott andrew lepera ----------------------------------- web stuff: www.scottandrew.com music stuff: www.walkingbirds.com Bill Wesley wrote: > > Why would you use this syntax, with href="#": > > <a href="#" onclick="return false;" onfocus="document...layer.focus();"> > <div id="layer" ...> > </a> > > Rather than with href="javascript:void(null)": > > <a href="javascript:void(null)" onclick="return false;" > onfocus="document...layer.focus();"> > <div id="layer" ...> > </a> > > ? > _______________________________________________ Dynapi-Help mailing list Dyn...@li... http://lists.sourceforge.net/mailman/listinfo/dynapi-help |
From: <abe...@al...> - 2000-11-29 23:43:52
|
God! im really shamed! i use it just because my Sensei tolds me: "It works!" mhmmmm... well, I always use href="#" when the <a> tag is used just to manage events like mouseover, click, etc, on those objects that do not have their own events... and it works in both browsers. do you think this syntax can bring some problems? PS. There is no need to put the "return false" statement on the onclick event if you use href="#". -----Original Message----- From: dyn...@li... [mailto:dyn...@li...]On Behalf Of Bill Wesley Sent: Miércoles, 29 de Noviembre de 2000 03:18 p.m. To: dyn...@li... Subject: RE: [Dynapi-Help] events.js Why would you use this syntax, with href="#": <a href="#" onclick="return false;" onfocus="document...layer.focus();"> <div id="layer" ...> </a> Rather than with href="javascript:void(null)": <a href="javascript:void(null)" onclick="return false;" onfocus="document...layer.focus();"> <div id="layer" ...> </a> ? -----Original Message----- From: dyn...@li... [mailto:dyn...@li...]On Behalf Of Abel Eduardo Cantú Salas Sent: Wednesday, November 29, 2000 10:26 AM To: dyn...@li... Subject: RE: [Dynapi-Help] events.js relative to the management of keystrokes events in events.js ------------------------------------------------------------ ok for now im doing little changes to event.js: i'd changed the captureMouseEvents DynLayer.prototype.captureMouseEvents=function() { if (!this.eventListeners) this.eventListeners=[] this.hasEventListeners=true if (!this.created) return false var elm=this.elm //--******-- if (is.ns4) elm.captureEvents(Event.KEYDOWN | Event.MOUSEDOWN | Event.MOUSEUP | Event.CLICK | Event.DBLCLICK) elm.onkeypress=elm.onfocus=elm.onblur=elm.onmousedown=elm.onmouseup= elm.onmouseover=elm.onmouseout=elm.onclick=elm.ondblclick= DynLayer.prototype.EventMethod //--******-- if (is.ie5) this.elm.oncontextmenu=function() {return false} } it seems to work correctly in IE. However, on netscape (4.7) the onkeypress event never arises an the use of alert() inside the onfocus event handler causes an infinite loop :b Another problem that remains (in both browsers) is: The only way in which focus is triggered is thru a click, it is not possible to arise this event with the use of tab -> tab -> tab keys. however i think this will do the job: <a href="#" onclick="return false;" onfocus="document...layer.focus();"> <div id="layer" ...> </a> but looking at the DynLayer.createElement method, i just can't figure out how to put an <a> tag working in conjunction with the element being created without afecting the behavior of those DynLayers who don't need this anchor... Is it posible to overwrite the createElement method in a derived class? i thougt so... im trying it right now. Any suggestions, thanks! -----Original Message----- From: dyn...@li... [mailto:dyn...@li...]On Behalf Of Pascal Bestebroer Sent: Miércoles, 29 de Noviembre de 2000 02:12 a.m. To: dyn...@li... Subject: RE: [Dynapi-Help] new to DynApi 2 it's on my list of todo's :) Pascal Bestebroer pb...@oi... http://www.oibv.com -----Oorspronkelijk bericht----- Van: dyn...@li... [mailto:dyn...@li...]Namens Scott Andrew LePera Verzonden: woensdag 29 november 2000 8:52 Aan: dyn...@li... Onderwerp: Re: [Dynapi-Help] new to DynApi 2 Yeah, but that's pretty old, though :-) You can probably hack it for your own purposes, though. To the issue of DynLayers having "focus"...you can simulate that by creating a focus manager object. A focus manager has an array that holds DynLayers you assign to it to manage. Then, all you have to do is decide what user actions give a DynLayer focus. For example, you can assign a mousedown eventlistener to a DynLayer that invokes a focus event on the DynLayer. Invoking focus on a DynLayer acitvates the focus manager. The focus manager first checks it's array of DynLayers to make sure it's responsible for the one that was clicked on, then assigns that layer to the "currently focused item" property. So if you want to know which DynLayer has focus, you just get it from the focus manager, something like "FocusManager.currentItem" or something. Okay, somebody build it. -- scott andrew lepera ----------------------------------- web stuff: www.scottandrew.com music stuff: www.walkingbirds.com "Richard :o)" wrote: > > hi, > Scott has a keypress widget here: > http://www.scottandrew.com/dhtml/docs/ > cheers, > Richard:o) > > ----- Original Message ----- > From: "Abel Eduardo Cantú Salas" <abe...@al...> > To: <dyn...@li...> > Sent: Tuesday, November 28, 2000 7:47 PM > Subject: RE: [Dynapi-Help] new to DynApi 2 > > > im in the same situation. We need some more documentation however, i > assume > > we all are very busy people... We have troubles. > > > > well, right now im wondering how to capture keyboard events (using an > > structure similar to events.js) and how to manage (if it is posible) the > > onfocus event... Actually i don't know how to generate onfocus event using > > the cursor arrows, as long as i know, theres no way in wich a DynLayer can > > receive focus. > > > > i remember a tutorial for DynApi that describes the ways of capturing > > keyboard events (im going to it right now)... but what about onfocus? > > somebody can giveme any reference? > > > > thanks!. > > > > -----Original Message----- > > From: dyn...@li... > > [mailto:dyn...@li...]On Behalf Of Dave > > Rattray > > Sent: Martes, 28 de Noviembre de 2000 06:46 a.m. > > To: dyn...@li... > > Subject: [Dynapi-Help] new to DynApi 2 > > > > > > I'm new to this version of DynApi and am having trouble getting to grips > > with it. I downloaded the link that Dan provided: > > > > http://fury161.dyndns.org/dynapi-2000.11.07-danwidgets.zip > > > > but didn't see any clear cut files showing me Scrollpane, Scrollbar, > Button, > > Label, ButtonImage and PushPanel. Am I overlooking something? Can someone > > point me in the right direction. > > > > I found the tutorials on dansteinman.com for the original DynAPI dynlayer > > very useful in learning everything but have not found anything like that > so > > far for DynAPI 2. > > > > I need help basically in the knowledge of how images are swapped in this > new > > version within layers and how to do the scroll window. > > > > Help?! > > > > > > _______________________________________________ > > Dynapi-Help mailing list > > Dyn...@li... > > http://lists.sourceforge.net/mailman/listinfo/dynapi-help > > ____________________________________________________________ > > Get your FREE personal .com domain name and > > NAMEzero Personal Portal at: http://www.namezero.com. > > For customer service, mailto:cus...@na.... > > > > > > _______________________________________________ > Dynapi-Help mailing list > Dyn...@li... > http://lists.sourceforge.net/mailman/listinfo/dynapi-help _______________________________________________ Dynapi-Help mailing list Dyn...@li... http://lists.sourceforge.net/mailman/listinfo/dynapi-help _______________________________________________ Dynapi-Help mailing list Dyn...@li... http://lists.sourceforge.net/mailman/listinfo/dynapi-help _______________________________________________ Dynapi-Help mailing list Dyn...@li... http://lists.sourceforge.net/mailman/listinfo/dynapi-help |
From: Alexey M. <ma...@ca...> - 2000-11-30 16:08:42
|
> God! im really shamed! i use it just because my Sensei tolds me: "It works!" same as <table background=""> ;) points to index.html , but clears BG image in NN :) > mhmmmm... well, I always use href="#" when the <a> tag is used just to > > do you think this syntax can bring some problems? Yes , but only if: > PS. There is no need to put the "return false" statement on the onclick ^^^^^^^^ if you have not set "return false" :) It stops images from loading .. etc.etc. Malx |
From: b0n3z <b0...@go...> - 2000-11-30 00:16:11
|
First let me say - What an AWESOME piece of work for all of you that helped build DynAPI 2! Now for a newbie question: Can someone please tell me how to do Image Preloading? I'm using the dynapi2-16Sept2000 release as most of the examples seem to work for me. I'm using several core.gui.skinwindow.js for all the small windows on this site. It seems to be loading the images individually rather than from cache. If anyone has an example of this or could help - I would be greatfull. Here is the site in progress. (excuse the mess - it's a work in progress and I'm sure there are mistakes) http://www.gotapex.com/b0n3z Also If anyone can tell me how to put a scrollable auto-resizing width layer into a skinwindow. I'm have spent countless hours trying to learn. Here is an example so far: http://www.gotapex.com/b0n3z/test.html Hope to understand DynAPI 2 and Javascript as well as "the great ones" on here one day. thanks, Ken Jones b0...@go... ps - if anyone could help me on this - I would be greatfull and would return the favor some way. |
From: Richard :o\) <ma...@ri...> - 2000-12-01 01:34:28
|
Hi, You do need pre-loading, 'cause the buttons change very slowly. (Nice site BTW) I waited a little to respond hoping someone would give an example of the image and preloading object from DynAPI2, which I have not yet seen working. I do however have another solution: var mycount=0; DynAPI.onLoad=function() {preLoad()} function preLoad() { Load=new DynLayer(null,100,100,200,200) DynAPI.document.addChild(Load) //this is used to write "please wait" message pic1 = new Image(); pic1.onload = (is.ns4b) ? loadCheck() : loadCheck; pic1.src = "images/pic1.gif"; pic2 = new Image(); pic2.onload = (is.ns4b) ? loadCheck() : loadCheck; pic2.src = "images/pic2.gif"; //add all your images here... } function loadCheck() { mycount++; if(mycount == 2) { DynAPI.document.deleteChild(Load) showPage() //this replaces what is now in DynAPI.onLoad } else { if(mycount < 2) { Load.setHTML('<h4>Loading the Image '+(mycount)+' of 2 images...</h4>') }}} reference the images like this: picOne.setHTML('<img src="'+pic1.src+'" >') (although normally referenced images also show faster) You can see this working in this work-in-progress: http://sagar.richardinfo.com (choose one with dark background) On your second question I'm afraid I don't really understand what you want, do you want to insert a scrollbar, or dynamically resize the window, or is it a text wrap/nowrap problem? Richard:o) ----- Original Message ----- From: "b0n3z" <b0...@go...> To: <dyn...@li...> Sent: Thursday, November 30, 2000 1:17 AM Subject: [Dynapi-Help] Image Preloading & Scrolling content in Skinwindow? > First let me say - What an AWESOME piece of work for all of you that helped > build DynAPI 2! > > Now for a newbie question: > Can someone please tell me how to do Image Preloading? I'm using the > dynapi2-16Sept2000 release as most of the examples seem to work for me. I'm > using several core.gui.skinwindow.js for all the small windows on this site. > It seems to be loading the images individually rather than from cache. If > anyone has an example of this or could help - I would be greatfull. Here is > the site in progress. (excuse the mess - it's a work in progress and I'm > sure there are mistakes) http://www.gotapex.com/b0n3z > > Also If anyone can tell me how to put a scrollable auto-resizing width layer > into a skinwindow. I'm have spent countless hours trying to learn. Here is > an example so far: http://www.gotapex.com/b0n3z/test.html > > Hope to understand DynAPI 2 and Javascript as well as "the great ones" on > here one day. > > thanks, > > Ken Jones > b0...@go... > > ps - if anyone could help me on this - I would be greatfull and would return > the favor some way. > > > _______________________________________________ > Dynapi-Help mailing list > Dyn...@li... > http://lists.sourceforge.net/mailman/listinfo/dynapi-help > ____________________________________________________________ > Get your FREE personal .com domain name and > NAMEzero Personal Portal at: http://www.namezero.com. > For customer service, mailto:cus...@na.... > > |