PWB javascript events

For general issues related to PWB v2.

Moderators: Tyler, Scott, PWB v2 Moderator

Post Reply
jsand
Participant
Participant
Posts: 17
Joined: Sat May 20, 2006 11:11 am

PWB javascript events

Post by jsand »

Hi,

I recently inherited a PWB setup when I started working here at the library, and I noticed that our public internet station login code does some things with Javascript and PWB. For example, after a patron logs into our system (via a LAMP backend:

Code: Select all

<script type="text/javascript">
    window.external.PWBHideAddressBar( 'False' )
    window.external.PWBActivity(<?php echo $remains; ?>)
</script>
Are these events documented anywhere? I can't find it in the help files. Thanks in advnace for the help

Scott
Site Admin
Site Admin
Posts: 2539
Joined: Mon Dec 16, 2002 12:31 pm
Location: Rochester, MN
Contact:

Post by Scott »

This functionality is described in the PWBv2.rtf file that is copied into the PWB folder when you install PWB. All the INI settings are described in the PWBv2.rtf document.

The Java code you are seeing is part of the PWB Dynamic External Java Commands that allow a web page to control PWB via Java commands specified in the PWB INI file.


[Java]
Dynamic External Java Commands and keywords section. These commands can be placed on a web page to do the indicated actions. A blank keyword will result in the command being disabled. The keywords should be unique to your implementation in order to provide protection against unauthorized use.

•EnableExternalJava=True
Enables the Dynamic External Java Commands.
•JavaExit=PWBExit
Dynamic External Java Command to exit PWB.
•JavaActivity=PWBActivity
Dynamic External Java Command to set activity timer.
•JavaRegister=PWBRegister
Dynamic External Java Command to change registration number.
PWB INI must not be read only.
•JavaHideToolbar=PWBHideToolbar
Dynamic External Java Command to hide toolbar.
•JavaExecute=PWBExecute
Dynamic External Java Command to execute local applications.
•JavaReadINIFile=PWBReadINI
Dynamic External Java Command to re-read PWB INI file.
•JavaPrint=
Prints from web page following the PWB Printer setup.
•JavaHideAddressBar=
Dynamic External Java Command to hides or show address bar.
Here a few samples and thread for using the Dynamic External Java Commands.
http://www.teamsoftwaresolutions.com/beta/external.htm
http://teamsoftwaresolutions.com/phpBB2 ... .php?t=545
http://teamsoftwaresolutions.com/phpBB2 ... .php?t=278
http://teamsoftwaresolutions.com/phpBB2 ... .php?t=566
http://teamsoftwaresolutions.com/phpBB2 ... .php?t=596

--Scott

Post Reply