Yes,
onLoad Function will carry both success and failiure information of loading a
page.
If target file exists onLoad will carry "true" in that argument
otherwise it will carry "false". Its better practice to code with
"onLoad(success)"
u can use any Name instead of success.Its a argument passed by file loader
object.
Regards
Devendran.I
eric dolecki <[EMAIL PROTECTED]> wrote: Just a quick observation: your onLoad
should appear in code above the actual
sendAndLoad function.
On 12/15/05, Miles Thompson wrote:
>
>
> I'm fetching data via a PHP script, if I leave the test for "success" out,
> the data is there, and can be processed.
> If I test for success, the processing code never executes.
>
> What can I be doing wrong? Here's a code fragment, all the appropriate
> values for varSender have been assigned. (You will see that the test for
> success is commented out.)
>
> varSender.first_name = first_txt.text;
> varSender.last_name = last_txt.text;
> varSender.password = pass_txt.text;
> varSender.action = 'login';
> varSender.sendAndLoad("http://"+ host + "user_logon.php", varReceiver,
> "GET");
> varReceiver.onLoad = function(success:Boolean){
> //if (success ) {
> if(!this.error && this.CkVal != ""){
> subs_so.data.ckVal = this.CkVal;
> }
> if(!this.error && this.ValidLogin == "true") {
> _root.ValidLogin = this.ValidLogin;
> _root.lOKtoPrint = this.lOKtoPrint;
> ... and so on ...
>
> If I move the "varSender" so that it follows varReceiver, as in all of the
> examples in the help, the varReceiver code does not seem to trigger, at
> least when I check it in the debugger.
>
> Does anyone have any suggestions? By the way, a similar script in Flash MX
> works flawlessly.
>
> Regards - Miles (who's looking for "success" )
>
>
> _______________________________________________
> Flashcoders mailing list
> [email protected]
> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
>
_______________________________________________
Flashcoders mailing list
[email protected]
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
---------------------------------
Yahoo! Shopping
Find Great Deals on Holiday Gifts at Yahoo! Shopping
_______________________________________________
Flashcoders mailing list
[email protected]
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders