Ever had the need for a CFDUMP but in Javascript? If so, use this :)
function inspect(obj) {
var str = "<font face='arial' size='-2'>";
for (var prop in obj)
str += "obj." + prop + " = " + obj[prop] + "<br>"
top.debugWindow.document.writeln(str);
}
pass the Object into this function and it will return a dump of that object.
I have a blank debug iFrame in all my apps that i just write debug
information (ie much like Actionscripts Output window)
Scott.
--
Freelance Application Developer / Designer
--
ph: 07 3288 6702
mob: 04040 32812
--
url: http://www.spidaweb.com
---
You are currently subscribed to cfaussie as: [email protected]
To unsubscribe send a blank email to [EMAIL PROTECTED]
MX Downunder AsiaPac DevCon - http://mxdu.com/