You can subscribe to this list here.
2000 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
(83) |
Nov
(319) |
Dec
(441) |
---|---|---|---|---|---|---|---|---|---|---|---|---|
2001 |
Jan
(617) |
Feb
(784) |
Mar
(426) |
Apr
(363) |
May
(489) |
Jun
(396) |
Jul
(405) |
Aug
(146) |
Sep
(97) |
Oct
(146) |
Nov
(348) |
Dec
(99) |
2002 |
Jan
(69) |
Feb
(92) |
Mar
(58) |
Apr
(33) |
May
(29) |
Jun
(45) |
Jul
(72) |
Aug
(71) |
Sep
(47) |
Oct
(19) |
Nov
(48) |
Dec
(55) |
2003 |
Jan
(23) |
Feb
(73) |
Mar
(42) |
Apr
(52) |
May
(64) |
Jun
(155) |
Jul
(169) |
Aug
(103) |
Sep
(113) |
Oct
(118) |
Nov
(46) |
Dec
(30) |
2004 |
Jan
(19) |
Feb
(24) |
Mar
(40) |
Apr
(13) |
May
(35) |
Jun
(1) |
Jul
(23) |
Aug
(3) |
Sep
(31) |
Oct
(31) |
Nov
(26) |
Dec
|
2005 |
Jan
(5) |
Feb
(4) |
Mar
(3) |
Apr
(2) |
May
(2) |
Jun
|
Jul
|
Aug
(23) |
Sep
(9) |
Oct
(5) |
Nov
(2) |
Dec
(1) |
2006 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
(1) |
Dec
|
2008 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
(3) |
Jul
(2) |
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
From: <do...@cr...> - 2005-08-24 17:46:03
|
More verbose.. also checked code to verfiy.. the part about a transparent coverlayer was just smoke (won't say what kind of smoke..) So.. As we know, if you add a child layer or widget to a layer, then set the html of that layer, the existing html (the child ler or widget) get's deleted. Obviously this can cause some issues if your coed expects said layer or widget to be there. The solution to this is to call enabledBlackBoard on the parent layer. Having done this, when you call setHTML() on a layer that has it's Blackboard enabled, the html that you specify is placed within the blackboard instead of replacing the html of your parent layer. Man reading the above just confuses me.. and i wrote it :-) new visual: case 1 (no blackboard) create a layer and add a widget: (result) [myLayer] [myWidget][/myWidget] [/myLayer] then call myLayer.setHTML("where's the widget?") (result: note the widget is gone) [myLayer] Where's the widget? [/myLayer] case 2 (with blackboard) create a layer, add a widget, enable blackboard [myLayer] [myWidget][/myWidget] [_blkBoardElm][/_blkBoardElm] [/myLayer] then call myLayer.setHTML("there's the widget!") [myLayer] [myWidget][/myWidget] [_blkBoardElm]there's the widget![/_blkBoardElm] [/myLayer] One thing i do notice while looking at the code is that we do not specifiy the Z-Order of the blackboard. This can cause a problem if the blackboard is added after a widget or childlayer has been added as the blackboard may overlap said child layers. notes: if blackboard is enabled after a sethtml call (or layer is created with default html in the new dynlayer() call) then the html will be transferred to the blackboard. Recommend specifying a largely negative Z-Order on the blackboard layer Cheers Leif W <war...@us...> said: > > From: <do...@cr...> > > Sent: 2005 August 24 Wednesday 11:06 > > > > here it is.. the blackboard as described below is to allow you to add > > a child > > layer to a layer, and then later call sethtml on the parent layer > > without > > accidently deleting the child layers :-) > > >> before EnableBlackboard() > >> [myLayer]content[/myLayer] > >> > >> After EnabledBlackboard > >> [myLayer] > >> [TransparentCoverLayer] > >> [BlackBoard] > >> Content > >> [BlackBoard] > >> [TransparentCoverLayer] > >> [myLayer] > > Wow, excellent, thanks for that explanation and visual. > > Leif > > > > > > ------------------------------------------------------- > SF.Net email is Sponsored by the Better Software Conference & EXPO > September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices > Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA > Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf > _______________________________________________ > Dynapi-Help mailing list > Dyn...@li... > https://lists.sourceforge.net/lists/listinfo/dynapi-help > -- |
From: Leif W <war...@us...> - 2005-08-24 15:21:27
|
> From: <do...@cr...> > Sent: 2005 August 24 Wednesday 11:06 > > here it is.. the blackboard as described below is to allow you to add > a child > layer to a layer, and then later call sethtml on the parent layer > without > accidently deleting the child layers :-) >> before EnableBlackboard() >> [myLayer]content[/myLayer] >> >> After EnabledBlackboard >> [myLayer] >> [TransparentCoverLayer] >> [BlackBoard] >> Content >> [BlackBoard] >> [TransparentCoverLayer] >> [myLayer] Wow, excellent, thanks for that explanation and visual. Leif |
From: <do...@cr...> - 2005-08-24 15:07:01
|
The wierdest things pop into your head when walking to work.. here it is.. the blackboard as described below is to allow you to add a child layer to a layer, and then later call sethtml on the parent layer without accidently deleting the child layers :-) Glad we got that sorted out. :-P do...@cr... said: > > > I haven't actually looked at the code yet but i do believe that > enableBlackboard creates two child layers in your layer, one which covers the > content and is transparent, and one which contains the content. > > The the various functions such as sethtml and gethtml are redirected to the > "blackboard" layer (content layer) as well as setsize, ect, resulting in the > containing layer, the cover layer and the blackboard layer being resized at > the same time > > Basically it's to make a layer's content non-selectable and non-clickable > without the devealoper having to do more than myLayer.enableBlackboard(); > > > before EnableBlackboard() > [myLayer]content[/myLayer] > > After EnabledBlackboard > [myLayer] > [TransparentCoverLayer] > [BlackBoard] > Content > [BlackBoard] > [TransparentCoverLayer] > [myLayer] > > Cheers > > Leif W <war...@us...> said: > > > > From: "Andrew Gillett" <an...@ph...> > > > Sent: 2005 August 15 Monday 19:01 > > > > > > In DynLayer, there is a method called "enableBlackboard". Can anyone > > > tell me what its for? > > > I can't find any documentation for it and I can't follow the code. I'd > > > appreciate it if someone > > > would give me a clue about its purpose. > > > > > > Just curious, > > > > > > Andrew. > > > > I've seen it too and wondered. Searching the source I find a few > > references to m/blackboard/i. > > One comment in the template manager code reads: "// this will force a > > <layer> arround the inline html". > > > > To what end, I'm not sure. > > > > Check the following: > > > > ./docs/docs/quickref.dynlayer.html > > ./docs/docs/revision.html > > ./examples/dynapi.api.dynlayer-autosize.html > > ./examples/dynapi.api.dynlayer-blackboard.html > > ./src/api/dynlayer_dom.js > > ./src/api/dynlayer_ie.js > > ./src/api/dynlayer_ns4.js > > ./src/api/dynlayer_opera.js > > ./src/gui/button.flatstyle.js > > ./src/gui/button.imagestyle.js > > ./src/gui/button.style.js > > ./src/gui/tmplmgr.js > > > > http://sourceforge.net/mailarchive/message.php?msg_id=12535636 > > http://sourceforge.net/mailarchive/message.php?msg_id=12535638 > > http://sourceforge.net/tracker/?group_id=5757&atid=305757&func=detail&aid=716335 > > > > Can't seem to find anything in mailing lists, which is odd. It's > > probably in the dev list. Check that list prior to the CVS additions > > and modifications relating to blackboard. > > > > Leif > > > > > > > > > > > > ------------------------------------------------------- > > SF.Net email is Sponsored by the Better Software Conference & EXPO > > September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices > > Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA > > Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf > > _______________________________________________ > > Dynapi-Help mailing list > > Dyn...@li... > > https://lists.sourceforge.net/lists/listinfo/dynapi-help > > > > > > -- > > > > > > ------------------------------------------------------- > SF.Net email is Sponsored by the Better Software Conference & EXPO > September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices > Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA > Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf > _______________________________________________ > Dynapi-Help mailing list > Dyn...@li... > https://lists.sourceforge.net/lists/listinfo/dynapi-help > -- |
From: Leif W <war...@us...> - 2005-08-20 19:12:44
|
> From: <do...@cr...> > Sent: 2005 August 12 Friday 10:31 > > Okay.. instead of inserting the background layer the way you are now, > What I > do is have a div in my html at the location i want my layer, then > onload, i > use the Inline extension to pull out the position of the relative div > in the > document, and position my layer accordingly. I tried various combinations of addChild and insert to no avail. The outermost layer gets positioned incorrectly. I'll have to try the inline feature. But I'd really like to understand the problem. I don't think it's doing anything that shouldn't be possible with a fully dynamic layer. Maybe it's a usage thing. But as I'm still learning the API, I can't spot it off hand. > I can't help but wonder if adding the layer to the dynapi.document > (which > inserts it in the browser's DOM) then inserting it a second time with > your > inset call.. try using the FireFox dom inspector (i think it's > included, but > you may want to DL it from the FF extensions page) once you page is > loaded, > you can browse through the document's objects to see if your layer is > there twice. Using Firefox, I saw only one instance of the DIV. I'm wondering perhaps if adding the child and inserting it messes with the box model stuff. I seemed to get a few pixels difference (from 7-20), which might be some CSS border widths of DIV and IMG tags. > P.S. Sample code that exhibits the error would be great.. make it much > easier > to deterine the issue at hand :-) Well, yeah. But without any further input from the user, I can only guess by the erroneous behaviour I see in my test code based upon the user's initial incomplete example. Please note that I did create a bug entry for this so that I would not forget. [ 1257263 ] Events send wrong X/Y coords to relative layers. http://sourceforge.net/tracker/index.php?func=detail&aid=1257263&group_id=5757&atid=105757 |
From: <do...@cr...> - 2005-08-17 16:05:19
|
I haven't actually looked at the code yet but i do believe that enableBlackboard creates two child layers in your layer, one which covers the content and is transparent, and one which contains the content. The the various functions such as sethtml and gethtml are redirected to the "blackboard" layer (content layer) as well as setsize, ect, resulting in the containing layer, the cover layer and the blackboard layer being resized at the same time Basically it's to make a layer's content non-selectable and non-clickable without the devealoper having to do more than myLayer.enableBlackboard(); before EnableBlackboard() [myLayer]content[/myLayer] After EnabledBlackboard [myLayer] [TransparentCoverLayer] [BlackBoard] Content [BlackBoard] [TransparentCoverLayer] [myLayer] Cheers Leif W <war...@us...> said: > > From: "Andrew Gillett" <an...@ph...> > > Sent: 2005 August 15 Monday 19:01 > > > > In DynLayer, there is a method called "enableBlackboard". Can anyone > > tell me what its for? > > I can't find any documentation for it and I can't follow the code. I'd > > appreciate it if someone > > would give me a clue about its purpose. > > > > Just curious, > > > > Andrew. > > I've seen it too and wondered. Searching the source I find a few > references to m/blackboard/i. > One comment in the template manager code reads: "// this will force a > <layer> arround the inline html". > > To what end, I'm not sure. > > Check the following: > > ./docs/docs/quickref.dynlayer.html > ./docs/docs/revision.html > ./examples/dynapi.api.dynlayer-autosize.html > ./examples/dynapi.api.dynlayer-blackboard.html > ./src/api/dynlayer_dom.js > ./src/api/dynlayer_ie.js > ./src/api/dynlayer_ns4.js > ./src/api/dynlayer_opera.js > ./src/gui/button.flatstyle.js > ./src/gui/button.imagestyle.js > ./src/gui/button.style.js > ./src/gui/tmplmgr.js > > http://sourceforge.net/mailarchive/message.php?msg_id=12535636 > http://sourceforge.net/mailarchive/message.php?msg_id=12535638 > http://sourceforge.net/tracker/?group_id=5757&atid=305757&func=detail&aid=716335 > > Can't seem to find anything in mailing lists, which is odd. It's > probably in the dev list. Check that list prior to the CVS additions > and modifications relating to blackboard. > > Leif > > > > > > ------------------------------------------------------- > SF.Net email is Sponsored by the Better Software Conference & EXPO > September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices > Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA > Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf > _______________________________________________ > Dynapi-Help mailing list > Dyn...@li... > https://lists.sourceforge.net/lists/listinfo/dynapi-help > -- |
From: Leif W <war...@us...> - 2005-08-16 03:15:09
|
From: <Lar...@gm...> Sent: 2005 August 15 Monday 12:03 > > Hi, > I'm using DynAPI 3.0 a few weeks and I think it's one of the most > powerful > cross-browser DHTML-libraries I've ever seen. Nevertheless I had some > problems with two features I would like to use in my project: > > 1.) Object-Stacker: > If I add more than one ObjectStacker to the document, only the last > inserted > ObjectStacker seems to work. I take a look at the source code but I'm > not > able to give account of this phenomenon. Any Ideas? I helped only slightly to create and test this widget. Tiru you out there? Lars, please submit a bug for this, with a test page that illustrates the problem, and a screen shot is nice too if needed. I'll take a look when I can, but I've got to learn the widget as well. I've got a few other bugs I'm trying to figure out atthe moment. > 2.) Mozilla/Mozilla Firefox-Problem with ViewPane: > If you click inside a viewpane which includes one larger DynLayer and > move > the mouse downwards, the text inside the Layer is marked and the > scrollbar > left the current view! The dynLayer.setTextSelectable(false) method of > the > DynLayer-Class does not avoid this behaviour in Firefox and Mozilla. > Viewpane.jpg shows you the little bug for the viewpane-example. Did > anybody > know a solution to avoid this mouse-dragging-behaviour? This would be one of those bugs I'm trying to work on... well, maybe this is a new one, a second bug with ViewPanes. If you notice in Mozilla, the scrollbars are not quite right. Compare to IE6 if you have access to it. The text selection might be another issue. Can you further test this for me, to determine if the text selection is a bug in general in the API, or with other widgets, or only with ViewPane? And also open a bug for this in the bug tracker. I'm bound to forget bugs reports if they're tucked away in my mailbox. But if I search for open bugs, I'll find them quickly. While you're in the bug tracker, take a look at some other recently opened bugs. If you can fix any of them then submit a solution and a test case if needed. Thanks! Leif |
From: Leif W <war...@us...> - 2005-08-16 02:50:27
|
> From: "Andrew Gillett" <an...@ph...> > Sent: 2005 August 15 Monday 19:01 > > In DynLayer, there is a method called "enableBlackboard". Can anyone > tell me what its for? > I can't find any documentation for it and I can't follow the code. I'd > appreciate it if someone > would give me a clue about its purpose. > > Just curious, > > Andrew. I've seen it too and wondered. Searching the source I find a few references to m/blackboard/i. One comment in the template manager code reads: "// this will force a <layer> arround the inline html". To what end, I'm not sure. Check the following: ./docs/docs/quickref.dynlayer.html ./docs/docs/revision.html ./examples/dynapi.api.dynlayer-autosize.html ./examples/dynapi.api.dynlayer-blackboard.html ./src/api/dynlayer_dom.js ./src/api/dynlayer_ie.js ./src/api/dynlayer_ns4.js ./src/api/dynlayer_opera.js ./src/gui/button.flatstyle.js ./src/gui/button.imagestyle.js ./src/gui/button.style.js ./src/gui/tmplmgr.js http://sourceforge.net/mailarchive/message.php?msg_id=12535636 http://sourceforge.net/mailarchive/message.php?msg_id=12535638 http://sourceforge.net/tracker/?group_id=5757&atid=305757&func=detail&aid=716335 Can't seem to find anything in mailing lists, which is odd. It's probably in the dev list. Check that list prior to the CVS additions and modifications relating to blackboard. Leif |
From: Andrew G. <an...@ph...> - 2005-08-15 23:02:14
|
In DynLayer, there is a method called "enableBlackboard". Can anyone tell me what its for? I can't find any documentation for it and I can't follow the code. I'd appreciate it if someone would give me a clue about its purpose. Just curious, Andrew. |
From: Leif W <war...@us...> - 2005-08-15 18:59:51
|
> From: "Hallvord Reiar Michaelsen Steen" <hal...@on...> > Sent: 2005 August 15 Monday 13:57 [snip] > As you may or may not be aware, older versions of DynAPI do not run > well in Opera because they detect Opera as "Opera" and important > parts of the script branches for NN and IE only. This means important > objects and variables have not been defined and the script fails to > run correctly. > > As a fix for this, I've written a script which will detect when a > page is about to use an external script with an address ending in > "dynapi/api/browser.js". If this is the case, Opera will set its > "navigator.appName" property to "Microsoft Internet Explorer" while > executing that script. > > This obviously has implications for any version of DynAPI that uses > the same file name/directory structure. You may not be able to detect > Opera reliably. If you believe this will cause problems for current > or future versions please voice your concerns.. I believe that is the DynAPI 2 or older way. Currently we're not doing anything with DynAPI 2. Ideally I'd like to update the older APIs, but right now I'm spending my time trying to fix bugs for a DynAPI 3 release. I'm not opposed to updating DynAPI 1 or 2, if someone came forward with something and said, "Here, I did it, I tested it, here's a bunch of test cases for previous and updated version, try it yourself." Then I'd have little extra to do but test, merge and commit. Until then, I guess I can't be opposed to hacks that may work-around any broken problems. But, it'd be nice if the user can turn the feature on or off globally, as well as per-site, incase we do get something fixed up. But that's a long ways off, if ever. Currently DynAPI 3 has moved the browser detect stuff into "dynapi/src/dynapi.js", though some may choose to install just /src/ on the site under a different dirname like /scripts/dynapi/dynapi.js or something. So I don't think it would affect current or future versions. But well, if anyone else sees a problem, be sure to speak up! Leif |
From: Hallvord R. M. S. <hal...@on...> - 2005-08-15 17:57:46
|
Dear DynAPI developers and users, I work for Opera Software with JavaScript testing and development. Currently one of the things I'm working on is a set of features that lets Opera adapt to broken JavaScripts. This builds on our "user javascript" feature which already is being used to fix broken sites. As you may or may not be aware, older versions of DynAPI do not run well in Opera because they detect Opera as "Opera" and important parts of the script branches for NN and IE only. This means important objects and variables have not been defined and the script fails to run correctly. As a fix for this, I've written a script which will detect when a page is about to use an external script with an address ending in "dynapi/api/browser.js". If this is the case, Opera will set its "navigator.appName" property to "Microsoft Internet Explorer" while executing that script. This obviously has implications for any version of DynAPI that uses the same file name/directory structure. You may not be able to detect Opera reliably. If you believe this will cause problems for current or future versions please voice your concerns.. -- Hallvord Reiar Michaelsen Steen http://www.hallvord.com/ -- Hallvord Reiar Michaelsen Steen http://www.hallvord.com/ |
From: <Lar...@gm...> - 2005-08-15 16:04:00
|
Hi, I'm using DynAPI 3.0 a few weeks and I think it's one of the most powerful cross-browser DHTML-libraries I've ever seen. Nevertheless I had some problems with two features I would like to use in my project: 1.) Object-Stacker: If I add more than one ObjectStacker to the document, only the last inserted ObjectStacker seems to work. I take a look at the source code but I'm not able to give account of this phenomenon. Any Ideas? 2.) Mozilla/Mozilla Firefox-Problem with ViewPane: If you click inside a viewpane which includes one larger DynLayer and move the mouse downwards, the text inside the Layer is marked and the scrollbar left the current view! The dynLayer.setTextSelectable(false) method of the DynLayer-Class does not avoid this behaviour in Firefox and Mozilla. Viewpane.jpg shows you the little bug for the viewpane-example. Did anybody know a solution to avoid this mouse-dragging-behaviour? Thank you for your help. Greetings, Lars |
From: <do...@cr...> - 2005-08-12 14:32:07
|
Okay.. instead of inserting the background layer the way you are now, What I do is have a div in my html at the location i want my layer, then onload, i use the Inline extension to pull out the position of the relative div in the document, and position my layer accordingly. I can't help but wonder if adding the layer to the dynapi.document (which inserts it in the browser's DOM) then inserting it a second time with your inset call.. try using the FireFox dom inspector (i think it's included, but you may want to DL it from the FF extensions page) once you page is loaded, you can browse through the document's objects to see if your layer is there twice. cheers P.S. Sample code that exhibits the error would be great.. make it much easier to deterine the issue at hand :-) Leif W <war...@us...> said: > > From: "Leif W" <war...@us...> > > Sent: 2005 August 11 Thursday 14:18 > > > >> From: "Bob Jamison" <bob...@gr...> > >> Sent: 2005 August 11 Thursday 13:41 > > > > I think I understand now. Click somewhere on bg1 and have lyr1 move > > there. Centered lyr1 around the point you clicked? And then what > > happens? Continue to drag without lifting the button and clicking > > lyr1 to initiate a drag event? I've never done that, but I would > > guess I'd add an onclick event listener to bg1, and have that handler > > move bg1, centered, and attempt to invoke a drag event on bg1. I'd > > probably have a delay between the move and the drag, maybe half second > > or quarter second. > > Well, I haven't had the big breakthrough I was hoping for, but I did > make some observations. > > 1) Onclick you can think of like two events: onmousedown and onmouseup. > Therefore, a click event does not happen until the mouse comes back up. > So you can't use a single click to pull a layer to the mouse and drag, > if you use onclick event. So, use onmousedown event. Which leads to > the second observation. > > 2) I think I see now what you might be experiencing. When setting up a > background layer, adding to that a layer with a photograph, and adding > to that a layer that you move around (fetch and drag), then there's a > problem. The onmousedown event is passing the X and Y coordinates +8 or > +9 or so. The upper left corner of the fetched layer stops to the 8 or > 9 pixels to the lower right of the cursor. Therefore you can never > connect with a drag event. If I remove the relative insert later in the > document, the upper left corner of the fetched layer comes to a stop > precisely underneath the mouse cursor. > > It's hard to know the intent without having a precise yet simplified > example of how the code needs to fit together in the end. I can only > guess something like you'll have some text or images or other layers, > then you'll want to relatively insert this background layer, with it's > photo and it's fetchable/draggable layer. You won't know ahead of time > how to precisely position the layer on the page, so everything must be > done relative to the background layer. Maybe there's another way to do > things? I'm still learning myself. I definitely would like to > understand where the offset is coming from. I might have a hunch about > some thing. Anyways I'll submit a bug with my above observations so it > will not be forgotten. > > Leif > > > > > > ------------------------------------------------------- > SF.Net email is Sponsored by the Better Software Conference & EXPO > September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices > Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA > Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf > _______________________________________________ > Dynapi-Help mailing list > Dyn...@li... > https://lists.sourceforge.net/lists/listinfo/dynapi-help > -- |
From: Leif W <war...@us...> - 2005-08-12 02:45:06
|
> From: "Leif W" <war...@us...> > Sent: 2005 August 11 Thursday 14:18 > >> From: "Bob Jamison" <bob...@gr...> >> Sent: 2005 August 11 Thursday 13:41 > > I think I understand now. Click somewhere on bg1 and have lyr1 move > there. Centered lyr1 around the point you clicked? And then what > happens? Continue to drag without lifting the button and clicking > lyr1 to initiate a drag event? I've never done that, but I would > guess I'd add an onclick event listener to bg1, and have that handler > move bg1, centered, and attempt to invoke a drag event on bg1. I'd > probably have a delay between the move and the drag, maybe half second > or quarter second. Well, I haven't had the big breakthrough I was hoping for, but I did make some observations. 1) Onclick you can think of like two events: onmousedown and onmouseup. Therefore, a click event does not happen until the mouse comes back up. So you can't use a single click to pull a layer to the mouse and drag, if you use onclick event. So, use onmousedown event. Which leads to the second observation. 2) I think I see now what you might be experiencing. When setting up a background layer, adding to that a layer with a photograph, and adding to that a layer that you move around (fetch and drag), then there's a problem. The onmousedown event is passing the X and Y coordinates +8 or +9 or so. The upper left corner of the fetched layer stops to the 8 or 9 pixels to the lower right of the cursor. Therefore you can never connect with a drag event. If I remove the relative insert later in the document, the upper left corner of the fetched layer comes to a stop precisely underneath the mouse cursor. It's hard to know the intent without having a precise yet simplified example of how the code needs to fit together in the end. I can only guess something like you'll have some text or images or other layers, then you'll want to relatively insert this background layer, with it's photo and it's fetchable/draggable layer. You won't know ahead of time how to precisely position the layer on the page, so everything must be done relative to the background layer. Maybe there's another way to do things? I'm still learning myself. I definitely would like to understand where the offset is coming from. I might have a hunch about some thing. Anyways I'll submit a bug with my above observations so it will not be forgotten. Leif |
From: Leif W <war...@us...> - 2005-08-11 18:18:41
|
> From: "Bob Jamison" <bob...@gr...> > Sent: 2005 August 11 Thursday 13:41 > > 1) I'm using the 3.0 beta that is available for download on the site. Right, but there's two 3.0 beta versions. Please clarify if it's 3.0.0-beta1 and 3.0.0-beta2. Make sure you have 3.0.0-beta2. > Should I get the one off CVS? I'm not sure how to do that. Since we recently had a release, you shouldn't need to get CVS. There haven't been any changes to that code yet. > 2) I'm on Windows XP. It doesn't work in any browser (firefox, IE, > netscape). > > Just to clarify, the dragging of lyr1 works fine. What I want to > happen is when you click on the layer bg1, then lyr1 should move to > that point. Hence, I need to know the x and y as set on bg1, not to > the page. But bg1 itself needs to be relative on the page. Does that > make sense? I think I understand now. Click somewhere on bg1 and have lyr1 move there. Centered lyr1 around the point you clicked? And then what happens? Continue to drag without lifting the button and clicking lyr1 to initiate a drag event? I've never done that, but I would guess I'd add an onclick event listener to bg1, and have that handler move bg1, centered, and attempt to invoke a drag event on bg1. I'd probably have a delay between the move and the drag, maybe half second or quarter second. > Doug, I tried your example, but couldn't get it to load. Well, we definitely should be working off the same example here. I got his working with some tweaks of my own here and there, mostly just changing the path to the initial dynapi.js script and the subsequent setPath and fiddled with some layer sizes and positions. I'll try to get a working example and post that. Leif |
From: Bob J. <bob...@gr...> - 2005-08-11 17:41:35
|
Hi, Thanks for responding. To answer your questions: 1) I'm using the 3.0 beta that is available for download on the site. Shoul= d I get the one off CVS? I'm not sure how to do that. 2) I'm on Windows XP. It doesn't work in any browser (firefox, IE, netscape= ). Just to clarify, the dragging of lyr1 works fine. What I want to happen is = when you click on the layer bg1, then lyr1 should move to that point. Hence= , I need to know the x and y as set on bg1, not to the page. But bg1 itself= needs to be relative on the page. Does that make sense? Doug, I tried your example, but couldn't get it to load. --=20 _______________________________________________ Graffiti.net free e-mail @ www.graffiti.net Check out our value-added Premium features, such as a 1 GB mailbox for just= US$9.95 per year! Powered By Outblaze |
From: Leif W <war...@us...> - 2005-08-11 01:17:10
|
> From: "Leif W" <war...@us...> > Sent: 2005 August 10 Wednesday 13:12 > >> From: "Bob Jamison" <bob...@gr...> >> Sent: 2005 August 09 Tuesday 19:09 > >> I have a child layer, in which I want to be able to click and get the >> x and y values of where I clicked -- so far, it's getting the x and y >> value relative to the page, not the layer. I'm using 3.0. I've made a simple example, which looks very much likes Doug's, so I just merged the differences. It seems to work ok for me. DynAPI: 3.0.0-beta2 Browsers: Mozilla Firefox 1.0.6, Internet Explorer 6 OS WinXP SP2 > Hmm, what looks odd to me are these... > > var photo = dynapi.document.addChild( new > DynLayer(null,0,0,600,400) ); > var bg1 = photo.addChild(new DynLayer(null,0,0,600,400)); > var lyr1 = photo.addChild(new DynLayer(null,$x,$y,10,10,'red')); Well, I'll be... hmm, I don't remember using that syntax before, but it works as I expect, so nevermind my comments. Leif |
From: <do...@cr...> - 2005-08-10 17:44:54
|
P.S. You now owe me for half my lunch hour I charge 40$ Canadian per hour, so I'll expect your check or money order for 20$ If you do not comply I will send my crack team of squirrel commandos to ravage your garden and terrorize your cat. :-P Bob Jamison <bob...@gr...> said: > I've been banging my head against the wall trying to get this to work, and no luck so far. I have a child layer, in which I want to be able to click and get the x and y values of where I clicked -- so far, it's getting the x and y value relative to the page, not the layer. I'm using 3.0. What am I doing wrong? (This is being used in PHP, so you may see some variables that are coming from that) > > > var photo = dynapi.document.addChild(new DynLayer(null,0,0,600,400)); > > > var bg1 = photo.addChild(new DynLayer(null,0,0,600,400)); > bg1.setHTML('<img src="$url" border="1" width="600" height="400">'); > bg1.setInnerBorder(0,{top:'black',right:'black',bottom:'black',left:'black'}); > bg1.setZIndex(2); > bg1.addEventListener({ > onclick:function(e){ > var x = e.getX(); > debugtext.setHTML('<span class="text_11">' + x + '</span>'); > lyr1.setX(x); > lyr1.setY(e.getY()); > document.editcamera.valueX.value = lyr1.getX(); > document.editcamera.valueY.value = lyr1.getY(); > } > }); > > var lyr1 = photo.addChild(new DynLayer(null,$x,$y,10,10,'red')); > lyr1.setZIndex(3); > DragEvent.enableDragEvents(lyr1); > DragEvent.setDragBoundary(lyr1, {left:0, right:0, top:0, bottom:0}); > lyr1.addEventListener({ > ondragend:function(e){ > var o=e.getSource(); > o.setZIndex(3); > document.editcamera.valueX.value = lyr1.getX(); > document.editcamera.valueY.value = lyr1.getY(); > } > }); > > > I have a relative layer down in the html: dynapi.document.insertChild(photo,'relative'); > > Help, please! > > -- > _______________________________________________ > Graffiti.net free e-mail @ www.graffiti.net > Check out our value-added Premium features, such as a 1 GB mailbox for just US$9.95 per year! > > > Powered By Outblaze > > > ------------------------------------------------------- > SF.Net email is Sponsored by the Better Software Conference & EXPO > September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices > Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA > Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf > _______________________________________________ > Dynapi-Help mailing list > Dyn...@li... > https://lists.sourceforge.net/lists/listinfo/dynapi-help > -- |
From: <do...@cr...> - 2005-08-10 17:41:30
|
Bob, Some information that we need includes the following: The make and version of web browser you are experiencing the poroblem in. The OS on which you are running said browser. The version of DynAPI 3.. is it the beta found in the downloads section, or did you download the latest version from cvs. That said I have mashed together the following test html. In IE 6 and FireFox 1.0.6 the results are as expected. The only thing that comes to mind is maybe the fact that your photo layer is set to have an x and y of 0. Thus, if the parent layer's top left corner is at 0x0 then the x and y values of the child layer will reflect this (10 pixels from the top of a layer that is at 0px from the top of the page will be 10px from the top of the page. When I change the Photo layer's x and y to 10x10 and then move the child layer to the top-left I get x and y of 0x0 as expected. <html> <head> <script language="JavaScript" src="src/dynapi.js"></script> <script language="Javascript"> dynapi.library.setPath('src/'); dynapi.library.include('dynapi.api'); dynapi.library.include('dynapi.gui.BorderManager'); dynapi.library.include('DragEvent'); </script> <script language=javascript> var debugLayer = dynapi.document.addChild(new DynLayer(null,610,0,100,100)); var photo = dynapi.document.addChild(new DynLayer(null,10,10,600,400)); var bg1 = photo.addChild(new DynLayer(null,0,0,600,400)); bg1.setHTML('<img src="examples/images/f1-sky.jpg" border="1" width="600" height="400">'); bg1.setInnerBorder(0,{top:'black',right:'black',bottom:'black',left:'black'}); bg1.setZIndex(2); bg1.addEventListener({ onclick:function(e){ var x = e.getX(); //debugtext.setHTML('<span class="text_11">' + x + '</span>'); lyr1.setX(x); lyr1.setY(e.getY()); //document.editcamera.valueX.value = lyr1.getX(); //document.editcamera.valueY.value = lyr1.getY(); debugLayer.setHTML("X=" + lyr1.getX() + " and Y=" + lyr1.getY()) } }); var lyr1 = photo.addChild(new DynLayer(null,5,5,10,10,'red')); lyr1.setZIndex(3); DragEvent.enableDragEvents(lyr1); DragEvent.setDragBoundary(lyr1, {left:0, right:0, top:0, bottom:0}); lyr1.addEventListener({ ondragend:function(e){ var o=e.getSource(); o.setZIndex(3); //document.editcamera.valueX.value = lyr1.getX(); //document.editcamera.valueY.value = lyr1.getY(); debugLayer.setHTML("X=" + lyr1.getX() + " and Y=" + lyr1.getY()) } }); </script> </head> <body> <script language=javascript> dynapi.document.insertChild(photo,'relative'); </script> </body> </html> Bob Jamison <bob...@gr...> said: > I've been banging my head against the wall trying to get this to work, and no luck so far. I have a child layer, in which I want to be able to click and get the x and y values of where I clicked -- so far, it's getting the x and y value relative to the page, not the layer. I'm using 3.0. What am I doing wrong? (This is being used in PHP, so you may see some variables that are coming from that) > > > var photo = dynapi.document.addChild(new DynLayer(null,0,0,600,400)); > > > var bg1 = photo.addChild(new DynLayer(null,0,0,600,400)); > bg1.setHTML('<img src="$url" border="1" width="600" height="400">'); > bg1.setInnerBorder(0,{top:'black',right:'black',bottom:'black',left:'black'}); > bg1.setZIndex(2); > bg1.addEventListener({ > onclick:function(e){ > var x = e.getX(); > debugtext.setHTML('<span class="text_11">' + x + '</span>'); > lyr1.setX(x); > lyr1.setY(e.getY()); > document.editcamera.valueX.value = lyr1.getX(); > document.editcamera.valueY.value = lyr1.getY(); > } > }); > > var lyr1 = photo.addChild(new DynLayer(null,$x,$y,10,10,'red')); > lyr1.setZIndex(3); > DragEvent.enableDragEvents(lyr1); > DragEvent.setDragBoundary(lyr1, {left:0, right:0, top:0, bottom:0}); > lyr1.addEventListener({ > ondragend:function(e){ > var o=e.getSource(); > o.setZIndex(3); > document.editcamera.valueX.value = lyr1.getX(); > document.editcamera.valueY.value = lyr1.getY(); > } > }); > > > I have a relative layer down in the html: dynapi.document.insertChild(photo,'relative'); > > Help, please! > > -- > _______________________________________________ > Graffiti.net free e-mail @ www.graffiti.net > Check out our value-added Premium features, such as a 1 GB mailbox for just US$9.95 per year! > > > Powered By Outblaze > > > ------------------------------------------------------- > SF.Net email is Sponsored by the Better Software Conference & EXPO > September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices > Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA > Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf > _______________________________________________ > Dynapi-Help mailing list > Dyn...@li... > https://lists.sourceforge.net/lists/listinfo/dynapi-help > -- |
From: Leif W <war...@us...> - 2005-08-10 17:12:51
|
> From: "Bob Jamison" <bob...@gr...> > Sent: 2005 August 09 Tuesday 19:09 > > I have a child layer, in which I want to be able to click and get the > x and y values of where I clicked -- so far, it's getting the x and y > value relative to the page, not the layer. I'm using 3.0. Hi. Which 3.0? ;-) beta1 (2 years old) or beta2 (released last week). And which browser(s) yield the erroneous behavior? To my understanding, getX/Y is relative to parent, and getPageX/Y is relative to page. So the usage seems correct at first glance. I'll take a closer look. Hmm, what looks odd to me are these... var photo = dynapi.document.addChild( new DynLayer(null,0,0,600,400) ); var bg1 = photo.addChild(new DynLayer(null,0,0,600,400)); var lyr1 = photo.addChild(new DynLayer(null,$x,$y,10,10,'red')); Normally, I assign DynLayer directly to a variable, configure it, and when done use dynapi.document.addChild. I'll try both ways and see what happens. > I have a relative layer down in the html: > dynapi.document.insertChild(photo,'relative'); This I don't understand... you already added the DynLayer "photo" to the document once above, now you wish to insert it? So there should be two instances, is this correct? Is it even possible, again, I never tried that. :-) I'll fiddle around and get back later today. Leif |
From: Bob J. <bob...@gr...> - 2005-08-10 16:21:40
|
I've been banging my head against the wall trying to get this to work, and = no luck so far. I have a child layer, in which I want to be able to click a= nd get the x and y values of where I clicked -- so far, it's getting the x = and y value relative to the page, not the layer. I'm using 3.0. What am I d= oing wrong? (This is being used in PHP, so you may see some variables that = are coming from that) var photo =3D dynapi.document.addChild(new DynLayer(null,0,0,600,400)); var bg1 =3D photo.addChild(new DynLayer(null,0,0,600,400)); bg1.setHTML('<img src=3D"$url" border=3D"1" width=3D"600" height=3D"400">'); bg1.setInnerBorder(0,{top:'black',right:'black',bottom:'black',left:'black'= }); bg1.setZIndex(2); bg1.addEventListener({ onclick:function(e){ var x =3D e.getX(); debugtext.setHTML('<span class=3D"text_11">' + x + '</span>'); lyr1.setX(x); lyr1.setY(e.getY()); document.editcamera.valueX.value =3D lyr1.getX(); document.editcamera.valueY.value =3D lyr1.getY(); } }); var lyr1 =3D photo.addChild(new DynLayer(null,$x,$y,10,10,'red')); lyr1.setZIndex(3); DragEvent.enableDragEvents(lyr1); DragEvent.setDragBoundary(lyr1, {left:0, right:0, top:0, bottom:0}); lyr1.addEventListener({ ondragend:function(e){ var o=3De.getSource(); o.setZIndex(3); document.editcamera.valueX.value =3D lyr1.getX(); document.editcamera.valueY.value =3D lyr1.getY(); } }); I have a relative layer down in the html: dynapi.document.insertChild(photo= ,'relative'); Help, please! --=20 _______________________________________________ Graffiti.net free e-mail @ www.graffiti.net Check out our value-added Premium features, such as a 1 GB mailbox for just= US$9.95 per year! Powered By Outblaze |
From: Leif W <war...@us...> - 2005-08-03 02:30:12
|
Well, if you missed the release announcement this morning, it's because you're not subscribed to the dynapi-announce mailing list. :-) DynAI 3.0.0 Beta 2 is released. Go check it out. http://dynapi.sourceforge.net/ (SF has some DB load issues, this is slow or broken). Or check the dynapi-announce mail archive. Or go straight to the project page's File Release System. Leif |
From: Leif W <war...@us...> - 2005-05-12 19:57:07
|
> "Guillaume Sueur" <gui...@ge...>; > 2005-05-12@02:31 -0400 > > Hi, > > I'm using the dynapi embedded into a cartographic front-end called > MapSurfer. > The dynapi helps to create layers in which are created a map, a > scalebar, some info etc. On small screen, I would like to have a > scrollbar, and I use scrollbars=yes on my frameset. But when I use the > scrollbar, the layers automatically come back on the initial position, > making a blinking effect and not allowing people to scroll. > Have you got any idea about that ? Hi, Can you give more information? Which DynAPI version? Which OS and browser(s)/version(s)? Simplified code example which illustrates the problem? Leif |
From: Guillaume S. <gui...@ge...> - 2005-05-12 06:31:19
|
Hi, I'm using the dynapi embedded into a cartographic front-end called MapSurfer. The dynapi helps to create layers in which are created a map, a scalebar, some info etc. On small screen, I would like to have a scrollbar, and I use scrollbars=yes on my frameset. But when I use the scrollbar, the layers automatically come back on the initial position, making a blinking effect and not allowing people to scroll. Have you got any idea about that ? Thanks -- --------------------------- Guillaume SUEUR GEOSIGNAL - Groupe BVA 25bis Avenue Marcel Dassault 31505 TOULOUSE CEDEX 5 ---------------------------- |
From: Andrew G. <an...@zo...> - 2005-04-23 03:00:31
|
Hello All, I have upgraded the DynAPI website on sourceforge. I'm hoping to revitalize this project and my immediate aim is to help produce DynAPI-3.0.0-final. There is much work to be done to reach this goal, particularly documentation, testing, and bug fixing. The new website should be a valuable resource for collaboration amongst developers and users. The old website was based on phpWebSite-0.7.6 and phpWiki-1.2.0 (both *very* old). I have installed phpWebSite-0.10.1. Because this skips several major releases, it was not possible to transfer all the content of the old site to the new. The old website is still available, but at a different URL: http://dynapi.sourceforge.net/archive/dynapi/ The new website is simply at: http://dynapi.sourceforge.net/ And the old site at http://dynapi.sourceforge.net/dynapi/ now redirects to the new site. None of the user account records could be transferred to the new site, so you'll need to register again. Many accounts never worked on the old site anyway, because the password encryption ceased working where SourceForge upgraded to php-4.3. The old "doccenter" was based on phpWiki. The new phpWebSite includes a wiki module, so I haven't tried upgrading the wiki. I'm inclined just to move content, one page at a time, from doccenter to the new wiki module. The new phpWebSite CMS contains many modules, most of which I haven't explored yet. If you're interested in DynAPI and have the time and inclination to help build the new website (it's still fairly empty), then please get in touch with me - your help will be very welcome. Let see if DynAPI can have a future! Andrew Gillett |
From: Leif W <war...@us...> - 2005-04-01 19:58:27
|
> "P=E5l J=F8rgensen" <pal...@gm...>; 2005-03-19@05:06 -0500 > > Hi, > > The LoadPanel example doesn't work when using Konqueror 3.2. The > following line in loadpanel.js makes _loadElm undefined: > > this._loadElm =3D dynapi.frame.frames[this._elmID]; > > Can anyone help me? > > best regards, > P=E5l J=F8rgensen Hi, and sorry for not responding sooner. Currently I have no access to=20 a PC that I can run Linux with X, so I can't test Konqueror, and I don't=20 understand the code well enough at this point to help without research=20 and testing. I've got to free some disk space to download a Debian CD=20 and see if I can cram all of that onto a 2GB disk (minus 128MB swap) and=20 install in a separate PC here. Is there any other version of Konqueror in which this DOES work? It=20 probably never did, in which case it needs fixing. But just in case=20 something changed in the browser from an older version, then both the=20 old and the new code must work. Leif |