swftools-common
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Swftools-common] lo= new URLLoader(); req = new URLRequest("env_hx.php"


From: jean-michel voicechat_fan
Subject: [Swftools-common] lo= new URLLoader(); req = new URLRequest("env_hx.php"); var inpu=new URLVariables(); inpu.t=input; lo.addEventListener(Event.COMPLETE, HandlePHP); req.data=inp; calling a PHP script
Date: Tue, 13 Oct 2009 18:00:15 +0200

sorry for the former message not ended  ( a tab with gmail )
i have  to call a PHP script
i have use the two methods
the old one
            var inpinp=new LoadVars();
            var outinp=new LoadVars();
             inpinp.t = inp.text;
             inpinp.sendAndLoad('env_hx.php',outinp);
.
.
.
and the new one

        function HandlePHP(event) {
                if ( lo.data !="" ) {
                        var tab=lo.data.split("\n");
                        display(tab[0]);// au retour PHP on maj le SO text
 
                }
                lo= new URLLoader();
                req = new URLRequest("env_hx.php");
                var inpu=new URLVariables();
                inpu.t=input;
                lo.addEventListener(Event.COMPLETE, HandlePHP); // ? this line is maybe not taken into account
                req.data="">                lo.load(req);

but it seems that none are working may be i have something wrong in my code
the compilation is accepted
( the old is working with mtasc )
any idea thanks by advance
 
--
http://jeanmichel.gens.free.fr

reply via email to

[Prev in Thread] Current Thread [Next in Thread]