Ver Mensaje Individual
  #1 (permalink)  
Antiguo 17/07/2008, 17:39
leoalmirante
 
Fecha de Ingreso: abril-2007
Mensajes: 26
Antigüedad: 17 años, 1 mes
Puntos: 0
PROBLEMA: XAJAX y CSS

Buenas tardes a todos, tengo un problema con una pagina que estoy realizando, les cuento:

Resumire el codigo y mostrare las secciones que incurren en el error


tengo un div el cual sus propiedades de css son:

#login_head{
width: 250px;
height: 170px;
clear: both;
margin: 0 auto;
margin-top: 30px;
}

y en la pagina que tengo la estructura es la siguiente:

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Documento sin t&iacute;tulo</title>
<link rel="stylesheet" href="xxx.css" title="XXX" type="text/css">
</head>
<body>
<div id="login_head</div>
</body>
</html>

CUANDO LA EJECUTO EN IE7 Y FIREFOX TODO PERFECTO EL DIV QUEDA CENTRADO EN LA PAGINA, PERO ahora le tengo que agregar AJAX porque es un formulario de ingreso de usuario, estoy trabajando con XAJAX, al crear una instancia del objeto el div se alinea a la izquierda, pero solo en IE7 y en FIREFOX todo bien, el codigo que agrega el XAJAX es el siguiente:


<script type="text/javascript" charset="UTF-8">
/* <![CDATA[ */
try { if (undefined == xajax.config) xajax.config = {}; } catch (e) { xajax = {}; xajax.config = {}; };
xajax.config.requestURI = "http://localhost/sigaphp_galpon/login.php";
xajax.config.statusMessages = false;
xajax.config.waitCursor = true;
xajax.config.version = "xajax 0.5 Beta 4";
xajax.config.legacy = false;
xajax.config.defaultMode = "asynchronous";
xajax.config.defaultMethod = "POST";
/* ]]> */
</script>
<script type="text/javascript" src="classes/xajax/xajax_js/xajax_core.js" charset="UTF-8"></script>
<script type="text/javascript" charset="UTF-8">
/* <![CDATA[ */
window.setTimeout(
function() {
var scriptExists = false;
try { if (xajax.isLoaded) scriptExists = true; }
catch (e) {}
if (!scriptExists) {
alert("Error: the xajax Javascript component could not be included. Perhaps the URL is incorrect?\nURL: classes/xajax/xajax_js/xajax_core.js");
}
}, 2000);
/* ]]> */
</script>

DESPUES DE ESTO VIENE EL CODIGO QUE ESCRIBI ARRIBA, estube leyendo por internet al parecer tiene que ver algo con los charset, pero la verdad no he podido solucionarlo. espero me puedan ayudar, desde ya gracias.