From: Tarun R E. <ta...@we...> - 2000-10-26 16:50:21
|
Hey why dont you just use plain statically positioned inline layers with the content instead. Netscape then gives 'em good ol' scollbars. Most of the functionality of Dynlayers is already available to inline layers except for (a few) bugs regarding event capturing in nested layers |
From: yogaf <yo...@su...> - 2000-10-27 05:44:50
|
yi |
From: levan s. <sh...@ho...> - 2000-11-17 23:28:32
|
aechives page does not work. browser can not finde it _________________________________________________________________________ Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com. Share information about yourself, create your own public profile at http://profiles.msn.com. |
From: Luc T. <lth...@or...> - 2001-01-19 12:06:31
|
Hi ! I'm currently trying to apply dynamic stylesheets for font writing through a conventionnal document.write('<style type="text/css">'+mystyle+'</style>')... Then I get problems with IE4 and IE5 to use the font classes I defined. Is there a special way to apply dynamic styles with dynAPI 2? Is there already an object in the dyndocument which purpose is to define font styles ? Thanks for your help.... Luc |
From: Richard :o <ma...@ri...> - 2001-01-19 23:49:02
|
Not really, you can include one normally like this: <link rel=3D'stylesheet' type=3D'text/css' href=3D'spec.css' /> or with a document write in the beginning of the document, or you can = access some css properties directly for a layer after creation like = this: myLayer.css.padding=3D"4px"=20 although not all css attributes are available in all browsers. Now if you are using any of the "skin' widgets, the line: document.write('<script language=3D"Javascript" = src=3D"'+theme+'style.js"><'+'/'+'script>'); actually includes a .css file from the theme directory, and this can = give problems with conflicting names if you include a second yourself. Of course you can just put a little inline css in the head as well: <style>blah</style> Cheers, Richard :o ma...@ri... www.richardinfo.com (Everything running on, and ported to the 19/12/2000 snapshot of = DynAPI2) ----- Original Message -----=20 From: Luc THIBAULT=20 To: dyn...@li...=20 Sent: Friday, January 19, 2001 1:03 PM Subject: [Dynapi-Help] (no subject) Hi !=20 I'm currently trying to apply dynamic stylesheets for font writing = through a conventionnal document.write('<style = type=3D"text/css">'+mystyle+'</style>')...=20 Then I get problems with IE4 and IE5 to use the font classes I = defined.=20 Is there a special way to apply dynamic styles with dynAPI 2?=20 Is there already an object in the dyndocument which purpose is to = define font styles ?=20 Thanks for your help....=20 Luc |
From: Leon R. <le...@tw...> - 2001-01-25 07:59:05
|
confirm 581851=20 |
From: Chris L. <Chr...@pl...> - 2001-02-19 12:16:04
|
Has any one got any good methods for displaying tooltips for layers which contain just a background image. At the moment the best way I can think of is on a mouseover event to place a transparent layer over the top of the image layer. I then set the HTML of this new layer to an <IMG> tag with the src being a transparent gif. I then use the alt attribute of the img tag to get a tooltip to display. The problem I'm having is when I also try to pisk up on the click event for the layer. IE picks up this mouse click event with no problems but Netscape seems to be slightly inconsistent. Every now and then the click event does not get called. I am unable to see under what conditions the click event is ignored. I have tried invoking the event from the tooltip layer but this doesn't seem to alter the behaviour in Netscape. Does anyone have any other ideas/methods for showing tooltips but retaining the event listening for the mouseup event in Netscape Thanks Chris |
From: Michael P. <mp...@ph...> - 2001-02-19 12:28:05
|
place your tooltip so that it does not sit under the hot point of the mouse. Chris Lemon wrote: > Has any one got any good methods for displaying tooltips for layers which > contain just a background image. > > At the moment the best way I can think of is on a mouseover event to place a > transparent layer over the top of the image layer. I then set the HTML of > this new layer to an <IMG> tag with the src being a transparent gif. I then > use the alt attribute of the img tag to get a tooltip to display. > > The problem I'm having is when I also try to pisk up on the click event for > the layer. IE picks up this mouse click event with no problems but Netscape > seems to be slightly inconsistent. Every now and then the click event does > not get called. I am unable to see under what conditions the click event is > ignored. > > I have tried invoking the event from the tooltip layer but this doesn't seem > to alter the behaviour in Netscape. > > Does anyone have any other ideas/methods for showing tooltips but retaining > the event listening for the mouseup event in Netscape > > Thanks > > Chris > > _______________________________________________ > Dynapi-Help mailing list > Dyn...@li... > http://lists.sourceforge.net/lists/listinfo/dynapi-help -- Michael Pemberton mp...@ph... ICQ: 12107010 |
From: Richard B. <ma...@ri...> - 2001-02-19 13:32:55
|
Hi, Normally I think it would look better if you make the tooltip yourself, i.e. a layer which follows the mouse etc. But if you prefer tooltips that's ok. I'm not sure about using setBgImage AFAIK. (also check the faq on this) You CAN use setHTML, or DynImage. I put up an example of that here: Richard_Examples Images_with_ALT.html http://www.richardinfo.com/?menu=examples&node=1 Cheers, Richard Bennett ma...@ri... www.richardinfo.com (Everything running on, and ported to the 19/12/2000 snapshot of DynAPI2) Find the DynAPI faq here: http://sourceforge.net/docman/display_doc.php?docid=656&group_id=5757 Browse the mailinglist here: http://www.mail-archive.com/index.php3?hunt=dynapi ----- Original Message ----- From: "Chris Lemon" <Chr...@pl...> To: <dyn...@li...>; <Dyn...@li...> Sent: Monday, February 19, 2001 1:17 PM Subject: [Dynapi-Help] (no subject) > Has any one got any good methods for displaying tooltips for layers which > contain just a background image. > > At the moment the best way I can think of is on a mouseover event to place a > transparent layer over the top of the image layer. I then set the HTML of > this new layer to an <IMG> tag with the src being a transparent gif. I then > use the alt attribute of the img tag to get a tooltip to display. > > The problem I'm having is when I also try to pisk up on the click event for > the layer. IE picks up this mouse click event with no problems but Netscape > seems to be slightly inconsistent. Every now and then the click event does > not get called. I am unable to see under what conditions the click event is > ignored. > > I have tried invoking the event from the tooltip layer but this doesn't seem > to alter the behaviour in Netscape. > > Does anyone have any other ideas/methods for showing tooltips but retaining > the event listening for the mouseup event in Netscape > > Thanks > > Chris > > _______________________________________________ > Dynapi-Help mailing list > Dyn...@li... > http://lists.sourceforge.net/lists/listinfo/dynapi-help > ____________________________________________________________ > Get your free domain name and domain-based e-mail from > Namezero.com. New! Namezero Plus domains now available. > Find out more at: http://www.namezero.com > |
From: Richard B. <ma...@ri...> - 2001-02-19 14:06:11
|
I'm sorry, it seems this example is flawed, I posted before testing it properly. Richard. ----- Original Message ----- From: "Richard Bennett" <ma...@ri...> To: <dyn...@li...> Sent: Monday, February 19, 2001 2:30 PM Subject: Re: [Dynapi-Help] Tooltips (was: no subject) > Hi, > Normally I think it would look better if you make the tooltip yourself, i.e. > a layer which follows the mouse etc. > > But if you prefer tooltips that's ok. > I'm not sure about using setBgImage AFAIK. (also check the faq on this) > You CAN use setHTML, or DynImage. > I put up an example of that here: > > Richard_Examples > Images_with_ALT.html > http://www.richardinfo.com/?menu=examples&node=1 > > Cheers, > Richard Bennett > > ma...@ri... > www.richardinfo.com > (Everything running on, and ported to the 19/12/2000 snapshot of DynAPI2) > Find the DynAPI faq here: > http://sourceforge.net/docman/display_doc.php?docid=656&group_id=5757 > Browse the mailinglist here: > http://www.mail-archive.com/index.php3?hunt=dynapi > > ----- Original Message ----- > From: "Chris Lemon" <Chr...@pl...> > To: <dyn...@li...>; <Dyn...@li...> > Sent: Monday, February 19, 2001 1:17 PM > Subject: [Dynapi-Help] (no subject) > > > > Has any one got any good methods for displaying tooltips for layers which > > contain just a background image. > > > > At the moment the best way I can think of is on a mouseover event to place > a > > transparent layer over the top of the image layer. I then set the HTML of > > this new layer to an <IMG> tag with the src being a transparent gif. I > then > > use the alt attribute of the img tag to get a tooltip to display. > > > > The problem I'm having is when I also try to pisk up on the click event > for > > the layer. IE picks up this mouse click event with no problems but > Netscape > > seems to be slightly inconsistent. Every now and then the click event > does > > not get called. I am unable to see under what conditions the click event > is > > ignored. > > > > I have tried invoking the event from the tooltip layer but this doesn't > seem > > to alter the behaviour in Netscape. > > > > Does anyone have any other ideas/methods for showing tooltips but > retaining > > the event listening for the mouseup event in Netscape > > > > Thanks > > > > Chris > > > > _______________________________________________ > > Dynapi-Help mailing list > > Dyn...@li... > > http://lists.sourceforge.net/lists/listinfo/dynapi-help > > ____________________________________________________________ > > Get your free domain name and domain-based e-mail from > > Namezero.com. New! Namezero Plus domains now available. > > Find out more at: http://www.namezero.com > > > > > _______________________________________________ > Dynapi-Help mailing list > Dyn...@li... > http://lists.sourceforge.net/lists/listinfo/dynapi-help > ____________________________________________________________ > Get your free domain name and domain-based e-mail from > Namezero.com. New! Namezero Plus domains now available. > Find out more at: http://www.namezero.com > |
From: Doug M. <do...@cr...> - 2001-02-19 22:40:14
|
her's a tip. You are asking for help. therfore you should post to the help list. and only the help list. Just about everyone reads the dev list AND the hepl list. Posting to both is just spam.. ----- Original Message ----- From: "Chris Lemon" <Chr...@pl...> To: <dyn...@li...>; <Dyn...@li...> Sent: Monday, February 19, 2001 4:17 AM Subject: [Dynapi-Help] (no subject) > Has any one got any good methods for displaying tooltips for layers which > contain just a background image. > > At the moment the best way I can think of is on a mouseover event to place a > transparent layer over the top of the image layer. I then set the HTML of > this new layer to an <IMG> tag with the src being a transparent gif. I then > use the alt attribute of the img tag to get a tooltip to display. > > The problem I'm having is when I also try to pisk up on the click event for > the layer. IE picks up this mouse click event with no problems but Netscape > seems to be slightly inconsistent. Every now and then the click event does > not get called. I am unable to see under what conditions the click event is > ignored. > > I have tried invoking the event from the tooltip layer but this doesn't seem > to alter the behaviour in Netscape. > > Does anyone have any other ideas/methods for showing tooltips but retaining > the event listening for the mouseup event in Netscape > > Thanks > > Chris > > _______________________________________________ > Dynapi-Help mailing list > Dyn...@li... > http://lists.sourceforge.net/lists/listinfo/dynapi-help --- Outgoing mail is certified Virus Free by AVG Free Edition Download at: http://www.grisoft.com/html/us_index.cfm Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.231 / Virus Database: 112 - Release Date: 2/12/01 |
From: Terry V. <tva...@ei...> - 2001-03-01 20:51:39
|
I have tried and tried, before I go crazy can someone confirm an error in DynImage that makes it so you cant setImage to a dynimage layer unless before issuing the create you set the image? For example: This works: =-=-=-=- SNIP =-=-=-=- DynAPI.include('dynapi.gui.dynimage.js'); //for images DynAPI.onLoad = function() { interface = new Array(1); //Interface Image Array interface[0] = DynImage.getImage('images/background.gif'); myLayerPlayer = new DynImage() myLayerPlayer.setSize(32,32) myLayerPlayer.moveTo(242,162) myLayerPlayer.setZIndex(2) myLayerPlayer.setImage(interface[0]) DynAPI.document.addChild (myLayerPlayer) =-=-=-=- SNIP =-=-=-=- when this doesn't =-=-=-=- SNIP =-=-=-=- DynAPI.onLoad = function() { interface = new Array(1); //Interface Image Array interface[0] = DynImage.getImage('images/background.gif'); myLayerPlayer = new DynImage() myLayerPlayer.setSize(32,32) myLayerPlayer.moveTo(242,162) myLayerPlayer.setZIndex(2) DynAPI.document.addChild (myLayerPlayer) myLayerPlayer.setImage(interface[0]) =-=-=-=- SNIP =-=-=-=- is anyone aware of this an a work around? Right now I am faking it with a 1x1 trans gif. Thank you Terry *********************************************************************** This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. This footnote also confirms that this email message has been swept for the presence of computer viruses. *********************************************************************** |
From: Michael P. <mp...@ph...> - 2001-03-02 04:17:54
|
why don't you pass the image source when you create the dynimage? myLayerPlayer = new DynImage(interface[0]) also, as a note to all who read this, could people please stop sending posts with no subject line. it is annoying when trying to follow threads and they all keep being placed with posts from months ago. Terry Valladon wrote: > > > I have tried and tried, before I go crazy can someone confirm an error > in DynImage that makes it so you cant setImage to a dynimage layer > unless before issuing the create you set the image? For example: > > This works: > =-=-=-=- SNIP =-=-=-=- > DynAPI.include('dynapi.gui.dynimage.js'); //for images > DynAPI.onLoad = function() { > interface = new Array(1); //Interface > Image Array > interface[0] = > DynImage.getImage('images/background.gif'); > myLayerPlayer = new DynImage() > myLayerPlayersetSize(32,32) > myLayerPlayermoveTo(242,162) > myLayerPlayersetZIndex(2) > myLayerPlayersetImage(interface[0]) > DynAPI.document.addChild (myLayerPlayer) > =-=-=-=- SNIP =-=-=-=- > > when this doesn't > > =-=-=-=- SNIP =-=-=-=- > DynAPI.onLoad = function() { > interface = new Array(1); //Interface > Image Array > interface[0] = > DynImage.getImage('images/background.gif'); > myLayerPlayer = new DynImage() > myLayerPlayersetSize(32,32) > myLayerPlayermoveTo(242,162) > myLayerPlayersetZIndex(2) > DynAPI.document.addChild (myLayerPlayer) > myLayerPlayersetImage(interface[0]) > =-=-=-=- SNIP =-=-=-=- > > is anyone aware of this an a work around? Right now I am faking it > with a 1x1 trans gif. > > Thank you > Terry > > > * > ********************************************************************* > This email and any files transmitted with it are confidential and > intended solely for the use of the individual or entity to whom > they are addressed. This footnote also confirms that this email > message has been swept for the presence of computer viruses. > > ********************************************************************** -- Michael Pemberton mp...@ph... ICQ: 12107010 |
From: Doug M. <do...@cr...> - 2001-03-12 21:57:58
|
is there a better way to determine an objects position in an array other = than the below code? for (var i=3D0;i < tempNode.parentNode.nodes.length;i++){ if (tempNode.parentNode.nodes[i]=3D=3D=3DtempNode){ index=3Di; i=3DtempNode.parentNode.nodes.length; }; }; --- Outgoing mail is certified Virus Free by AVG Free Edition Download at: http://www.grisoft.com/html/us_index.cfm Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.237 / Virus Database: 115 - Release Date: 3/7/01 |
From: Matthew A. S. <ms...@go...> - 2001-03-12 22:12:08
|
To avoid using loop searches like this I have used the idea of lookup tables to help with locating something that I am looking for. I would have basically two arrays: lookup["a"] = 0 lookup["b"] = 1 lookup["c"] = 2 objectA.name = "a"; object[0] = objectA; objectB.name = "b"; object[1] = objectB; objectC.name = "c"; object[2] = objectC; so if I wand to find objectB I look for it by a given name. I just use "b" here. to get objectB's index I just return: i = lookup["b"]; if I actually just want the object then I do: o = object[lookup["b"]]; I also store the name with the object itself so that it can internally determine it's position if needed. I am not certain that I have explained this well. I am also not certain this is more efficient than looping through the array. For all I know that's what JS does when you use arrays with named indexes... But this seems to work really well for me. Any input would be appreciated though. M. -----Original Message----- From: dyn...@li... [mailto:dyn...@li...]On Behalf Of Doug Melvin Sent: Monday, March 12, 2001 4:57 PM To: dynapi-help Subject: [Dynapi-Help] (no subject) is there a better way to determine an objects position in an array other than the below code? for (var i=0;i < tempNode.parentNode.nodes.length;i++){ if (tempNode.parentNode.nodes[i]===tempNode){ index=i; i=tempNode.parentNode.nodes.length; }; }; --- Outgoing mail is certified Virus Free by AVG Free Edition Download at: http://www.grisoft.com/html/us_index.cfm Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.237 / Virus Database: 115 - Release Date: 3/7/01 |
From: Chun W. C. <c2...@ya...> - 2001-03-13 14:21:48
|
Hi Richard: Thanks for the reply, the problem is that my code doesn't have the continuous feeling of a normal scroller does. You can take a look at the link of my previous email to see if you don't know what I mean. I know it works in NS 6 and IE 5.5, but it just kinda come up and instantly come down. What I want to do is to have the message to come up and when it reach the top, it kinda disappear by keep on going up and at the mean time, some other text is going up from the bottom of the layer. I try to put the thread layer inside another normal layer, but nothing appears after I do that? Another problem is that do anyone know there exist some alignment problem of NS6, because some content of my website has shift now in NS6, anyone know why? Again, thanks. Herman _______________________________________________________ Do You Yahoo!? Get your free @yahoo.ca address at http://mail.yahoo.ca |
From: Michael T. <Mic...@pl...> - 2001-03-23 12:25:52
|
Hi, Does anyone know why the Test() function is not called in the following under NS4.5/4.76 : function Test( rImage ) { alert( "Test : " + rImage.src ); } DynAPI.onLoad=function() { var rLayer1 = new DynLayer( null, 0, 0, 100, 100, '#c0c0c0' ); var rLayer2 = new DynLayer( null, 110, 110, 100, 100, '#000000' ); DynAPI.document.addChild( rLayer1 ); DynAPI.document.addChild( rLayer2 ); rLayer1.setHTML( "<IMG src='pix/DecoratorPix/loading2.gif' width='100' height='100' onload='Test(this)'>" ); } If I comment out the line that adds layer2 to the document the function is called. Thanks Mike.. |
From: Eytan H. <ey...@tr...> - 2001-03-23 12:47:09
|
Did some testing about this. I had a hunch and it turned out to be true. The problem is that the event for the onload occurs (at least when the img is on your machine) netscape is rendering the layer and "misses" the event. If you move the line of code later on it does not help either since the image is still loaded to fast. What you can do is call the second addChild(for rLayer2) in a setTimout("addChild code",1) the event there works (checked this out have a file if you want). Another reason to hate NS4. 8an |
From: Jan W. <vi...@vi...> - 2001-04-24 20:22:32
|
confirm 518859 -- ... S met ing's hap ening t my k ybo rd . . ------------------------------------------------------------------------------------------------------ Jan Wenda AKA ViLiF vi...@vi... GG# 108151 |
From: <mar...@in...> - 2001-05-16 09:28:50
|
Hi to all, I have a problem using the DynApi feature "viewport". Now I explain my problem ( probably it is a problem only for me ): I need to access to the DOM of the viewport object from the page that contains it and, from the viewport I need to access to the parent DOM. So, if into the viewport object I insert a textbox I hope to access to its properties. is It possible? Can someone help Me? Best Regards, Marco |
From: Eytan H. <ey...@tr...> - 2001-05-16 13:26:07
Attachments:
dynapi.gui.viewport.html
|
Any object in the view port is basically the same that it was out of the viewport just as a child layer of the view port (this doesn't sound right does it? Anyway an example is included and I just did an alert of what is in the textbox at the load of the page. You can use DOM too of course. 8an |
From: Richard B. <ric...@sk...> - 2001-05-16 14:03:41
|
If you want NS4 compatibitility as well, use this alert: alert(formlayer.doc.forms.test.testtxt.value); http://www.richardinfo.f2s.com/dynapi/Eytan_Heidingsfeld_Examples/dynapi.= gui.viewport.html ----- Original Message -----=20 From: Eytan Heidingsfeld=20 To: dyn...@li...=20 Sent: 16 May, 2001 16:28 Subject: RE: [Dynapi-Help] (no subject)(Viewport and DOM) Any object in the view port is basically the same that it was out of = the viewport just as a child layer of the view port (this doesn't sound = right does it? Anyway an example is included and I just did an alert of what is in = the textbox at the load of the page. You can use DOM too of course. 8an |
From: Dave E. <ede...@ro...> - 2001-06-22 19:41:52
|
Actually its even worse than that: even inline styling doesn't work in Netscape inside layers. In this situation you have to use NON css-style HTML -- <FONT> and such; check out the label widget's use of conventional HTML font styling -- the reason is the Netscape incompatibility. // MY ORIGINAL RESPONSE // You are running into a DOM issue: since the layers are seperate "documents" in Netscape, you must include the style sheet link WITHIN EACH LAYER for it to work. Really you are better off styling the text with inline style (style="text-size: 10pt...") the "old fashioned way." (meaning, practically speaking, in many cases you might as well use conventional HTML) // ORIGINAL QUESTION // Doug, thanks, but even this is not working for me. I'm testing inside a table in Netscape: ... <td><span class="someClass">some text</span></td> ... where the table itself is inside a DynLayer. The class has no effect in Netscape. Any ideas? ===== ======================= 'Providing year 2001 consultations at rates as low as $5,000 an hour.' Dave Edelhart Director of Operations, Manatee Bay Productions www.manateebay.com ede...@ma... __________________________________________________ Do You Yahoo!? Get personalized email addresses from Yahoo! Mail http://personal.mail.yahoo.com/ |
From: Tom W. <tom...@ya...> - 2001-06-22 22:12:15
|
I'm new to DynAPI, but I've used CSS with regular NN layers ok, FWIT. But a related thing to watch out for is that Netscape doesn't like underlines in style names -- class="small_text" breaks, class="smallText" is fine. -Tom --- Dave Edelhart <ede...@ro...> wrote: > Actually its even worse than that: even inline styling doesn't work > in Netscape inside layers. In this situation you have to use NON > css-style HTML -- <FONT> and such; check out the label widget's use > of conventional HTML font styling -- the reason is the Netscape > incompatibility. > > // MY ORIGINAL RESPONSE // > > You are running into a DOM issue: since the layers are seperate > "documents" in Netscape, you must include the style sheet link WITHIN > EACH LAYER for it to work. Really you are better off styling the text > with inline style (style="text-size: 10pt...") the "old fashioned > way." (meaning, practically speaking, in many cases you might as well > use conventional HTML) > > // ORIGINAL QUESTION // > > Doug, thanks, but even this is not working for me. I'm testing inside > > a table in Netscape: > ... > <td><span class="someClass">some text</span></td> > ... > where the table itself is inside a DynLayer. The class has no effect > in Netscape. Any ideas? > > ===== > ======================= > 'Providing year 2001 consultations at rates as low as $5,000 an > hour.' > Dave Edelhart > Director of Operations, Manatee Bay Productions > www.manateebay.com > ede...@ma... > > __________________________________________________ > Do You Yahoo!? > Get personalized email addresses from Yahoo! Mail > http://personal.mail.yahoo.com/ > > _______________________________________________ > Dynapi-Help mailing list > Dyn...@li... > http://lists.sourceforge.net/lists/listinfo/dynapi-help __________________________________________________ Do You Yahoo!? Get personalized email addresses from Yahoo! Mail http://personal.mail.yahoo.com/ |
From: Tom W. <tom...@ya...> - 2001-06-26 20:01:22
|
I'm want to use this for an image swap: layer1.doc.images['someimg'].src = but I don't know what the value for 'layer1' will be in advance. Is there a way to find out? Thanks, Tom __________________________________________________ Do You Yahoo!? Get personalized email addresses from Yahoo! Mail http://personal.mail.yahoo.com/ |