メイン・ファイルの横に別のファイル testW.html を作成し、そのファイルでワークライト・アダプターを呼び出そうとしましたが、機能しません:
ここに私のtestW.htmlがあります:
<html>
<head>
<script>window.$ = window.jQuery = WLJQ;</script>
<script type="text/javascript" data-dojo-config="isDebug: false, async: true, parseOnLoad: true, mblHideAddressBar: false" src="dojo/dojo.js"></script>
</head>
<body onload="WL.Client.init({})">
<h1>Hello</h1>
<button type="button" onclick="LoginWS();">Click Me!</button>
<script src="js/PushAppRealmChallengeHandler.js"></script>
<script src="js/initOptions.js"></script>
<script src="js/test2.js"></script>
<script src="js/configFb.js"></script>
<script src="js/messages.js"></script>
</body>
</html>
ここで、LoginWS() は test2.js の関数呼び出しワークライト アダプターです。test2.html で呼び出してみましたが、すべて問題ありません。