home *** CD-ROM | disk | FTP | other *** search
/ Organic Chemistry (8th Edition) / Image.iso / mac / organic / cmd / command.xml next >
Extensible Markup Language  |  2003-05-08  |  10KB  |  401 lines

  1. <?xml version="1.0"?>
  2. <commands>
  3. <!-- ================== Update ================== -->
  4. <command id="update">
  5. <script><![CDATA[
  6. function doCommand()
  7. {
  8.     if(<?11008?>)
  9.         top.reloadNoteEditorWin();
  10.     else
  11.         top.closeNoteEditorWin();
  12. }
  13. ]]></script>
  14. <body><![CDATA[
  15. <applet code="com.maris.edugen.client.CommandApplet.class" name="CommandApplet" width="2" height="2"
  16. codebase="<?16?>" archive="<?11?>?sid=<?1003?>&msg=300&file=applets/jiconbar.jar,<?11?>?sid=<?1003?>&msg=300&file=applets/jtreectrl.jar">
  17. <param name="TargetIDs" value="content,content,iconbar">
  18. <param name="Methods" value="updateState,updateSelectedItem,enableBackForward">
  19. </applet>
  20. <applet code="com.maris.edugen.client.CommandApplet.class" name="CommandApplet" width="2" height="2"
  21. codebase="<?16?>" archive="<?11?>?sid=<?1003?>&msg=300&file=applets/history.jar,<?11?>?sid=<?1003?>&msg=300&file=applets/panels.jar,<?11?>?sid=<?1003?>&msg=300&file=applets/jiconbar.jar">
  22. <param name="TargetIDs" value="historylist">
  23. <param name="Methods" value="reinit">
  24. </applet>
  25. ]]></body>
  26. </command>
  27. <command id="shows_update">
  28. <script><![CDATA[
  29. function doCommand()
  30. {
  31.     top.frames["iconbar"].document.applets["IconBar"].enableBackForward();
  32. }
  33. ]]></script>
  34. </command>
  35. <!-- ================== Tree's commands  ================== -->
  36. <command id="browsecmd">
  37. <script><![CDATA[
  38. function doCommand()
  39. {
  40.     var target = "<?7036?>";
  41.     var request = "<?7035?>";
  42.     if(target  == "bridge")
  43.     {
  44.         self.location.replace(request);
  45.     }
  46.     else if(target == "content")
  47.     {
  48.         top.setTarget();
  49.         top.targetFrame.location = request;
  50.     }
  51.     top.closeBrowseWin();
  52. }
  53. ]]></script>
  54. </command>
  55. <!-- ================== History ================== -->
  56. <command id="history">
  57. <script><![CDATA[
  58. function doCommand()
  59. {
  60.     top.newWin( "history", "<?11?>?sid=<?1003?>&msg=3&file=media/history/history_frame.htm");
  61.     top.closeBrowseWin();
  62. }
  63. ]]></script>
  64. </command>
  65. <command id="history_close">
  66. <script><![CDATA[
  67. function doCommand()
  68. {
  69.     top.closeHistoryWin();
  70. }
  71. ]]></script>
  72. </command>
  73. <command id="history_view">
  74. <script><![CDATA[
  75. function doCommand()
  76. {
  77.     top.setTarget();
  78.     top.targetFrame.location = getPrefix() + "<?11?>?sid=<?1003?>&msg=13001";
  79. }
  80. ]]></script>
  81. </command>
  82. <!-- ================== Bookmarks ================== -->
  83. <command id="toggle_bookmark">
  84. <script><![CDATA[
  85. function doCommand()
  86. {
  87.     var setBookmarksOnServer = <?10006?>;
  88.     if(setBookmarksOnServer != null)
  89.     {
  90.         top.setTarget();
  91.         if( top.targetFrame.frames[0] != null )
  92.         {
  93.             top.targetFrame.frames[0].location.reload();
  94.         }
  95.         else
  96.         {
  97.             top.targetFrame.location.reload();
  98.         }
  99.     }
  100. }
  101. ]]></script>
  102. <body><![CDATA[
  103. <applet code="com.maris.edugen.client.CommandApplet.class" name="CommandApplet" width="2" height="2"
  104. codebase="<?16?>" archive="<?11?>?sid=<?1003?>&msg=300&file=applets/bookmarks.jar,<?11?>?sid=<?1003?>&msg=300&file=applets/panels.jar,<?11?>?sid=<?1003?>&msg=300&file=applets/jiconbar.jar">
  105. <param name="TargetIDs" value="bookmarkslist">
  106. <param name="Methods" value="reinit">
  107. </applet>
  108. ]]></body>
  109. </command>
  110. <command id="bookmarks">
  111. <script><![CDATA[
  112. function doCommand()
  113. {
  114.     top.newWin( "bookmarks", "<?11?>?sid=<?1003?>&msg=3&file=media/bookmarks/bookmarks_frame.htm");
  115.     top.closeBrowseWin();
  116. }
  117. ]]></script>
  118. </command>
  119. <command id="bookmark_clear">
  120. <script><![CDATA[
  121. function doCommand()
  122. {
  123.       top.setTarget();
  124.       if(<?10003?>)
  125.       {
  126.            if( top.targetFrame.frames[0] != null )
  127.            {
  128.             top.targetFrame.frames[0].location.reload();
  129.         }
  130.         else
  131.         {
  132.             top.targetFrame.location.reload();
  133.         }
  134.     }
  135. }
  136. ]]></script>
  137. </command>
  138. <command id="bookmark_view">
  139. <script><![CDATA[
  140. function doCommand()
  141. {
  142.     top.setTarget();
  143.     top.targetFrame.location = getPrefix() + "<?11?>?sid=<?1003?>&msg=10005";
  144. }
  145. ]]></script>
  146. </command>
  147. <command id="bookmarks_close">
  148. <script><![CDATA[
  149. function doCommand()
  150. {
  151.     top.closeBookmarksWin();
  152. }
  153. ]]></script>
  154. </command>
  155. <!-- ================== Notes ================== -->
  156. <command id="toggle_note">
  157. <script><![CDATA[
  158. function doCommand()
  159. {
  160.     var setNoteOnServer = <?11001?>;
  161.     if(setNoteOnServer != null)
  162.     {
  163.         if(setNoteOnServer == true)
  164.             top.newWin( "notes", "<?11?>?sid=<?1003?>&msg=3&file=media/notes/notes_frame.htm");
  165.         else
  166.         {
  167.             top.setTarget();
  168.             if( top.targetFrame.frames[0] != null )
  169.                 top.targetFrame.frames[0].location.reload();
  170.             else
  171.                 top.targetFrame.location.reload();
  172.         }
  173.          self.location.replace(getPrefix() + "<?11?>?sid=<?1003?>&msg=4&xml=/cmd/command.xml&xsl=/cmd/command.xsl&name=selector&select=commands/command[@id%3D'noteeditor']");
  174.      }
  175.     if(top.m_notesWin!=null && !top.m_notesWin.closed && top.m_notesWin.document.applets["NotesApplet"] != null)
  176.         top.m_notesWin.document.applets["NotesApplet"].reinit();
  177. }
  178. ]]></script>
  179. </command>
  180. <command id="notes">
  181. <script><![CDATA[
  182. function doCommand()
  183. {
  184.     top.newWin( "notes", "<?11?>?sid=<?1003?>&msg=3&file=media/notes/notes_frame.htm");
  185. }
  186. ]]></script>
  187. </command>
  188. <command id="note_view">
  189. <script><![CDATA[
  190. function doCommand()
  191. {
  192.     top.setTarget();
  193.     top.targetFrame.location = getPrefix() + "<?11?>?sid=<?1003?>&msg=11006";
  194.     top.newWin( "noteeditor", "<?11?>?sid=<?1003?>&msg=3&file=media/notes/noteeditor_frame.htm");
  195. }
  196. ]]></script>
  197. </command>
  198. <command id="note_clear">
  199. <script><![CDATA[
  200. function doCommand()
  201. {
  202.     if(<?11003?>)
  203.       {
  204.         top.setTarget();
  205.         if( top.targetFrame.frames[0] != null )
  206.             top.targetFrame.frames[0].location.reload();
  207.         else
  208.             top.targetFrame.location.reload();
  209.         top.closeNoteEditorWin();
  210.     }
  211. }
  212. ]]></script>
  213. </command>
  214. <command id="notes_close">
  215. <script><![CDATA[
  216. function doCommand()
  217. {
  218.     top.closeNotesWin();
  219. }
  220. ]]></script>
  221. </command>
  222. <command id="noteeditor">
  223. <script><![CDATA[
  224. function doCommand()
  225. {
  226.     top.newWin( "noteeditor", "<?11?>?sid=<?1003?>&msg=3&file=media/notes/noteeditor_frame.htm");
  227. }
  228. ]]></script>
  229. </command>
  230. <command id="noteeditor_close">
  231. <script><![CDATA[
  232. function doCommand()
  233. {
  234.     top.closeNoteEditorWin();
  235. }
  236. ]]></script>
  237. </command>
  238. <command id="mail_cmd">
  239. <script><![CDATA[
  240. function doCommand()
  241. {
  242.     self.location = "<?11012?>";
  243. }
  244. ]]></script>
  245. </command>
  246. <!-- ================== Search ================== -->
  247. <command id="search">
  248. <script><![CDATA[
  249. function doCommand()
  250. {
  251.     top.newWin("search", "<?11?>?sid=<?1003?>&msg=3&file=media/search/search_frame.htm");
  252.     top.closeBrowseWin();
  253. }
  254. ]]></script>
  255. </command>
  256. <command id="search_close">
  257. <script><![CDATA[
  258. function doCommand()
  259. {
  260.     top.closeSearchWin();
  261. }
  262. ]]></script>
  263. </command>
  264. <!-- ================== Wiley ================== -->
  265. <command id="wiley">
  266. <script><![CDATA[
  267. function doCommand()
  268. {
  269.     window.open("http://www.wiley.com/college/solomons", "Organic", "resizable=yes,copyhistory=no,directories=no,location=yes,menubar=yes,scrollbars=yes,status=yes,toolbar=yes");
  270. }
  271. ]]></script>
  272. </command>
  273. <!-- ================== Help ================== -->
  274. <command id="help">
  275. <script><![CDATA[
  276. function doCommand()
  277. {
  278.     top.newWin("help", "<?11?>?sid=<?1003?>&msg=3&file=media/help/help.htm");
  279.     top.closeBrowseWin();
  280. }
  281. ]]></script>
  282. </command>
  283.  
  284. <command id="helpglobe">
  285. <script><![CDATA[
  286. function doCommand()
  287. {
  288.     top.newWin("help", "<?11?>?sid=<?1003?>&msg=3&file=media/help/helpglobe.htm");
  289.     top.closeBrowseWin();
  290. }
  291. ]]></script>
  292. </command>
  293. <!-- ================== Browse ================== -->
  294. <command id="browse">
  295. <script><![CDATA[
  296. function doCommand()
  297. {
  298.     top.newWin("browse", "<?11?>?sid=<?1003?>&msg=3&file=browsetree.htm");
  299. }
  300. ]]></script>
  301. </command>
  302. <!-- ================== Logout ================== -->
  303. <command id="logout">
  304. <script><![CDATA[
  305. function doCommand()
  306. {
  307.     if(window.confirm("Are you sure you want to exit the program?"))
  308.     {
  309.         top.location = getPrefix() + "<?11?>?sid=<?1003?>&msg=5";
  310.     }
  311. }
  312. ]]></script>
  313. </command>
  314.  
  315. <command id="credits">
  316. <script><![CDATA[
  317. function doCommand()
  318. {
  319.     top.newWin("credits", "<?11?>?sid=<?1003?>&msg=3&file=media/about/credits.htm");
  320.     top.closeBrowseWin();
  321. }
  322. ]]></script>
  323. </command>
  324. <command id="glossary">
  325. <script><![CDATA[
  326. function doCommand()
  327. {
  328.     top.newWin("glossary", "<?11?>?sid=<?1003?>&msg=3&file=media/glossary/glossary.htm");
  329.     top.closeBrowseWin();
  330. }
  331. ]]></script>
  332. </command>
  333. <command id="glossary_close">
  334. <script><![CDATA[
  335. function doCommand()
  336. {
  337.     top.closeGlossaryWin();
  338. }
  339. ]]></script>
  340. </command>
  341. <!-- ================== Startpage ================== -->
  342. <command id="startpage">
  343. <script><![CDATA[
  344. function doCommand()
  345. {
  346.       top.setTarget();
  347.     top.targetFrame.location = getPrefix() + "<?11?>?sid=<?1003?>&msg=7000&pageid=start";
  348. }
  349. ]]></script>
  350. </command>
  351. <!-- ================== Resource Manager ================== -->
  352. <command id="manager">
  353. <script><![CDATA[
  354. function doCommand()
  355. {
  356.     top.setTarget();
  357.     top.targetFrame.location = getPrefix() + "<?11?>?sid=<?1003?>&msg=7000&pageid=resource_manager";
  358. }
  359. ]]></script>
  360. </command>
  361. <command id="playlist">
  362. <script><![CDATA[
  363. function doCommand()
  364. {
  365.     top.setTarget();
  366.     top.targetFrame.location = getPrefix() + "<?11?>?sid=<?1003?>&msg=7000&pageid=play_list";
  367. }
  368. ]]></script>
  369. </command>
  370. <command id="menu">
  371. <script><![CDATA[
  372. function doCommand()
  373. {
  374.     top.setTarget();
  375.     top.targetFrame.location = getPrefix() + "<?11?>?sid=<?1003?>&msg=7000&pageid=menu";
  376. }
  377. ]]></script>
  378. </command>
  379. <command id="instructions">
  380. <script><![CDATA[
  381. function doCommand()
  382. {
  383.     top.newWin("instructions", "<?11?>?sid=<?1003?>&msg=4&xml=/media/content/menu/instructions.xml&xsl=/media/content/xmlbody.xsl");
  384.     top.closeBrowseWin();
  385. }
  386. ]]></script>
  387. </command>
  388.  
  389.  
  390.  
  391. <!-- ================== Alert ================== -->
  392. <command id="alert">
  393. <script><![CDATA[
  394. function doCommand()
  395. {
  396.     alert('Not implemented yet!');
  397. }
  398. ]]></script>
  399. </command>
  400. </commands>
  401.