Hi Kiran & Sebastian,

I am also facing the same problem, according to Sebastian’s comment I have
changed my code as follows,

  var flexApp = new qx.ui.embed.Flash("Connection.swf");
  flexApp.setHtmlAttribute('id', 'Connection');
  flexApp.setHtmlAttribute('name', 'Connection');
...

        function getFlexApp(appName)
        {
            var returnValue;
          if (navigator.appName.indexOf ("Microsoft") !=-1)
          {
            // IE
            return window['Connection'].getElementsByTagName("OBJECT")[0];
          }
          else
          {
            // NON IE
            return document.embeds[objectName];
          }
          return returnValue;
        }

But yet I am facing the same problem. If you have reached to any solution
please let me know.

Thanks in advance,
Vishal.


Sebastian Werner wrote:
> 
> 
> It don't know why you think that the second constructor parameter of 
> qx.ui.embed.Flash is something like an ID. It is not. Looking at the API 
> documentation at api.qooxdoo.org it seems to be a version number. Also: 
> Are you sure that getObject() even returns an useable object in Internet 
> Explorer?
> 
> Sebastian
> 
> 
> 
> Naga Kiran K Y S schrieb:
>> Hi,
>> 
>>  
>> 
>> I am trying to call a user defined function in a flash file embedded 
>> using qx.ui.embed.Flash object from JavaScript. I face no problems with 
>> this in Mozilla Firefox & Safari but in Internet Explorer 6 & 7, it’s 
>> not calling the function in flash and not throwing any script error and 
>> just aborting the rest of the JavaScript function after this call.
>> 
>>  
>> 
>> Please have a look at my sample code:
>> 
>>  
>> 
>> var flashChart = new qx.ui.embed.Flash(“chart.swf","Chart1");   // There 
>> is a user defined function “userFunc” in chart.swf.
>> 
>> /* I am using the following function to get handle to the flash file.  */
>> 
>> function getObject(objectName)
>> 
>> {
>> 
>>     if (navigator.appName.indexOf ('Microsoft') !=-1) {
>> 
>>         return window[objectName]
>> 
>>     } else {
>> 
>>         return document.embeds[objectName];
>> 
>>     }
>> 
>> }
>> 
>> Var flashObj = getObject(“Chart1”);
>> 
>> flashObj.userFunc();         //calling the function defined in Flash 
>> file. (Not working in Internet Explorer)
>> 
>>  
>> 
>>  
>> 
>> Please let me know how I can get rid of this problem and any alternate 
>> way to call the user defined functions in flash from JavaScript using 
>> qx.ui.embed.flash object.
>> 
>>  
>> 
>>  
>> 
>> Regards,
>> 
>> Naga Kiran
>> 
>> 
>> ------------------------------------------------------------------------
>> 
>> -------------------------------------------------------------------------
>> This SF.net email is sponsored by DB2 Express
>> Download DB2 Express C - the FREE version of DB2 express and take
>> control of your XML. No limits. Just data. Click to get it now.
>> http://sourceforge.net/powerbar/db2/
>> 
>> 
>> ------------------------------------------------------------------------
>> 
>> _______________________________________________
>> qooxdoo-devel mailing list
>> [email protected]
>> https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel
> 
> 
> -------------------------------------------------------------------------
> This SF.net email is sponsored by DB2 Express
> Download DB2 Express C - the FREE version of DB2 express and take
> control of your XML. No limits. Just data. Click to get it now.
> http://sourceforge.net/powerbar/db2/
> _______________________________________________
> qooxdoo-devel mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Problem-with-Qooxdoo-Flash-Embed-object-in-Internet-Explorer-tf3974793.html#a12212444
Sent from the qooxdoo-devel mailing list archive at Nabble.com.


-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >>  http://get.splunk.com/
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel

Reply via email to