I'm trying to call a flex function through javascriptand  it works
perfectly in Firefox but not at all in IE.

Here's my code:

/* the method from Adobe Flex Help */
function getMyApp(appName) {
    if (navigator.appName.indexOf ("Microsoft") !=-1) {
        return window[appName];
    } else {
        return document[appName];
    }
}

$(document).ready(function(){
        $(window).bind("beforeunload", function() {
                //var flex = document.myFlexApp|| window.myFlexApp;
                getMyApp("myFlexApp").browserClosingHandler();
        });
});

I tried with getMyApp function and also with the "var flex =
document.myFlexAPp || window..." (as seen on many sites on the web)
but It did not work either.

ANy help ?

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Flex 
India Community" 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/flex_india?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to