0
Good guys, gave problem. ajax function to trying to load a list of clients and each client exists a property to create reports.
Ajax code:
function CarregaPropriedades(Cliente)
{
if(Cliente){
var myAjax = new Ajax.Updater("PropriedadesAjax","buscar_propriedades.php?pesquisador="+Cliente,
{
method : "get"
}) ;
}
}
Code for search properties.
<?
$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 debug with firebug in firefox shows 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("Propriedadesajax","buscar_properties.php? researcher="...
And now? I don’t know what to do, waiting for opinions and suggestions for resolutions.
http://imgur.com/KbMxj57 .
– user27006