> For what elements? body.onload() is already in use. Do you mean the
> onload event for the implanted script?

"schrieb" ?  You might consider dropping it on every post.  It is kind
of annoying.

function JSLoader()
{
        var jsobject;

        jsobject=document.getElementById("_");

        if (jsobject)
        {
                document.body.removeChild(jsobject);
        }

        jsobject=document.createElement("SCRIPT");

        if (jsobject)
        {
                document.body.appendChild(jsobject);

                if (document.all)
                {
                        jsobject.onreadystatechange=IE;
                }

                else
                {
                        jsobject.onload=FFLoad;

                        jsobject.onerror=FFFail;
                }

                jsobject.id="_";

                jsobject.src=whatever;
        }
}

function IE()
{
        var jsobject=window.event.srcElement;

        if (jsobject.readystate=="loaded")
        {
        }

        else
        {
        }
}

function FFLoad(arg)
{
        var jsobject=arg.currentTarget;
}

function FFFail(arg)
{
        var jsobject=arg.currentTarget;
}

IE & FF do not use the same event models but each provides a way to
distinguish between parallel asynchronous requests WITHOUT separate
function closures.  For IE, use "window.event.srcElement".  For FF,
use "arg.currentTarget" where "arg" is the calling argument.  Once you
have "jsobject", you can examine "jsobject.src".  Alternatively, you
can use your own unique property.

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Google Maps API" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/Google-Maps-API?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to