robię takie cuś:
function get_object()
{
xmlHttp=GetXmlHttpObject()
if (xmlHttp==null)
{
alert ("Błąd połączenia")
return
}
//adres do mojego wykresu we flashu
var url="/open_flash_chart/charts.php?id=353";
xmlHttp.onreadystatechange=stateChanged ;
xmlHttp.open("GET",url,true);
xmlHttp.send(null);
}
function stateChanged()
{
if (xmlHttp.readyState==4 || xmlHttp.readyState=="complete")
{
//div o id=inner
document.getElementById("inner").innerHTML=xmlHttp.responseText;
}
}
function GetXmlHttpObject()
{
var xmlHttp=null;
try
{
xmlHttp=new XMLHttpRequest();
}
catch (e)
{
try
{
xmlHttp=new ActiveXObject("Msxml2.XMLHTTP");
}
catch (e)
{
xmlHttp=new ActiveXObject("Microsoft.XMLHTTP");
}
}
return xmlHttp;
}
w pliku charts.php oprócz flasha mam kod html i mi go wyświetla, samego flasha już nie
why, jak wyświetlić ajaxem flasha w divie??