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

Re: [ydn-javascript] onDOMready vs. onContentReady

Expand Messages
  • Adam Moore
    ... A trip to the bug database may have saved you some time: http://yuilibrary.com/projects/yui2/ticket/2008289 The fix for this is not complete, but is
    Message 1 of 4 , Apr 2, 2009
    • 0 Attachment
      On Fri, May 09, 2008 at 11:48:11AM -0000, memibeltrame wrote:
      > I just spent almost a day tracking down an IE problem that almost
      > drove me nuts. Here are my findings, maybe they're useful for somone else.

      A trip to the bug database may have saved you some time:

      http://yuilibrary.com/projects/yui2/ticket/2008289

      The fix for this is not complete, but is scheduled to be in the next
      release.

      -Adam

      >
      > I have a Single Page Application that has Drag & Drop Porlets inside a
      > TabView. This SPA is loaded into an iFrame.
      >
      > The Basic structure looks something like this:
      >
      > DDApp {
      > init() {
      > make tabview
      > bind DD targets and DD elements
      > }
      > }
      >
      > Event.onDOMready ( DDApp.init)
      >
      > In IE the Draggable Elements would sometimes be Draggable sometimes
      > not without any clear pattern. Not being able to find anything wrong
      > in the DDApp i noticed that calling methods concerning the Tabview
      > failed, moaning about myTabs not being an Object.
      >
      > All this bizarre behaviour of Elements sometimes not being available
      > or methods not working against supposedly available objects was solved
      > when calling
      > Event.onContentAvailable ("contentElementId", DDApp.init )
      >
      > Is this a known issue? Why does it occur only wwhen the page is
      > embedded in an iFrame?
      >
      > I found another post concerning the onDOMready in IE issue:
      > http://tech.groups.yahoo.com/group/ydn-javascript/message/27875
      >
      > This explains some of it though not all of the odd behaviour.
      >
      >
      >
      >
      >
      >
      >
      >
      >
      > ------------------------------------
      >
      > Yahoo! Groups Links
      >
      >
      >

      --
    Your message has been successfully submitted and would be delivered to recipients shortly.