|
From: martin s. <ma...@ab...> - 2001-01-18 16:34:42
Attachments:
Console.zip
|
i've been using a js-console for a while and
found it useful so i thought i'll ported it to DynAPI
and share it with you.
with the console you get a small popup-window
to which you are able to write variables, messages
and so on. very usefull instead of those alert's
put the console.js in dynapi/util/=20
methods:=20
DynAPI.console.open()
opens the console-window
DynAPI.console.write(msg)
writes msg to the console
if the console isn't opened, this will be done for you.
internet explorer will also scroll to the bottom of the console=20
where the newest messages are, couldn't found out how
you do this in netscape
DynAPI.console.close()
closes the console-window
DynAPI.console.enable()
enables the console
DynAPI.console.disable()
disables the console (the console wont open or be written to)
DynAPI.console.clear()
clears the console window
example:
DynAPI.setLibraryPath('dynapi/src/lib')
DynAPI.include('dynapi.api.*')
DynAPI.include('dynapi.util.console')
DynAPI.onLoad=3Dfunction() {
layer =3D new DynLayer(null,40,10,25,50,'red');
DynAPI.document.addChild(layer);
DynAPI.console.write(layer.toString());
DynAPI.console.write('position: '+layer.x+'x'+layer.y);
DynAPI.console.write('size: '+layer.w+'x'+layer.h);
};
(leave the console open when you reload the
page, then the console-window's position and
size will remain)
cheers
/martin
|
|
From: Robert R. <rra...@ya...> - 2001-01-18 16:54:41
|
Nice. It would be even better if it had a dumpProperties method, that could
dump all of the properties of an object.
Like:
DynAPI.console.dumpProperties(myLayer);
--
// Robert Rainwater
On 1/18/2001, 11:37:25 AM EST, martin wrote about "[Dynapi-Dev] small DynAPI-util: console":
> i've been using a js-console for a while and
> found it useful so i thought i'll ported it to DynAPI
> and share it with you.
> with the console you get a small popup-window
> to which you are able to write variables, messages
> and so on. very usefull instead of those alert's
> put the console.js in dynapi/util/
> methods:
> DynAPI.console.open()
> opens the console-window
> DynAPI.console.write(msg)
> writes msg to the console
> if the console isn't opened, this will be done for you.
> internet explorer will also scroll to the bottom of the console
> where the newest messages are, couldn't found out how
> you do this in netscape
> DynAPI.console.close()
> closes the console-window
> DynAPI.console.enable()
> enables the console
> DynAPI.console.disable()
> disables the console (the console wont open or be written to)
> DynAPI.console.clear()
> clears the console window
> example:
> DynAPI.setLibraryPath('dynapi/src/lib')
> DynAPI.include('dynapi.api.*')
> DynAPI.include('dynapi.util.console')
> DynAPI.onLoad=function() {
> layer = new DynLayer(null,40,10,25,50,'red');
> DynAPI.document.addChild(layer);
> DynAPI.console.write(layer.toString());
> DynAPI.console.write('position: '+layer.x+'x'+layer.y);
> DynAPI.console.write('size: '+layer.w+'x'+layer.h);
> };
> (leave the console open when you reload the
> page, then the console-window's position and
> size will remain)
> cheers
> /martin
|
|
From: Jordi 'I. M. <jmi...@or...> - 2001-01-18 17:02:41
|
Absolutely. I propose it is made available via CVS.
Robert Rainwater wrote:
> Nice. It would be even better if it had a dumpProperties method, that could
> dump all of the properties of an object.
>
> Like:
> DynAPI.console.dumpProperties(myLayer);
>
> --
> // Robert Rainwater
>
> On 1/18/2001, 11:37:25 AM EST, martin wrote about "[Dynapi-Dev] small DynAPI-util: console":
>
> > i've been using a js-console for a while and
> > found it useful so i thought i'll ported it to DynAPI
> > and share it with you.
>
> > with the console you get a small popup-window
> > to which you are able to write variables, messages
> > and so on. very usefull instead of those alert's
>
> > put the console.js in dynapi/util/
>
> > methods:
>
> > DynAPI.console.open()
> > opens the console-window
>
> > DynAPI.console.write(msg)
> > writes msg to the console
> > if the console isn't opened, this will be done for you.
> > internet explorer will also scroll to the bottom of the console
> > where the newest messages are, couldn't found out how
> > you do this in netscape
>
> > DynAPI.console.close()
> > closes the console-window
>
> > DynAPI.console.enable()
> > enables the console
>
> > DynAPI.console.disable()
> > disables the console (the console wont open or be written to)
>
> > DynAPI.console.clear()
> > clears the console window
>
> > example:
>
> > DynAPI.setLibraryPath('dynapi/src/lib')
> > DynAPI.include('dynapi.api.*')
> > DynAPI.include('dynapi.util.console')
>
> > DynAPI.onLoad=function() {
> > layer = new DynLayer(null,40,10,25,50,'red');
> > DynAPI.document.addChild(layer);
>
> > DynAPI.console.write(layer.toString());
> > DynAPI.console.write('position: '+layer.x+'x'+layer.y);
> > DynAPI.console.write('size: '+layer.w+'x'+layer.h);
> > };
>
> > (leave the console open when you reload the
> > page, then the console-window's position and
> > size will remain)
>
> > cheers
> > /martin
>
> _______________________________________________
> Dynapi-Dev mailing list
> Dyn...@li...
> http://lists.sourceforge.net/lists/listinfo/dynapi-dev
|
|
From: martin s. <ma...@ab...> - 2001-01-18 20:38:37
Attachments:
Console.zip
|
okey, i've added dumpProperties() it=20
takes (obj, hidemethods) as arguments
obj is of course the object you want to dump.
if hidemethods is true then no methods will=20
be listed.
All properties/methods/whatever will be listed=20
in alphabetic order just to make it easier find=20
a specific value.
(if this will be available via CVS, can somebody
else post it? currently i only got CVS-read-access
working..)
/martin
----- Original Message -----=20
From: "Robert Rainwater" <rra...@ya...>
To: "DynAPI Development List" <dyn...@li...>
Sent: Thursday, January 18, 2001 5:54 PM
Subject: Re: [Dynapi-Dev] small DynAPI-util: console
>=20
> Nice. It would be even better if it had a dumpProperties method, that =
could
> dump all of the properties of an object.
>=20
> Like:
> DynAPI.console.dumpProperties(myLayer);
>=20
> --=20
> // Robert Rainwater
>=20
> On 1/18/2001, 11:37:25 AM EST, martin wrote about "[Dynapi-Dev] small =
DynAPI-util: console":
>=20
> > i've been using a js-console for a while and
> > found it useful so i thought i'll ported it to DynAPI
> > and share it with you.
>=20
> > with the console you get a small popup-window
> > to which you are able to write variables, messages
> > and so on. very usefull instead of those alert's
>=20
> > put the console.js in dynapi/util/=20
>=20
> > methods:=20
>=20
> > DynAPI.console.open()
> > opens the console-window
>=20
> > DynAPI.console.write(msg)
> > writes msg to the console
> > if the console isn't opened, this will be done for you.
> > internet explorer will also scroll to the bottom of the console=20
> > where the newest messages are, couldn't found out how
> > you do this in netscape
>=20
> > DynAPI.console.close()
> > closes the console-window
>=20
> > DynAPI.console.enable()
> > enables the console
>=20
> > DynAPI.console.disable()
> > disables the console (the console wont open or be written to)
>=20
> > DynAPI.console.clear()
> > clears the console window
>=20
>=20
> > example:
>=20
> > DynAPI.setLibraryPath('dynapi/src/lib')
> > DynAPI.include('dynapi.api.*')
> > DynAPI.include('dynapi.util.console')
>=20
> > DynAPI.onLoad=3Dfunction() {
> > layer =3D new DynLayer(null,40,10,25,50,'red');
> > DynAPI.document.addChild(layer);
>=20
> > DynAPI.console.write(layer.toString());
> > DynAPI.console.write('position: '+layer.x+'x'+layer.y);
> > DynAPI.console.write('size: '+layer.w+'x'+layer.h);
> > };
>=20
> > (leave the console open when you reload the
> > page, then the console-window's position and
> > size will remain)
>=20
> > cheers
> > /martin
>=20
>=20
>=20
> _______________________________________________
> Dynapi-Dev mailing list
> Dyn...@li...
> http://lists.sourceforge.net/lists/listinfo/dynapi-dev
|
|
From: <tr...@us...> - 2001-01-18 21:02:45
|
Have you seen the debug.js file that was in the API about 6-10 months ago?
It did everything console does, but with varaible watching, and object
comparison.
Later versions had object tree walkers as well.
> -----Original Message-----
> From: dyn...@li...
> [mailto:dyn...@li...]On Behalf Of
> martin ström
> Sent: Thursday, January 18, 2001 3:11 PM
> To: dyn...@li...
> Subject: Re: [Dynapi-Dev] small DynAPI-util: console
>
>
> okey, i've added dumpProperties() it
> takes (obj, hidemethods) as arguments
>
> obj is of course the object you want to dump.
> if hidemethods is true then no methods will
> be listed.
>
> All properties/methods/whatever will be listed
> in alphabetic order just to make it easier find
> a specific value.
>
> (if this will be available via CVS, can somebody
> else post it? currently i only got CVS-read-access
> working..)
>
> /martin
>
> ----- Original Message -----
> From: "Robert Rainwater" <rra...@ya...>
> To: "DynAPI Development List" <dyn...@li...>
> Sent: Thursday, January 18, 2001 5:54 PM
> Subject: Re: [Dynapi-Dev] small DynAPI-util: console
>
>
> >
> > Nice. It would be even better if it had a dumpProperties
> method, that could
> > dump all of the properties of an object.
> >
> > Like:
> > DynAPI.console.dumpProperties(myLayer);
> >
> > --
> > // Robert Rainwater
> >
> > On 1/18/2001, 11:37:25 AM EST, martin wrote about
> "[Dynapi-Dev] small DynAPI-util: console":
> >
> > > i've been using a js-console for a while and
> > > found it useful so i thought i'll ported it to DynAPI
> > > and share it with you.
> >
> > > with the console you get a small popup-window
> > > to which you are able to write variables, messages
> > > and so on. very usefull instead of those alert's
> >
> > > put the console.js in dynapi/util/
> >
> > > methods:
> >
> > > DynAPI.console.open()
> > > opens the console-window
> >
> > > DynAPI.console.write(msg)
> > > writes msg to the console
> > > if the console isn't opened, this will be done for you.
> > > internet explorer will also scroll to the bottom of the console
> > > where the newest messages are, couldn't found out how
> > > you do this in netscape
> >
> > > DynAPI.console.close()
> > > closes the console-window
> >
> > > DynAPI.console.enable()
> > > enables the console
> >
> > > DynAPI.console.disable()
> > > disables the console (the console wont open or be written to)
> >
> > > DynAPI.console.clear()
> > > clears the console window
> >
> >
> > > example:
> >
> > > DynAPI.setLibraryPath('dynapi/src/lib')
> > > DynAPI.include('dynapi.api.*')
> > > DynAPI.include('dynapi.util.console')
> >
> > > DynAPI.onLoad=function() {
> > > layer = new DynLayer(null,40,10,25,50,'red');
> > > DynAPI.document.addChild(layer);
> >
> > > DynAPI.console.write(layer.toString());
> > > DynAPI.console.write('position: '+layer.x+'x'+layer.y);
> > > DynAPI.console.write('size: '+layer.w+'x'+layer.h);
> > > };
> >
> > > (leave the console open when you reload the
> > > page, then the console-window's position and
> > > size will remain)
> >
> > > cheers
> > > /martin
> >
> >
> >
> > _______________________________________________
> > Dynapi-Dev mailing list
> > Dyn...@li...
> > http://lists.sourceforge.net/lists/listinfo/dynapi-dev
>
>
|
|
From: Robert R. <rra...@ya...> - 2001-01-18 20:43:59
|
I will add it to CVS shortly.
--
// Robert Rainwater
On 1/18/2001, 3:11:12 PM EST, martin wrote about "[Dynapi-Dev] small DynAPI-util: console":
> okey, i've added dumpProperties() it
> takes (obj, hidemethods) as arguments
> obj is of course the object you want to dump.
> if hidemethods is true then no methods will
> be listed.
> All properties/methods/whatever will be listed
> in alphabetic order just to make it easier find
> a specific value.
> (if this will be available via CVS, can somebody
> else post it? currently i only got CVS-read-access
> working..)
> /martin
> ----- Original Message -----
> From: "Robert Rainwater" <rra...@ya...>
> To: "DynAPI Development List" <dyn...@li...>
> Sent: Thursday, January 18, 2001 5:54 PM
> Subject: Re: [Dynapi-Dev] small DynAPI-util: console
>>
>> Nice. It would be even better if it had a dumpProperties method, that could
>> dump all of the properties of an object.
>>
>> Like:
>> DynAPI.console.dumpProperties(myLayer);
>>
>> --
>> // Robert Rainwater
>>
>> On 1/18/2001, 11:37:25 AM EST, martin wrote about "[Dynapi-Dev] small DynAPI-util: console":
>>
>> > i've been using a js-console for a while and
>> > found it useful so i thought i'll ported it to DynAPI
>> > and share it with you.
>>
>> > with the console you get a small popup-window
>> > to which you are able to write variables, messages
>> > and so on. very usefull instead of those alert's
>>
>> > put the console.js in dynapi/util/
>>
>> > methods:
>>
>> > DynAPI.console.open()
>> > opens the console-window
>>
>> > DynAPI.console.write(msg)
>> > writes msg to the console
>> > if the console isn't opened, this will be done for you.
>> > internet explorer will also scroll to the bottom of the console
>> > where the newest messages are, couldn't found out how
>> > you do this in netscape
>>
>> > DynAPI.console.close()
>> > closes the console-window
>>
>> > DynAPI.console.enable()
>> > enables the console
>>
>> > DynAPI.console.disable()
>> > disables the console (the console wont open or be written to)
>>
>> > DynAPI.console.clear()
>> > clears the console window
>>
>>
>> > example:
>>
>> > DynAPI.setLibraryPath('dynapi/src/lib')
>> > DynAPI.include('dynapi.api.*')
>> > DynAPI.include('dynapi.util.console')
>>
>> > DynAPI.onLoad=function() {
>> > layer = new DynLayer(null,40,10,25,50,'red');
>> > DynAPI.document.addChild(layer);
>>
>> > DynAPI.console.write(layer.toString());
>> > DynAPI.console.write('position: '+layer.x+'x'+layer.y);
>> > DynAPI.console.write('size: '+layer.w+'x'+layer.h);
>> > };
>>
>> > (leave the console open when you reload the
>> > page, then the console-window's position and
>> > size will remain)
>>
>> > cheers
>> > /martin
>>
>>
>>
>> _______________________________________________
>> Dynapi-Dev mailing list
>> Dyn...@li...
>> http://lists.sourceforge.net/lists/listinfo/dynapi-dev
|