Alguien sabe el porque ... o estoy usando una funcion mal ??
Gracias por la ayuda ...
Código PHP:
<?xml version="1.0" encoding="[CONTENT_ENCODING/]"?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "../../css/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="[LANG_CODE/]" lang="[LANG_CODE/]" dir="[BASE_DIRECTION/]">
<head>
<meta http-equiv="Content-Type" content="[CONTENT_TYPE/]" />
<title>[LANG]title[/LANG]</title>
<style type="text/css">
body {
padding:0;
margin:0;
}
</style>
[STYLE_SHEETS/]
<!--[if lt IE 7]>
<link rel="stylesheet" type="text/css" href="css/ie5-6.css"/>
<![endif]-->
<script src="js/chat.js" type="text/javascript" charset="UTF-8"></script>
<script src="js/lang/[LANG_CODE/].js" type="text/javascript" charset="UTF-8"></script>
<script src="js/config.js" type="text/javascript" charset="UTF-8"></script>
<script type="text/javascript">
// <![CDATA[
function initializeLoginPage() {
document.getElementById('userNameField').focus();
if(!ajaxChat.isCookieEnabled()) {
var node = document.createElement('div');
var text = document.createTextNode(ajaxChatLang['errorCookiesRequired']);
node.appendChild(text);
document.getElementById('errorContainer').appendChild(node);
}
}
ajaxChatConfig.sessionName = '[SESSION_NAME/]';
ajaxChatConfig.sessionUsuario = '[SESSION_USUARIO/]';
ajaxChatConfig.sessionContrasena = '[SESSION_CONTRASENA/]';
ajaxChatConfig.defaultBienvenida = '[DEFAUL_BIENVENIDA/]';
ajaxChatConfig.cookieExpiration = parseInt('[COOKIE_EXPIRATION/]');
ajaxChatConfig.cookiePath = '[COOKIE_PATH/]';
ajaxChatConfig.cookieDomain = '[COOKIE_DOMAIN/]';
ajaxChatConfig.cookieSecure = '[COOKIE_SECURE/]';
ajaxChat.init(ajaxChatConfig, ajaxChatLang, true, true, false);
// ]]>
</script>
<script language="JavaScript">
function enviar_formulario(){
document.loginForm.submit()
}
</script>
<link href="../css/estilos.css" rel="stylesheet" type="text/css"/>
</head>
<body onload="initializeLoginPage(); enviar_formulario();">
<table width="340" height="500" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td width="100%" valign="top">
<form name="loginForm" id="loginForm" action="[LOGIN_URL/]" method="post" enctype="application/x-www-form-urlencoded">
<div id="loginFormContainer">
<input type="hidden" name="url" id="redirectField" value="[REDIRECT_URL/]"/>
<div align="center">
<input name="userName" type="hidden" id="userNameField" value="[SESSION_USUARIO/]"/>
<input name="password" type="hidden" id="passwordField" value="[SESSION_CONTRASENA/]"/>
</div>
<div align="center"><label for="channelField"></label>
<select name="channelName" id="channelField" type="hidden" style="display:none">
[CHANNEL_OPTIONS/]
</select>
</div>
<div class="titulo_ultimos" align="justify" style="padding-top:20px; padding-left:10px; padding-right:10px;">[DEFAUL_BIENVENIDA/]</div>
<div align="center" style="padding-top:20px;">
<input type="submit" name="submit" id="loginButton" value="[LANG]login[/LANG]"/>
</div>
</div>
</form>
</td>
</tr>
<tr>
<td valign="top" style="padding-top:20px;">
<div align="center" class="tituloesp" id="errorContainer"> [ERROR_MESSAGES/]
<noscript>
<div>[LANG]requiresJavaScript[/LANG]</div>
</noscript>
</div></td>
</tr>
</table>
</body>
</html>