' Initialization Functions
' Creates the Browser Interface for TaskPads
on error resume next ' prevents constant redefinition errors
const TP_SCRIPT_FOR_MENU = "if not sysevent.clientSession.CurrentLocation is nothing then sysevent.ClientSession.CurrentLocation.REPLACETHIS"
on error goto 0
TPCreateInterface
'Main body of work
sub TPCreateInterface()
''''''Shortened
''''''
end sub
The VBScript placed in Global Scripts are executed every time that Premise Server starts. Take advantage of this by placing script outside of Functions or Subs. To avoid this execution, place code within a Function or Sub and it will only execute when the procedure is called from another script.