Problems getting Introspector to fire up

12 views
Skip to first unread message

robg

unread,
Oct 13, 2009, 2:48:09 AM10/13/09
to Dojo Extensions for Adobe AIR
Hi,
This is probably a newbie problem but I was hoping someone can help.
Using dAIR for our first app (very cool) and migrating some of our
Dojo based app to the framework. Have the AirSDK loaded and the demo
Console app works fine.
We are using dair.Application and dair.Window to bring up our new
component. In both the initial html file (that creates the window)
and the subsequent window html file we have djConfig set as per the
Sitepen site and test code. Can't for the life of us get the console
window to appear. The initial html file is:

<head>
<script>
djConfig={
isDebug:true,
parseOnLoad: true,
airConfig:{
terminal:true, // logs to terminal window, does not open Console
debuggerKey:119, // the keyCode that opens the Console (doesn't
really work)
introspectorKey:118, // the keyCode that opens the Console
showTimestamp:false, // whether to show a timestamp on every line
showSender:false // whether to show the file on every line
}
}
</script>
<script type="text/javascript" src="../dojo/dojo.js"></script>
<script type="text/javascript" src="../dair/Aliases.js"></script>
<script type="text/javascript">
dojo.require("dair.AIR");
dojo.require("dair.Aliases");
dojo.require("dair.Application");
dojo.require("dair.Window");
var mosaisCM;
dojo.addOnLoad(function(){
mosaisCM = new dair.Application({});
var w = new dair.Window({
href: "app:/js/mosais/apptest.html",
size: {
w:300, h:658
},
alwaysInFront:false,
resizable: false
});
});
</script>
</head>

and apptest.html (snippet) is:

<head>
<script>
djConfig={
isDebug:true,
parseOnLoad: true,
airConfig:{
terminal:false, // logs to terminal window, does not open Console
debuggerKey:119, // the keyCode that opens the Console (doesn't
really work)
introspectorKey:118, // the keyCode that opens the Console
showTimestamp:false, // whether to show a timestamp on every line
showSender:false // whether to show the file on every line
}
}
</script>
<script type="text/javascript" src="../dojo/dojo.js"></script>
<script type="text/javascript" src="../dair/Aliases.js"></script>
<link href="../../css/mosaisCM.css" rel="stylesheet">
<script type="text/javascript">
dojo.require("dair.AIR");
dojo.require("dair.Aliases");
dojo.require("dair.Application");
dojo.require("dair.Window");
dojo.require("dijit.layout.AccordionContainer");

any console.log etc. message does not fire up the introspector. Any
help/ideas very much appreciated.

Cheers
Rob

robg

unread,
Oct 13, 2009, 11:25:27 PM10/13/09
to Dojo Extensions for Adobe AIR
OK, must have been some wierd characters in the src file as starting
with the Console.html file and editing worked.

The base application now loads the Introspector, and console messages
from that application show up in the console. It then starts a new
dAIR application/window, and console messages created in this
application do not appear in the console. I have tried starting the
console from the second (created) application with no success, and
even simply calling the Console.html as the content for the second
window does not fire up the Introspector.

Is there any way to have console messages appear in the introspector
from created windows/applications? I have used air.trace to have some
logging to the command line but this is not optimum. The DOM and
inspector in the Introspector show up the entire application, it
appears that console.log messages are not.

Any help much appreciated.

Cheers
Rob
Reply all
Reply to author
Forward
0 new messages