hi there
see below...
Tho, not working in 1.4 means they finally fixed the content-width bug (must
missed that in the changelogs)
Unfortunatly there is no way to work around this bug in 1.4
NOT TRUE!
1. get the content of the layer in question (with innerHTML-property)
2. write content into a dummy
> You're right, onclick on image in NS4 doesn't work, so go for the href.
try onmouseup. i think the reason NS4 doesn't fire an onclick is because
DynAPI catches onmouseup and -down.
give it a try!
--
Michael Buerge
---
This SF.net email is
this is really nice to know! thanks!
but deriving from a test i did it doesn't load the script synchronously. if
it would load it synchronously the following code should work:
onload = function() {
document.location.href = 'test.js';
test();
}
test.js being a script containing the funct
my suggestion is to call that method setPos().
same bytesize as moveTo() and consistent with the getXXX() and setXXX()
philosophy.
anybody?
--
Michael Buerge
> From: Dan Steinman <[EMAIL PROTECTED]>
> Date: Mon, 19 Nov 2001 13:12:35 -0500
> To: [EMAIL PROTECTED]
> Subject: Re: [Dynapi-Dev] Propo
> From: "Richard Bennett" <[EMAIL PROTECTED]>
> Date: Mon, 12 Nov 2001 11:09:14 +0100
> To: Michael Bürge <[EMAIL PROTECTED]>,
> <[EMAIL PROTECTED]>
> Subject: Re: [Dynapi-Dev] image-loader
>
> Hi,
> As usual you have some very nice code in th
why not do it like the following:
is = new Browser();
if (typeof DynAPI == 'object') DynAPI.browser = is;
this will work in all situations
Michael
ps: sorry richard for getting this twice. i just did a reply without looking
at the address. wasn't this supposed to be fixed?
> From: "Richard Be
no prob:
just catch the 'resize'-event of the parentlayer and perform the necessary
actions when the event happens.
--
Michael Buerge
> Hello:
>
> I would like to have a parent layer that resizes when the browser resizes
> and children layers inside the parent layer that move/resize when the pa
> BUT when I try and do certain things in the
> constructor instead of precreate, they simply don't work.
could you post an example where it doesn't work?
___
Dynapi-Dev mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/dyna
ok, i see, this fixes the problem.
sorry for beeing a bit outdated.
i closed the patch.
--
Michael Buerge
> this was actually change recently so that the dbltimer is attached to the
> dynobject
> that caused the event. this meant that two clicks on separate layers cannot
> be
> misinterpreted
this is from an older version of the api (don't know which one exactly):
if ((this.win32=(ua.indexOf("win")>-1))) this.platform="win32";
else if ((this.mac=(ua.indexOf("mac")>-1))) this.platform="mac";
^^^
it buried in the code, but it is (was) there.
it could be don
what happened to is.mac?
it had been added for convenience some time ago and now its gone.
could somebody put it back?
--
Michael Buerge
___
Dynapi-Dev mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/dynapi-dev
> This was noted in a changelog many versions ago.
missed that one.
> That's why all of the
> examples close the script tags after the include since the downloaded
> files are not available until after the script tag has closed.
then look at my post as a reminder ;-)
--
Michael Buerge
__
i tried in ie5/mac and have to tell you that it doesn't work.
looked very nice in the beginning (cool design!).
the tree works, but the highlighting onmouseover/out is very slow. when i
tried to view the pictures, the scrollpane didn't show up correctly. I
eventually got a 'permission denied' erro
>> You could check if a variable has been declared (one that is declared only
>> in that file)
>
> As far as I know, such a trick is impossible in Javascript. If you try to
> check a variable that hasn't been declared (using "if (myVar)"), you get an
> error. I haven't found a way to be able to d
It DOES work! I haven't experienced any problems with it, this patch was a
major improvement for DynAPI on the mac.
> A patch for this bug was submitted several weeks ago, while I was rewriting
> the
> API. I put it into Sourceforge and assumed it worked. Can anyone tell if it
> did
> or not ?
> Michael,
>
> If you look at the Compatability Matrix
> http://mocha.ctlt.wsu.edu/DynAPIMatrix/matrix20010407.htm, we introduced new
> problems with viewport, pushpanel, scrollpane and scrollpanel. I'm not sure
> if you've resolved them or not. Maybe you could review it and post an
> update.
I did something similar in my work-version and i think it's definitely a
good idea to structure things like this.
and as long as the structure inside the dynapi-folder doesn't change there
aren't many things to change.
--
Michael Buerge
> From: Michael Pemberton <[EMAIL PROTECTED]>
> Reply-To:
> Michael, (and others submitting patches)
>
> I don't know if you followed the discussions on how to submit bugs/patches a
> while back?
> Basically things like this should be submitted as a patch, so they don't get
> lost, it saves you reposting stuff, and keeps comments on the patch in
> sequ
there's a bug in the following method (in listeners.js):
the corrected version is:
DynObject.prototype.addEventListener=function(listener) {
if(!this.eventListeners) {
this.eventListeners = [];
}
// the following line has been moved
// it was inside the if-statement
t
there's a "this." missing in the following method (in listener.js)
DynObject.prototype.removeEventListener=function(listener) {
Methods.removeFromArray(this.eventListeners, listener, false);
if (eventListeners.length==0) { // <= this line!!
this.hasEventListeners=false;
}
PI X and it works perfect ( Win ) and
> better than before ( Mac )
>
>
> Michael Bürge wrote:
>
>> no problem.
>> if the src gets updated, the x and y should also be (as in the old version).
>> but they don't seem to return the correct values anyway (at lea
me more, i might be able to help. otherwise i'm getting a
bit frustrated if i have to first find out what doesn't work before i can
actually try to fix something.
> Then it was me misunderstanding what Source meant. Honest I had never used
> that
> property. Again my f
?
in an eventlistener e.getSource() till now always returned me a reference to
the dynlayer the listener is attached to.
this is the bubbleEvent-Method of the old api and the src property gets
updated:
MouseEvent.prototype.bubbleEvent=function() {
if (!this.bubble || this.src.getClass()=
there's one thing missing in the invokeEvent-method:
the src-property doesn't get updated when the event bubbles up.
DynObject.prototype.invokeEvent=function(type,e) {
if (!e) e=new DynEvent(type,this);
if (this.hasEventListeners) for(var
i=0;ihttp://lists.sourceforge.net/lists/listinfo/
fact is: dragEvent doesn't work corectly with dynapi x when a layer is
enabled for dragging before it has been created (which happens all the time
in widgets)
i studied the code and dicovered that this is due to the higherListener
property not beeing set correctly, so that the mouseup/mousemove-e
i just found out that this breaks something else. after adding the suggested
line to events.js, normal links ( From: Michael Buerge <[EMAIL PROTECTED]>
> Reply-To: [EMAIL PROTECTED]
> Date: Fri, 16 Feb 2001 15:29:33 +0100
> To: <[EMAIL PROTECTED]>
> Subject: [Dynapi-Dev] mousedown in ns4 /mac
>
here we go:
The reason why none of the example-widgets in the snapshots work
on IE5/Mac is the following:
The first child's elm-property is wrong, it points to the elm-Object of
its parent.
posted this on sourceforge some time ago.
detailed information and testcase:
http://n.ethz.ch/student/mibue
[ ... ]
> This is a professional effort, and whilst I know the DynAPI already has some
> fantastic effects built in (looking forward to playing with the anims), a
> stable core.api is what we are working towards for the next few months.
i'm optimistic that it won't take months
> I'd like to pl
> My personal main problem on the mac is the getContentHeight/Width methods...
> You cannot make layer, fill it, and have it autosize to its' contents. If I
> am wrong about this someone please let me know.
you are wrong!!
check out the following:
(btw: i already posted this a few days ago, but
changing the name of the browser is fine, but my original post was about
something else and i didn't see any reactions.
now i'd like to help to improve the DynAPI, which is a way cool project, but
i kinda get the feeling nobody cares.
if the stuff i posted is crap then at least tell me!
--
Michae
one drawback i just found out: this breaks the contextmenu, it doesn't
appear anymore. seems that ns5 (or ns6, or moz or however) relies on
javascript for it.
> From: Michael Bürge <[EMAIL PROTECTED]>
> Reply-To: [EMAIL PROTECTED]
> Date: Sat, 03 Feb 2001 21:01:04 +0100
>
i think the following may be interesting...
ns5:
i found that elm.scrollWidth and elm.scrollHeight in ns5 contain the correct
values if elm.style.width/height is set to 'auto', so what i did in
Dynlayer.prototype.getContentWidth() is setting the elm.style.width to
'auto', retrive the scrollWidth,
in ns5 there has long been the problem that the events got fired multiple
times, this is because the event bubbles up the DOM, firing for all
parent-layers and the document as well. the target property of the event-obj
contains the element which originally fired it, thats why the same
eventListene
> From: Joachim Lundgren <[EMAIL PROTECTED]>
> Reply-To: [EMAIL PROTECTED]
> Date: Tue, 30 Jan 2001 15:15:59 +0100
> To: [EMAIL PROTECTED]
> Subject: Re: [Dynapi-Dev] ns6 w/h and browser advocacy
[...]
> But I got the right result by calling the function as the result of a timeout:
> setTimeout(
Title: DynAPIinclude() crashes mac
The DynAPI.include() function in today's snapshot crashes the MacOS when used in IE5.
After countless restarts (this wasn't really funny) i eventually figured out what it is.
I tracked the error to the following line:
if (path[path.length-1] != "/") path += "/
I have an improvement to dragevent.js.
by adding two lines of code, IE does no longer select text while
dragging (which in my opinion is really annoying)
the trick is to use IE's document.body.onselectstart Event-Handler
the changes i made to dragevent.js are the following:
-
hi there.
this is my first post to this list, and i would like to use the opportunity to thank
you for the great work you're all doing. i just started dealing with
the dynapi after having spent a _lot_ of time putting together something similar on my
own (i now finally gave up, mainly because i
37 matches
Mail list logo