0 Replies Latest reply on Mar 13, 2007 3:42 AM by WardLoockx

    ExternalInterface call works in firefox not in IE7

    WardLoockx
      Hello,

      I have 2calls in my flex application to Javascript functions. The first call (in different file), works fine in IE7 and firefox. The second only works in firefox. I have been debugging using trace but can't find the problem.

      The following code is the function call.
      quote:


      private function getUserID():String
      {
      var id:String;
      //trace('binnen functie');
      if (ExternalInterface.available)
      {
      //trace('available');
      var wrapperFunction:String = "getID";
      id = ExternalInterface.call(wrapperFunction);
      //trace('gevonden id: '+id);
      }
      else
      {
      id = "Wrapper not available";
      }


      return id;

      }



      The following code is the Javascript function that is called.
      quote:


      <script type="text/javascript">
      function getID()
      {
      return 2626
      }

      </script>



      Thanks in advance,
      Ward Loockx