From: David <dap...@10...> - 2004-11-12 12:25:57
|
Hi, Thanks for your answer. I realise its not a great place to put the file but I just wanted to get it working first, then I can move the file. I added the line you suggested. Slider = {}; // used by dynapi.library It doesn't seem to make any difference. I added an alert at the top of the page, but no alert gets called , could suggest that the file isnt even getting added. I can give you a link to the code can I send to you personally I don't really want to share with the world. David > -----Original Message----- > From: David Appledore [ <mailto:dap...@50...> mailto:dap...@50...] > Sent: 12 November 2004 08:39 > To: 'David Appledore' > Subject: FW: [Dynapi-Help] including other files in a package > > > > -----Original Message----- > From: dyn...@li... > [ <mailto:dyn...@li...> mailto:dyn...@li...] On Behalf Of Leif W > Sent: 12 November 2004 01:23 AM > To: dyn...@li... > Subject: Re: [Dynapi-Help] including other files in a package > > > > > ----- Original Message ----- > > From: "David Appledore" <dap...@10...> > > To: <dyn...@li...> > > Sent: Thursday, November 11, 2004 16:59 > > Subject: RE: [Dynapi-Help] including other files in a package > > > > > Hi, > > I am using DynAPI 3. The slider object is my own object > nothing to do > > with DynAPI . It's a wrapper around a DynLayer, it does use slider > > effect but from version 3 , Ive never used an earlier version. > > Oh, probably a name collision if someone else ports the old Slider > object. :p > > On second look, a package ... hmm, brush up on my package skills. > > A package (slider.js) seems to need this as the first line: > > Slider = {}; // used by dynapi.library > > Then extend an existing object like DynLayer, or make a new object. > Then put the file where it makes the most sense. If "Slider" > is some object that creates a sliding effect, it'd go into > "src/fx/slider.js". > If it lets you perform functions like arithmetic on a Slide Rule, > maybe it'd go in "src/ext/functions.slider.js". It doesn't seem to be > a good idea to clutter up the dynapi.* name space, as that is > typically reserved for folder names. > So pick another place, or make a "src/myext/slider.js" or > "src/da/slider.js" or something. > > Then in packages.js, you would put the l.add line. > > 1) Using "src/fx/slider.js" > > l.add('dynapi.fx.Slider','dynapi.fx.slider.js'); > > 2) Using "src/ext/functions.slider.js" > > l.add('dynapi.functions.Slider','functions.slider.js'); > > 3) Using "src/myext/slider.js" > > l.addPackage('dynapi.myext',p+'myext/'); > l.add('dynapi.myext.Slider','slider.js'); > > 4) Using "src/da/slider.js" > > l.addPackage('dynapi.da',p+'da/'); > l.add('dynapi.da.Slider','slider.js'); > > If you extended one object, you need a third argument, a string, > specifying which other layer is required if not already loaded. > > l.add('dynapi.myext.Slider','slider.js','DynLayer'); > > If you extended two or more objects, the third argument is an array: > > l.add('dynapi.myext.Slider','slider.js',['DynLayer','dynapi.fu > nctions.Ma > th']); > > So you started with: > > l.add('dynapi.Slider','ext/slider.js','DynLayer'); > > This is somewhat confusing. The only things in "src/ext" are > packages.js, generic utility functions to extend objects, the > library.js, and the debug.js. This should probably not be the place > to add stuff, unless added as "src/ext/functions.sliders.js", and only > if it's a generic utility object which operates on data type objects, > and so on. > > Other than that, the syntax should probably work, in a similar fashion > to "dynapi.debug". So that makes me wonder if the first line of your > "src/ext/slider.js" file is "Slider = {}; // used by dynapi.library". > > If you still can't find the problem, then try throwing in > "alert('here!');" lines to see where the script does and doesn't get > called. Look in JavaScript Console (Mozilla) or turn on script > debugging and error messages in IE or other browsers. If there's > still no luck, it might be helpful to post the code. The example > HTML, and the slider.js file. > Keeping it reasonably short and posting in the email (not as > attachment) is the safest bet. Otherwise post a URL to a live example > and a zip file download. > > Hope this (eventually) proves helpful. > > Leif > > > > -----Original Message----- > > > From: dyn...@li... > > > [ <mailto:dyn...@li...> mailto:dyn...@li...] On > Behalf Of Leif W > > Hmm, guess I replied to the wrong one somehow. :p > > > > Sent: 11 November 2004 08:53 PM > > > To: dyn...@li... > > > Subject: Re: [Dynapi-Help] including other files in a package > > > > > > > ----- Original Message ----- > > > > From: David > > > > To: dyn...@li... > > > > Sent: Thursday, November 11, 2004 13:26 > > > > Subject: [Dynapi-Help] including other files in a package > > > > > > > > hi, > > > > I have added the following line to packages.js > > > > l.add('dynapi.Slider','ext/slider.js','DynLayer'); > > > > > > I think the packages.js file refers to the new DynAPI 3. Are you > using > > > DynAPI 3? > > > > > > Are you referring to the Slider object (v2.0, 2001-06-26) > created by > > > Jeff Greenberg? The source code clearly states that it > was designed > for > > > DynAPI 2.5x. The two versions of DynAPI are not entirely > compatible. > > > > > > > but it doesnt seem to include the file . > > > > The slider.js file holds another object. > > > > Can you give me some advice on how to get it working? > > > > > > To use this object with DynAPI 3, the object will need to > be ported. > The > > > differences between version 2.5x and version 3.x are described in > the > > > dynapi3x/docs/changelog.html folder. > > > > > > Leif > > > > > > ------------------------------------------------------- > This SF.Net email is sponsored by: > Sybase ASE Linux Express Edition - download now for FREE LinuxWorld > Reader's Choice Award Winner for best database on Linux. > <http://ads.osdn.com/?ad_id=5588&alloc_id=12065&op=click> http://ads.osdn.com/?ad_id=5588&alloc_id=12065&op=click > _______________________________________________ > Dynapi-Help mailing list > Dyn...@li... > <https://lists.sourceforge.net/lists/listinfo/dynapi-help> https://lists.sourceforge.net/lists/listinfo/dynapi-help > > |
From: David <dap...@10...> - 2004-11-12 13:14:06
|
hi, I got it working by adding this at the bottom of the packages.js l.include('dynapi.myext'); thanks for your help David |
From: Alexander <al...@sp...> - 2004-11-12 13:16:44
|
-----Original Message----- From: dyn...@li... [mailto:dyn...@li...]On Behalf Of David Sent: Friday, November 12, 2004 3:11 PM To: dyn...@li... Subject: RE: [Dynapi-Help] including other files in a package hi, I got it working by adding this at the bottom of the packages.js l.include('dynapi.myext'); thanks for your help David |
From: Leif W <war...@us...> - 2004-11-12 13:46:54
|
Normally it's considered bad form to hijack another mailing list thread and change the subject to something totally unrelated. The proper way to unsubscribe from a SourceForge list is posted on the SourceForge site. It is also posted in the DynAPI mailing list archives as I have answered the question in the past. The URLs to those archives are on DynAPI's SourceForge site. I will post the unsubsrcibe process again. Note this will remove you from dynapi-help and dynapi-help-admin. The email from SourceForge (obtained by sending an email to dyn...@li... with subject "help" [without quotes]) explains how to unsubscribe by email. Send this command (as the subject line) to the same *-request* address. You need to know your password. If you lost your password, go to https://lists.sourceforge.net/lists/listinfo/dynapi-help and request your password to be sent to you. unsubscribe <password> [address] Unsubscribe from the mailing list. Your password must match the one you gave when you subscribed. If you are trying to unsubscribe from a different address than the one you subscribed from, you may specify it in the 'address' field. Leif |
From: Leif W <war...@us...> - 2004-11-12 15:58:31
|
> ----- Original Message ----- > From: David > To: dyn...@li... > Sent: Friday, November 12, 2004 08:10 > Subject: RE: [Dynapi-Help] including other files in a package > > hi, > I got it working by adding this at the bottom of the packages.js > l.include('dynapi.myext'); Hmm... are you including the object in the HTML page? It should be included there, not in ext/packages.js . Leif P.S. You can send a URL off-list if you like. |
From: Ronald <mu0...@bu...> - 2004-11-30 12:18:17
|
The following code works in Firefox, but not in IE. In Firefox the layer dissapears completely, in IE there is a blank area left. Am I doing something wrong? <html> <head> <script language="JavaScript" src="dyn.js"></script> </head> first line<br> <div id="progress"> second line<br> </div> third line<br> <br> <b>the above should look like this (the layer should be completely invisible):</b><br><br> first line<br> third line<br> <script language="Javascript"> <!-- var progress = DynLayer.getInline("progress"); progress.setVisible(false); progress.setHTML(""); //--> </script> </html> |
From: Leif W <war...@us...> - 2004-11-30 19:34:06
|
I've just tried in Firefox 1.0 and IE6. The example you gave was slightly broken and didn'twork in Firefox 1.0 or IE6 (need the *.setPath and *.include calls). I fixed that and it worked fine in Firefox 1.0 but it only half works in IE6. The text disappears in IE6, but the space that the layer occupies does not allow the restof the content to completely shrink, but rather leaves something as a place holder. If you comment out the setHTML line, it looks the same in Firefox as in IE6. I don't know why IE6 does this or how to work around. I wonder if this is related to the inline getVisible bug. Leif <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/1999/REC-html401-19991224/loose.dtd"> <html> <head> <script language="JavaScript" src="../../dynapi3x/src/dynapi.js" type="text/javascript"></script> <script language="JavaScript" type="text/javascript"> <!-- dynapi.library.setPath( '../../dynapi3x/src/' ); dynapi.library.include( 'dynapi.api' ); dynapi.library.include( 'dynapi.api.ext' ); //--> </script> </head> <body> first line<br> <div style="background-color: #009900" id="progress"> second line<br> </div> third line<br> <br> <b>the above should look like this (the layer should be completely invisible):</b><br> <br> first line<br> third line<br> <br> <b>It seems fine in Firefox 1.0.</b><br> <br> <b>However it only half works in IE6. The text isinvisible but there's still a <br>.</b><br> <br> first line<br> <br> third line<br> <script language="JavaScript" type="text/javascript"> <!-- var progress = DynLayer.getInline("progress"); progress.setVisible(0); //progress.setVisible(false); progress.setHTML(""); //progress.setHTML(null); //--> </script> </body> </html> ----- Original Message ----- From: "Ronald" <mu0...@bu...> To: <dyn...@li...> Sent: Tuesday, November 30, 2004 07:17 Subject: [Dynapi-Help] Making a inline layer dissapear completely (collapse) in IE > > The following code works in Firefox, but not in IE. In Firefox the layer dissapears completely, in > IE there is a blank area left. Am I doing something wrong? > > > <html> > <head> > <script language="JavaScript" src="dyn.js"></script> > </head> > > first line<br> > <div id="progress"> > second line<br> > </div> > third line<br> > > <br> > <b>the above should look like this (the layer should be completely invisible):</b><br><br> > > first line<br> > third line<br> > > <script language="Javascript"> > <!-- > var progress = DynLayer.getInline("progress"); > progress.setVisible(false); > progress.setHTML(""); > //--> > </script> > </html> > > > > ------------------------------------------------------- > SF email is sponsored by - The IT Product Guide > Read honest & candid reviews on hundreds of IT Products from real users. > Discover which products truly live up to the hype. Start reading now. > http://productguide.itmanagersjournal.com/ > _______________________________________________ > Dynapi-Help mailing list > Dyn...@li... > https://lists.sourceforge.net/lists/listinfo/dynapi-help > > |
From: <je...@6t...> - 2004-11-30 20:02:55
|
I think chaning the visibility makes it dissapear, but the browser still leaves room for it. I'm not sure the right DynAPI way to change it, but if I was doing it with straight CSS, I'd set "display:false". Good luck. Jesse > > The following code works in Firefox, but not in IE. In Firefox the layer > dissapears completely, in > IE there is a blank area left. Am I doing something wrong? > > > <html> > <head> > <script language="JavaScript" src="dyn.js"></script> > </head> > > first line<br> > <div id="progress"> > second line<br> > </div> > third line<br> > > <br> > <b>the above should look like this (the layer should be completely > invisible):</b><br><br> > > first line<br> > third line<br> > > <script language="Javascript"> > <!-- > var progress = DynLayer.getInline("progress"); > progress.setVisible(false); > progress.setHTML(""); > //--> > </script> > </html> > > > > ------------------------------------------------------- > SF email is sponsored by - The IT Product Guide > Read honest & candid reviews on hundreds of IT Products from real users. > Discover which products truly live up to the hype. Start reading now. > http://productguide.itmanagersjournal.com/ > _______________________________________________ > Dynapi-Help mailing list > Dyn...@li... > https://lists.sourceforge.net/lists/listinfo/dynapi-help > |
From: Arijit D. <ad...@pr...> - 2004-11-30 20:41:52
|
Hi All, I've been playing with this for a while for pet project, and found that there is no way to to get rid of a 1 pixel height in a div in IE. Here's what happens in IE: 1. If the div starts with no content and the height is 0 2. you add content and the height goes to the content height. 3. you remove content and the div height shrinks to 1 pixel, no matter what. I've tried setting the font size to 0, using a 0px height img, etc. and nothing works. Finally, I just incorporated the 1px height into my design. Here's what I had been working on, in case anyone wants to see the code: http://www.proteinmedia.com/main/0406/index.php Click on 'pictures' and 'words' to toggle content. It's pretty simple, but maybe it will help someone. Arijit -- protein.media.inc tel: 202.462.4700 cel: 202.441.0764 fax: 202.318.1176 eml: ad...@pr... web: http://www.proteinmedia.com je...@6t... wrote: > I think chaning the visibility makes it dissapear, but the browser still > leaves room for it. I'm not sure the right DynAPI way to change it, but > if I was doing it with straight CSS, I'd set "display:false". > > Good luck. > > Jesse > > >>The following code works in Firefox, but not in IE. In Firefox the layer >>dissapears completely, in >>IE there is a blank area left. Am I doing something wrong? >> >> >><html> >><head> >><script language="JavaScript" src="dyn.js"></script> >></head> >> >>first line<br> >><div id="progress"> >>second line<br> >></div> >>third line<br> >> >><br> >><b>the above should look like this (the layer should be completely >>invisible):</b><br><br> >> >>first line<br> >>third line<br> >> >><script language="Javascript"> >><!-- >>var progress = DynLayer.getInline("progress"); >>progress.setVisible(false); >>progress.setHTML(""); >>//--> >></script> >></html> >> >> >> >>------------------------------------------------------- >>SF email is sponsored by - The IT Product Guide >>Read honest & candid reviews on hundreds of IT Products from real users. >>Discover which products truly live up to the hype. Start reading now. >>http://productguide.itmanagersjournal.com/ >>_______________________________________________ >>Dynapi-Help mailing list >>Dyn...@li... >>https://lists.sourceforge.net/lists/listinfo/dynapi-help >> > > > > > ------------------------------------------------------- > SF email is sponsored by - The IT Product Guide > Read honest & candid reviews on hundreds of IT Products from real users. > Discover which products truly live up to the hype. Start reading now. > http://productguide.itmanagersjournal.com/ > _______________________________________________ > Dynapi-Help mailing list > Dyn...@li... > https://lists.sourceforge.net/lists/listinfo/dynapi-help > |
From: Adeola A. <awo...@ya...> - 2004-11-30 22:52:40
|
I would do the same as Jesse said by setting 'display: none' using javascript to set the css style property: document.layer.style.display = none; Adeola. Arijit Das wrote: > Hi All, > > I've been playing with this for a while for pet project, and found that > there is no way to to get rid of a 1 pixel height in a div in IE. > > Here's what happens in IE: > 1. If the div starts with no content and the height is 0 > 2. you add content and the height goes to the content height. > 3. you remove content and the div height shrinks to 1 pixel, no matter > what. > > I've tried setting the font size to 0, using a 0px height img, etc. and > nothing works. Finally, I just incorporated the 1px height into my design. > > Here's what I had been working on, in case anyone wants to see the code: > http://www.proteinmedia.com/main/0406/index.php > > Click on 'pictures' and 'words' to toggle content. It's pretty simple, > but maybe it will help someone. > > Arijit |
From: Leif W <war...@us...> - 2004-11-30 23:25:34
|
The DynAPI does it different. Maybe things have changed since the days when this worked, or maybe never worked, I dunno. api/dynlayer_base.js; 210-216 p.setVisible = function(b) { //! Overwritten by NS4 //if (b!=this.visible) { this.visible = b; if (this.css) this.css.visibility = b? "inherit" : "hidden"; //} }; api/dynlayer_ns4.js; 209-214 p.setVisible = function(b) { if (b!=this.visible) { this.visible = b; if (this.css) this.css.visibility = b? "inherit" : "hide"; } }; Perhaps it would help to toggle both the display (none, 'previous') and visibility (hidden, visible, or 'previous' for the non-standard CSS) properties, if they exist. If these differ for each browser now, maybe we can just add browser specific versions to each browser specific file (_ie, _ns4, _dom or new _mozilla, _opera, _etc. if needed). About the 1px IE problem, I don't know how ugly this is, but is there ever a condition where a layer does in fact have a zero height? For IE, maybe we could just create a dummy blank layer, and use it whenever we need or want size zero. Otherwise, as suggested, we don't fix but just plan the design work accordingly, and have a note to this effect in the docs and example page. I don't like that option so much, but well there's only so much you can do sometimes when a browser doesn't do what you hoped. Leif ----- Original Message ----- From: "Adeola Awoyemi" <awo...@ya...> To: <dyn...@li...> Sent: Tuesday, November 30, 2004 17:55 Subject: Re: [Dynapi-Help] Making a inline layer dissapear completely (collapse) in IE > I would do the same as Jesse said by setting 'display: none' using > javascript to set the css style property: > > document.layer.style.display = none; > > Adeola. > > Arijit Das wrote: > > Hi All, > > > > I've been playing with this for a while for pet project, and found that > > there is no way to to get rid of a 1 pixel height in a div in IE. > > > > Here's what happens in IE: > > 1. If the div starts with no content and the height is 0 > > 2. you add content and the height goes to the content height. > > 3. you remove content and the div height shrinks to 1 pixel, no matter > > what. > > > > I've tried setting the font size to 0, using a 0px height img, etc. and > > nothing works. Finally, I just incorporated the 1px height into my design. > > > > Here's what I had been working on, in case anyone wants to see the code: > > http://www.proteinmedia.com/main/0406/index.php > > > > Click on 'pictures' and 'words' to toggle content. It's pretty simple, > > but maybe it will help someone. > > > > Arijit > > > > ------------------------------------------------------- > SF email is sponsored by - The IT Product Guide > Read honest & candid reviews on hundreds of IT Products from real users. > Discover which products truly live up to the hype. Start reading now. > http://productguide.itmanagersjournal.com/ > _______________________________________________ > Dynapi-Help mailing list > Dyn...@li... > https://lists.sourceforge.net/lists/listinfo/dynapi-help > > |
From: <je...@6t...> - 2004-11-30 20:03:58
|
Sorry, my last email said "display:false" and it should be "display:none". http://www.w3schools.com/css/css_reference.asp Jesse > > The following code works in Firefox, but not in IE. In Firefox the layer > dissapears completely, in > IE there is a blank area left. Am I doing something wrong? > > > <html> > <head> > <script language="JavaScript" src="dyn.js"></script> > </head> > > first line<br> > <div id="progress"> > second line<br> > </div> > third line<br> > > <br> > <b>the above should look like this (the layer should be completely > invisible):</b><br><br> > > first line<br> > third line<br> > > <script language="Javascript"> > <!-- > var progress = DynLayer.getInline("progress"); > progress.setVisible(false); > progress.setHTML(""); > //--> > </script> > </html> > > > > ------------------------------------------------------- > SF email is sponsored by - The IT Product Guide > Read honest & candid reviews on hundreds of IT Products from real users. > Discover which products truly live up to the hype. Start reading now. > http://productguide.itmanagersjournal.com/ > _______________________________________________ > Dynapi-Help mailing list > Dyn...@li... > https://lists.sourceforge.net/lists/listinfo/dynapi-help > |