Loading ...
Sorry, an error occurred while loading the content.

37075Re: [ydn-javascript] Flex widget inside layout manager cannot be called from javascript in IE

Expand Messages
  • Dav Glass
    Sep 2, 2008
      aniad --

      Please post a link so I can see it, the code doesn't help me if I can't see the issue :D

      Thanks
      Dav

      Dav Glass
      dav.glass@...
      blog.davglass.com




      + Windows: n. - The most successful computer virus, ever. +
      + A computer without a Microsoft operating system is like a dog
      without bricks tied to its head +
      + A Microsoft Certified Systems Engineer is to computing what a
      McDonalds Certified Food Specialist is to fine cuisine +



      ----- Original Message ----
      > From: aniad <aniad@...>
      > To: ydn-javascript@yahoogroups.com
      > Sent: Tuesday, September 2, 2008 10:54:42 AM
      > Subject: [ydn-javascript] Flex widget inside layout manager cannot be called from javascript in IE
      >
      > Hello,
      >
      > I'm having a real problem with Layout Manager hosting a flex widget in
      > the center pane in IE. Specifically the problem has to do with
      > javascript calling flex. The flex widget registers javascript
      > callbacks which work fine in Firefox. However they do not in IE. The
      > problem is directly related to the Layout Manager, as eliminating the
      > Layout, ie putting the flex widget just in a simple
      , solves the
      > problem.
      >
      > My code looks something like:
      >
      > function initLayout()
      > {
      > layout = new YAHOO.widget.Layout('layoutDiv',
      > {
      > height: 500,//800,
      > units: [
      > { position: 'center', height: 490, scroll: false,
      > resize: true, body: 'selectorDiv', gutter: '2px 5px', collapse: true,
      > collapseSize: 50, maxWidth: 1000 }
      > ]
      > });
      >
      > }
      >
      > Function callFlex()
      > {
      > Document.getElementById("myFlexWidget").Flex_SetView(); //
      > "Flex_SetView" is a registered callback in action script
      > }
      >
      > YAHOO.util.Event.onDOMReady(initLayout);
      >
      >
      >
      > show flex problem
      >
      >

      >
      >
      >
      >
      >
      >
      > The error in IE is "Unspecified Error" in some IE javascript code:
      >
      > function __flash__addCallback(instance, name) {
      > instance[name] = function () {
      > return eval(instance.CallFunction("> returntype=\"javascript\">" + __flash__argumentsToXML(arguments,0) +
      > ""));
      > }
      > }
      >
      > Both params, instance and name are valid. We found this article on
      > the subject, http://www.airtightinteractive.com/news/?p=71, and we are
      > already doing everything suggested in this article. Again, as stated
      > above, eliminating the layout manager allows the flex callbacks to
      > work again.
      >
      > Please advise, thank you!
      >
      > Ania.
      >
      >
      >
      >
      > ------------------------------------
      >
      > Yahoo! Groups Links
      >
      >
      >
    • Show all 9 messages in this topic