The Aggregator reader_logic.js fills in the reader.xul with the values given in the reader_propperties.js script at runtime, i.e. when the reader.xul document is loaded. The Aggregator reader_logic.js provides a few implementor accessable builtin functions:
- new_Page("fully.qualified.uri"); //may be called from a button or menu element. Changes the displayed uri to the one specified. Example:
- toolbarButtonsLabel[1] = "TWM Kiosk";
- toolbarButtonsAction[1] = "new_Page('http://stlouis-shopper.com/~jtjsoftware/kiosk/twm-kiosk.html')";
- xpi_install(name, src); //An xpi InstallTrigger - starts the mozilla xpi installer. The name parameter is unused but must be passed as a string value. The src parameter value would be the complete uri to the installable xpi file. Example:
- toolbarButtonsLabel[4] = "Install kiosk";
- toolbarButtonsAction[4] = "xpi_install('Kiosk Browser', 'http://stlouis-shopper.com/~jtjsoftware/software/kiosk.xpi')";
- SlideShow_forward(); //moves to the next definition in the SlideShow[n] array. When moving forward this function will go from the last element to the first when the end of the SlideShow[n] array is reached. Example:
- toolbarButtonsLabel[0] = "Next Frame";
- toolbarButtonsAction[0] = "SlideShow_forward()";
- SlideShow_back(); //move to the previous definition in the SlideShow[n] array. If the current item is the first [1] element in the array no action is preformed. Example:
- toolbarButtonsLabel[1] = "Previous Frame";
- toolbarButtonsAction[1] = "SlideShow_back()";