Servigistics InService 自訂 > 自訂 InService 登入頁 > InService 登入頁自訂
  
InService 登入頁自訂
您可以自訂登入頁。如需詳細資訊,請參閱在 Servigistics InService 中配置驗證。登出頁由內容 wt.logout.url 所控制。
指定內容 wt.auth.form.loginMarker 以包括登入頁中包含的唯一字串。如此可允許背景 Ajax 資料要求在工作階段逾時的時候自動顯示登入視窗。
例如:wt.auth.form.loginMarker=<form method="POST" action="j_security_check" id="login">
為了更完善地處理 URL,建議您在登入頁中包括以下程式碼,如此一來,較新的瀏覽器便不會刪除用來指定應用程式狀態的雜湊字符。
<script type="text/javascript">
if (window.location.hash) { //Handle logging in to a bookmark
document.forms[0].action += window.location.hash;
}
</script>
若要自訂登入視窗的外觀和行為,可在頁面載入期間以自訂 SmartClient 視窗實例預先填入視窗物件。您可以使用 SmartClient 文件集中的範例或修改由 PTC 提供的現成範例:
isc.RPCManager.loginWindow = isc.Dialog.create({
src: 'app/login/loginSuccess.jsp?ptscsc=true',
showModalMask: true,
isModal: true,
title: "",
autoCenter: true,
showCloseButton: false,
showMinimizeButton: false,
width: 400,
height: 350
});