@gekon tak myslalem
Tak wyglada jedna z tych f-cji:
Kod
function handleServerNpfResult()
{
// move forward only if the transaction has completed
if (xmlHttp.readyState == 4)
{
// status of 200 indicates the transaction completed successfully
if (xmlHttp.status == 200)
{
responseXml = xmlHttp.responseXML;
xmlDoc = responseXml.documentElement;
if ( xmlDoc.getElementsByTagName("npf")[0] )
{
npf = xmlDoc.getElementsByTagName("npf")[0].firstChild.data;
document.codecalcform.npf.value = npf;
NPF = npf;
calculatePF();
// restart sequence
setTimeout('handleServerNpfResult()', 1000);
}
}
// a HTTP status different than 200 signals an error
else
{
alert("There was a problem accessing the server: " + xmlHttp.statusText);
}
}
}
i wyglada na to, ze calculatePF(); sie nie wykonuje.
@Zajec tak to sprawdzielm na poczatku, najpierw definiuje calculatePF a potem te f-cje ktora zapodalem wyzej
moge dac wiecej kodu jak chcecie ale komu sie to bedzie chcialo przegladac
mam warzenie ze to jakis glupi blad bo pod FF i IE smiga az milo
Opera jest straszna, wg moich rozeznan
Kod
// move forward only if the transaction has completed
if (xmlHttp.readyState == 4)
{...
nie dziala, powoduje jakis blad i dlatego wywolanie tych fcji nie dziala, wiec wracamy do AJAXA i obslugi przez Opere, czy ta wredna przegladarka obsluguje readyState