Promotic
WikipediaLinkedInYoutubeTwitterFacebook

onPageLoad - event of object PmWebDir

Description:
The event fires before loading the (pEvent.FilePath) file for the possible change of keywords (i.e. the change of HTML/XML document sent). It is also possible to disable file sending to the client.
Parameters:
pMe(Object) Reference to the Promotic object where the event rises.
pEvent(Object) A referrence to object describing detailed information about the specific event.
pEvent.User - (Object) The User object represent authorized user, who called the request for this page.
pEvent.FilePath - (String) Relative path to the file that is requested from the Web browser.
pEvent.TypeEnable - (Long) It enables to set the type of sending the page to the client. The designer can (according to the user setting, password or the computer address) disable the operation. Setting this parameter is recommended only for special cases. Common security setting is better to be done by standard means of the permissions: WebRead. See also PmWeb.onNewRequest, PmObject-Cfg.Methods.
1 (default) - enabling operation.
-1 - required log-on of the user (if the user hasn't been set) or disabling the user (if the user has been set but the name and password are wrong).
-2 - disabling operation for the client unconditionally.
Note:
The event is fired before loading the requested file. After loading file and changing by keywords, the onPageModify event is fired.

Access to keywords is done by Vars property.

Example:
pMe.Vars("XXtime") = Now
© MICROSYS, spol. s r. o.Tavičská 845/21 703 00 Ostrava-Vítkovice