Well, guys, it's a problem. Function ajax to trying to load a list of clients and each client there is a property for creating reports.
Ajax code:
function CarregaPropriedades(Cliente)
{
if(Cliente){
var myAjax = new Ajax.Updater("PropriedadesAjax","buscar_propriedades.php?pesquisador="+Cliente,
{
method : "get"
}) ;
}
}
Property search code.
<?
$cliente = $_GET['pesquisador'];
$dao = new Propriedade();
$listar_com_pesquisador = $dao->listar_propriedades_cliente($cliente);
?>
<select name="propriedade" id="propriedade">
<?php foreach($listar_com_pesquisador as $res){
?>
<option value="<?php echo $res->Id?>"><?php echo $res->Nome?></option>
<?php }?>
</select>
I made the debug with firebug in firefox it presents the following error.
ReferenceError: Ajax is not defined
LoadProperties () form_bo ... olo.php (line 73)
onchange () form_bo ... olo.php (line 1)
myAjax = new Ajax.Updater ("Ajax Properties", "search_properties.php? searcher=" ...
What now? I do not know what to do, waiting for opinions and suggestions for resolutions.