robg
unread,Oct 13, 2009, 2:48:09 AM10/13/09Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
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