Behavior examples

  • Framesets

    You can use the exit points not only to define behavior, but also to define framesets. In the application configuration page you can specify the frame, where certain interactions should occur. For example, to have the folder and models opened in two frames in the same window, you could have the following modelselect.aspx (modelselect.jsp):

    <HTML>
    	<HEAD>
    		<TITLE>ITP/OnLine Server Sample Application</TITLE>
    	</HEAD>
    	<FRAMESET cols="250,500" framespacing="0" scrolling="no">
    		<frame src="openfolders.jsp" name="folders" />
    		<frame src="empty.jsp" name="models"/>
    	</FRAMESET>
    </HTML>
    

    If the value "models" is configured as Model List Frame on the configuration page of the application, the list of models is now shown in the right frame.

  • Open Microsoft Word non-maximized

    The modelend.aspx (modelend.jsp) exit point for the provided Sample2 and newSample applications use ActiveX to open the result document in Microsoft Word. By default, the window in which Microsoft Word is opened is maximized. For ITPOLSActiveX3 this behavior can be changed by locating the doInitWordControl() function, and adding wordcontrol.MaximizeUponPopup = 0 to it. This leads to the following block of code:

    function doInitWordControl()
    {
       wordcontrol.OLSUploadURL = "";
       wordcontrol.OLSDownloadURL = "";
       wordcontrol.FileAccessStyle = 1;
       wordcontrol.Language = "en";
       wordcontrol.MaximizeUponPopup = 0;
    }