fo******@yahoo.co.uk writes:
Hi
I'm after information on the hard stuff in javascript (no, not alt.binaries...)
(1) Is there anyway of tracing calls in javascript.
Not generally. Different browsers have different extensions to
Javascript that might allow that. I am not sure how, but the Venkman
debugger for Gecko browsers has breakpoints, so something must be
possible.
(2) Can I determine the methods and data of any object in javascript
somehow?
Not all of it. Propertie of objects can be set "don't enumerate". Only
original propertie (like the toString property of Object.prototype)
are note enumerable. All properties you add yourself will be enumerate.
You can go through all the enuymerable properties of an object with
the for(in) construction:
for (propertyName in objectRef) {
... objectRef[propertyName] ...
}
Again, there might be proprietary methods for accessing the
non-enumerable properties, but it is not part of Javascript core.
/L
--
Lasse Reichstein Nielsen -
lr*@hotpop.com
DHTML Death Colors: <URL:http://www.infimum.dk/HTML/rasterTriangleDOM.html>
'Faith without judgement merely degrades the spirit divine.'