331N/A<script type="text/javascript">
331N/A
331N/A var serverURLValid = true;
331N/A var platformLocaleValid = true;
331N/A var configDirectoryValid = true;
331N/A var encryptionKeyValid = true;
331N/A var cookieDomainValid = true;
331N/A
331N/A function serverFieldsValid() {
331N/A $('nextTabButton').disabled =
331N/A !(serverURLValid &&
331N/A platformLocaleValid &&
331N/A configDirectoryValid &&
331N/A encryptionKeyValid &&
331N/A cookieDomainValid);
331N/A }
331N/A
331N/A function validateInput(field, handler) {
331N/A var callUrl = "$context$path?actionLink=validateInput";
331N/A var key = "&key=" + field;
331N/A var value = "&value=" + $(field).value;
331N/A ie7fix++;
844N/A callUrl = callUrl + "&ie7fix=" + ie7fix;
331N/A if (handler != null) {
331N/A AjaxUtils.call(callUrl+key+value, handler);
331N/A } else {
331N/A AjaxUtils.call(callUrl+key+value, serverFieldValidated);
331N/A }
331N/A }
618N/A
331N/A function serverURLFieldValidated(response) {
331N/A validated(response, "serverURL");
844N/A }
844N/A
618N/A function serverFieldValidated(response) {
331N/A validated(response, field);
331N/A }
331N/A
331N/A function validated(response, field) {
331N/A if (response.responseText == "true") {
331N/A eval(field + "Valid = true;" );
331N/A $(field + 'Status').innerHTML = okString;
331N/A } else if (response.responseText.search("warning") == 0) {
331N/A eval(field + "Valid = true;" );
331N/A $(field + 'Status').innerHTML = warningImage +
331N/A '<small>' + response.responseText.substring(7) + '</small>';
331N/A
331N/A } else {
331N/A eval(field + "Valid = false;" );
331N/A $(field + 'Status').innerHTML = errorImage +
331N/A '<small>' + response.responseText + '</small>';
331N/A }
331N/A serverFieldsValid();
331N/A field = "";
331N/A }
331N/A
331N/A function validateServerURL() {
331N/A validateInput("serverURL", serverURLFieldValidated);
331N/A validateCookieDomain();
331N/A }
331N/A
331N/A function validateLocale() {
331N/A field = "platformLocale";
331N/A validateInput(field, null);
331N/A }
331N/A
331N/A function validateConfigDir() {
331N/A field = "configDirectory";
331N/A var callUrl = "$context$path?actionLink=validateConfigDir&dir=" +
331N/A encodeURIComponent($(field).value);
331N/A ie7fix++;
callUrl = callUrl + "&ie7fix=" + ie7fix;
AjaxUtils.call(callUrl, serverFieldValidated);
}
function validateCookieDomain() {
field = "cookieDomain";
var callUrl = "$context$path?actionLink=validateCookieDomain&domain=" +
encodeURIComponent($(field).value) + "&serverurl=" + encodeURIComponent($("serverURL").value);
ie7fix++;
callUrl = callUrl + "&ie7fix=" + ie7fix;
AjaxUtils.call(callUrl, serverFieldValidated);
}
</script>
<div style="margin-left:10px;">
<h1>$page.getLocalizedString("step2.title")<img class="pointer" src="$context/assets/images/message.gif"/></h1>
<p>$page.getLocalizedString("step2.description")</p>
<div id="serverSettingsDiv" style="width:610px;">
<p id="allfields"><em>*</em>&nbsp;$page.getLocalizedString("required.field.label")</p>
<b class="xtop"><b class="xt1"></b><b class="xt2"></b><b class="xt3"></b><b class="xt4"></b></b>
<div class="headerBox" >$page.getLocalizedString("step2.server.settings")</div>
<div class="bodyBox" style="height:220px;">
<span>
<table class="temp">
<tr>
<td><label for="serverURL"><em>*&nbsp;</em>$page.getLocalizedString("step2.server.url")</label></td>
<td>
<input id="serverURL" name="serverURL" type="text"
class="text" size="40"
value="$serverURL"
onkeyup="APP.callDelayed(this, validateServerURL)"
onchange="APP.callDelayed(this, validateServerURL)"/>
<span id="serverURLStatus"></span>
</td>
</tr>
<tr>
<td><label for="cookieDomain">$page.getLocalizedString("step2.cookie.domain")</label></td>
<td>
<input id="cookieDomain" name="cookieDomain" type="text"
class="text" style="width:150px"
value="$cookieDomain"
onkeyup="APP.callDelayed(this, validateCookieDomain)"
onchange="APP.callDelayed(this, validateCookieDomain)"/>
<span data-tooltip="$page.getLocalizedString("step2.cookie.domain.help")">
<img class="pointer" alt="help" src="$context/com_sun_web_ui/images/alerts/info_small.gif" width="11" height="11" />
</span>
<span id="cookieDomainStatus"></span>
</td>
</tr>
<tr>
<td><label for="platformLocale"><em>*&nbsp;</em>$page.getLocalizedString("step2.platform.locale")</label></td>
<td>
<input id="platformLocale" name="platformLocale" type="text" class="text" style="width:150px" value="$platformLocale" onchange="APP.callDelayed(this, validateLocale)"/>
<span id="platformLocaleStatus"></span>
</td>
</tr>
<tr>
<td><label for="configDirectory"><em>*&nbsp;</em>$page.getLocalizedString("step2.config.directory")</label></td>
<td>
<input id="configDirectory" name="configDirectory"
type="text" class="text" size="40"
value="$configDirectory" onkeyup="APP.callDelayed(this, validateConfigDir)" />
<span id="configDirectoryStatus">$initialCheck</span>
</td>
</tr>
</table>
</span>
</div>
<div>
<b class="xbottom">
<b class="xbGray1"></b>
<b class="xbGray2"></b>
<b class="xbGray3"></b>
<b class="xbGray4"></b>
</b>
</div>
</div>
</div> <!-- indent div -->