therkyn
Jun 20 2006, 08:03 PM
Greg,
Sorry to be an idiot, I realized you worked hard to idiot proof the docs on the XNav package. You mention I should just be able to add the vbs pieces to a jscript program, but I'm curious, do I need to add the .vbs versions of all of the normal commands as well as the jscript version?
I tried the obvious:
Original .swx file:
| CODE |
<project RegisterStdHandlers="False" RenameDPT="False"> <script lib="True" src="SkapiDefs.js"/> <script lib="True" src="skunkworkslib.js"/> <script lib="True" src="SkunkNav.js"/> <script src="Salvage Sales.js"/> </project>
|
New .swx file:
| CODE |
<project RegisterStdHandlers="False" RenameDPT="False"> <script lib="True" src="SkapiDefs.js"/> <script lib="True" src="skunkworkslib.js"/> <script lib="True" src="SkunkNav.js"/> <script lib="True" src="SkapiDefs.vbs"/> <script lib="True" src="Strings.vbs"/> <script lib="True" src="InputBox.vbs"/> <script lib="True" src="FileBrowser.vbs"/> <script lib="True" src="xnav\Error.vbs"/> <script lib="True" src="xnav\Trace.vbs"/> <script lib="True" src="xnav\AcoUtil.vbs"/> <script lib="True" src="xnav\Assess.vbs"/> <script lib="True" src="xnav\Pauser.vbs"/> <script lib="True" src="xnav\Registry.vbs"/> <script lib="True" src="xnav\RegvarCls.vbs"/> <script lib="True" src="xnav\XmlUtil.vbs"/> <script lib="True" src="xnav\Xnav.vbs"/> <script lib="True" src="xnav\XrouteCls.vbs"/> <script lib="True" src="xnav\WayptSimpleCls.vbs"/> <script lib="True" src="xnav\WayptDoorCls.vbs"/> <script lib="True" src="xnav\WayptJumpCls.vbs"/> <script lib="True" src="xnav\WayptPortalCls.vbs"/> <script lib="True" src="xnav\WayptRecallCls.vbs"/> <script lib="True" src="xnav\WayptIncludeCls.vbs"/> <script src="Salvage Sales-Xnav.js"/> </project>
|
But of course, that didnt seem to work (was getting errors starting in the errors section... something's doesnt seem right as I try to mix the .js and .vbs files... or perhaps I'm just a dummy... Anything particularly obvious?
A brief little comment on how to add it to a standard .js grouping would be excellent...
Thanks,
-t
GKusnick
Jun 22 2006, 01:15 PM
You still have SkunkNav.js in your file list. If you've switched your code over to call Xnav instead, there's no reason to keep loading SkunkNav. It's possible that doing so is causing some function name collisions.
Similarly, you don't need both SkapiDefs.js and SkapiDefs.vbs. One or the other is sufficient. All public names defined in any script file are visible to every other script file, regardless of language.
Also you have lib="True" on all the Xnav files. This means that SkunkWorks will look for those files under your SkunkWorks\Libraries folder rather than under your project folder. Double-check that you've actually put the Xnav files where your .swx file says you did, i.e. in SkunkWorks\Libraries\xnav.
Apart from that, what you've done looks right. If you're still getting errors, post the specifics and I'll try to make sense of them.
therkyn
Jun 23 2006, 09:03 PM
It makes sense when you mention it that I'm having skunknav v. xnav issues.
Thanks for the info that I dont have to duplicate the .js and .vbs defs files.
I did put the xnav under libraries assuming I'll want to access it from multiple places, but good catch.
Thanks,
-t
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please
click here.