How true....

Heres a more specific description:

Im using the Mootools 1.2.1 lib to handle the Ajax requests. the
function looks like this:

function moveTo(page){
        var url = './process.php?action=goto&page='+page;
        documentOverlay.show();
        new Request.HTML({
                url: url,
        method: "get",
        update: 'contentbody',
        evalScripts: true,
        onComplete: function(){ loadStep();} }).send();
}

depending on the page Im getting differet results back, but here's an
example of the response:
    <div id="flashcontent"><strong>You need to upgrade your Flash
Player</strong></div>

onComplete calls loadStep() what looks like this:
function loadStep(){
        if($('flashcontent')){
                var so = new SWFObject("./inc/pie/pie.swf", "pie", "450", "450",
"4", "#FFFFFF");
                so.addVariable("path", "./");
                so.addVariable("settings_file", "inc/pie/pie_settings.xml");
                so.addVariable("data_file", encodeURIComponent("grabData.php?
grab=plz&plz="+$('firm_plz').value));
                so.write('flashcontent');
        }
        setTimeout(function() { documentOverlay.hide(); }, 500);
}

thanks.

Reply via email to