Topic: xajax, ie, select option problem????

what is wrong with this code?

<?php
include './xajax_core/xajax.inc.php';


$xajax = new xajax();

$xajax->registerFunction("crear");
$xajax->processRequest();
$xajax->printJavascript();

function almacenar($formulario){
       $objRespuesta = new xajaxResponse();
   
    $objRespuesta->alert($formulario['santi']);
    return $objRespuesta;
}
?>

<!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=iso-8859-1" />
<title>Documento sin t&iacute;tulo</title>
</head>


<body >
<div id="formulario">
  <select onchange="xajax_almacenar(xajax.getFormValues('formulario'))" name="santi" id="santi">
          <option></option>
            <option>1</option>
            <option selected="selected">2</option>
            <option>3</option>
          </select>
</div>
</body>
</html>

this code is online in http://kleren.comeze.com/ada/formulario … ption.php#

you can see that this run correctly in any browser, but does not in ie. the alert message must show the selection... please, somebody can help me?

Re: xajax, ie, select option problem????

Hello,

there is a small html error

please try to correct the form statement
   <option value=""></option>
            <option value="1">1</option>
            <option value="2" selected="selected">2</option>
            <option value="3">3</option>
          </select>

Re: xajax, ie, select option problem????

tku romacron! I was resolved this problem tonight putting this line in this place :
<head>
  <title></title>
  <link href="general.css" rel="stylesheet" type="text/css" />
  <?php $xajax->printJavascript( "../" ) ?>
</head>
nevertheless I decided to check your solution, and i had got a great surprise seeing that the original code (the wrong code, whitout modifications) does work fine now!!! misteries misteries :s