I have a problem when making an ajax call like the following one. The graphic function (code) draws me a Google charts graphic. The problem is that the div id="chart" is in the response html of the ajax call. If the call of the graph is made before, it indicates that it is null div id="chart" and does not return the graph. Best way to fix it?
I tried to call the graphic function (code) after showing the container but I still have the problem ....
$.ajax({
url:"buscar_info.php",
type:"POST",
data:codigo,
dataType:"html",
success:
function(respuesta)
{
grafico(codigo);
$("#contenedor").show('fast');
$("#contenedor").html(respuesta);
}
});
Thanks. Greetings