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

I noticed the same a few YUI releases ago, didn't find work around

Expand Messages
  • Darek Adamkiewicz
    I ve had revolutionary project plan based on YUI DnD;) but abadoned it at early stage because of this. But there is an ocean of YUI/JS developers - perhaps
    Message 1 of 8 , Sep 1, 2008
    • 0 Attachment
      I've had revolutionary project plan based on YUI DnD;) but abadoned it
      at early stage because of this.

      But there is an ocean of YUI/JS developers - perhaps anybody will find
      workaround? I'm also very interested to know it.

      Regards
      Darek

      ---
      http://timecontroler.sf.net



      --- In ydn-javascript@yahoogroups.com, "ajaxgames" <ajaxgames@...> wrote:
      >
      > I have the same issue, if more than a few DDs or DDProxys are defined
      > in a page, IE7 will remain at high cpu even when doing nothing with
      > the page. If the window is minimized then cpu usage does drop after a
      > while.
      >
      > Can someone please take a look. If this can't be helped, can you
      > provide any tips or workarounds to ease cpu load while keeping more
      > DD elements on the page?
      >
      >
      > Thank you.
      >
      >
      > --- In ydn-javascript@yahoogroups.com, "dmhst1" <dmhst1@> wrote:
      > >
      > > Hi!
      > >
      > > I'm working on implementing Yahoo's/YUI Drag and Drop utility on my
      > > site. I've been able to make it work and it is great, so long as I
      > > have a very small list of items in my list (20 or so). But in doing
      > > some stress testing, I noticed the CPU hits over 50% on my system
      > if I
      > > make the lists longer. Note that this CPU hit occurs upon loading
      > the
      > > page, even before you move your mouse or drag any of the items. I'd
      > > expect an immediate CPU hit upon page load, and another hit during
      > the
      > > act of dragging, but I'm confused as to why IE would suck up CPU
      > after
      > > the page has been rendered. (Yes, we've tried this page on several
      > > other machines -- it's not just mine).
      > >
      > > A sample of the page is here:
      > > http://www.newsroomsolutions.com/yuiissue/
      > >
      > > I've removed some references to our back-end, which are unrelated to
      > > this problem. Is this YUI widget only good for a very small list?
      > I
      > > find that really hard to believe. Thanks for your help.
      > >
      > > Damian
      > >
      >
    • Dav Glass
      ajaxgames -- I would be happy to look, but I need a working repro case.. Can you post a link, if you don t want to post it to the group, feel free to email me
      Message 2 of 8 , Sep 2, 2008
      • 0 Attachment
        ajaxgames --

        I would be happy to look, but I need a working repro case..

        Can you post a link, if you don't want to post it to the group, feel free to email me off list..

        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: ajaxgames <ajaxgames@...>
        > To: ydn-javascript@yahoogroups.com
        > Sent: Sunday, August 31, 2008 1:02:22 PM
        > Subject: [ydn-javascript] Re: Drag Drop - High CPU in Internet Explorer
        >
        > I have the same issue, if more than a few DDs or DDProxys are defined
        > in a page, IE7 will remain at high cpu even when doing nothing with
        > the page. If the window is minimized then cpu usage does drop after a
        > while.
        >
        > Can someone please take a look. If this can't be helped, can you
        > provide any tips or workarounds to ease cpu load while keeping more
        > DD elements on the page?
        >
        >
        > Thank you.
        >
        >
        > --- In ydn-javascript@yahoogroups.com, "dmhst1" wrote:
        > >
        > > Hi!
        > >
        > > I'm working on implementing Yahoo's/YUI Drag and Drop utility on my
        > > site. I've been able to make it work and it is great, so long as I
        > > have a very small list of items in my list (20 or so). But in doing
        > > some stress testing, I noticed the CPU hits over 50% on my system
        > if I
        > > make the lists longer. Note that this CPU hit occurs upon loading
        > the
        > > page, even before you move your mouse or drag any of the items. I'd
        > > expect an immediate CPU hit upon page load, and another hit during
        > the
        > > act of dragging, but I'm confused as to why IE would suck up CPU
        > after
        > > the page has been rendered. (Yes, we've tried this page on several
        > > other machines -- it's not just mine).
        > >
        > > A sample of the page is here:
        > > http://www.newsroomsolutions.com/yuiissue/
        > >
        > > I've removed some references to our back-end, which are unrelated to
        > > this problem. Is this YUI widget only good for a very small list?
        > I
        > > find that really hard to believe. Thanks for your help.
        > >
        > > Damian
        > >
        >
        >
        >
        > ------------------------------------
        >
        > Yahoo! Groups Links
        >
        >
        >
      • ajaxgames
        Thanks Dav I don t have a working demo on the internet at the moment and it s pretty big and complex to post, I will let you know when it s available. However
        Message 3 of 8 , Sep 2, 2008
        • 0 Attachment
          Thanks Dav

          I don't have a working demo on the internet at the moment and it's
          pretty big and complex to post, I will let you know when it's
          available. However I saw your suggestion in the other thread about
          only creating the DD instance on mousedown.

          That seemed like it could work except in my case every DD is also a
          target (I have a bunch of objects on a page I can D&D on each other)
          so when I instatiate them as DDTargets (instead of DD) same problem.
          I am now trying not using the DDTargets, the problem is of course
          that with onInvalidDrop I don't know where I landed but maybe I can
          figure it out using XY of objects and comparing... Seems like a lot
          of work but if it works out it will probably be worth it. Unless
          there is an easier way to figure out where the drop landed without
          having targets.

          Thanks again

          --- In ydn-javascript@yahoogroups.com, Dav Glass <dav.glass@...>
          wrote:
          >
          > ajaxgames --
          >
          > I would be happy to look, but I need a working repro case..
          >
          > Can you post a link, if you don't want to post it to the group,
          feel free to email me off list..
          >
          > 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: ajaxgames <ajaxgames@...>
          > > To: ydn-javascript@yahoogroups.com
          > > Sent: Sunday, August 31, 2008 1:02:22 PM
          > > Subject: [ydn-javascript] Re: Drag Drop - High CPU in Internet
          Explorer
          > >
          > > I have the same issue, if more than a few DDs or DDProxys are
          defined
          > > in a page, IE7 will remain at high cpu even when doing nothing
          with
          > > the page. If the window is minimized then cpu usage does drop
          after a
          > > while.
          > >
          > > Can someone please take a look. If this can't be helped, can you
          > > provide any tips or workarounds to ease cpu load while keeping
          more
          > > DD elements on the page?
          > >
          > >
          > > Thank you.
          > >
          > >
          > > --- In ydn-javascript@yahoogroups.com, "dmhst1" wrote:
          > > >
          > > > Hi!
          > > >
          > > > I'm working on implementing Yahoo's/YUI Drag and Drop utility
          on my
          > > > site. I've been able to make it work and it is great, so long
          as I
          > > > have a very small list of items in my list (20 or so). But in
          doing
          > > > some stress testing, I noticed the CPU hits over 50% on my
          system
          > > if I
          > > > make the lists longer. Note that this CPU hit occurs upon
          loading
          > > the
          > > > page, even before you move your mouse or drag any of the
          items. I'd
          > > > expect an immediate CPU hit upon page load, and another hit
          during
          > > the
          > > > act of dragging, but I'm confused as to why IE would suck up
          CPU
          > > after
          > > > the page has been rendered. (Yes, we've tried this page on
          several
          > > > other machines -- it's not just mine).
          > > >
          > > > A sample of the page is here:
          > > > http://www.newsroomsolutions.com/yuiissue/
          > > >
          > > > I've removed some references to our back-end, which are
          unrelated to
          > > > this problem. Is this YUI widget only good for a very small
          list?
          > > I
          > > > find that really hard to believe. Thanks for your help.
          > > >
          > > > Damian
          > > >
          > >
          > >
          > >
          > > ------------------------------------
          > >
          > > Yahoo! Groups Links
          > >
          > >
          > >
          >
        • ajaxgames
          Ok, so I have been finally able to get this to work the way I mentioned. What I did: 1. Listen for mousedown as per Dav s example in
          Message 4 of 8 , Sep 3, 2008
          • 0 Attachment
            Ok, so I have been finally able to get this to work the way I
            mentioned.

            What I did:

            1. Listen for mousedown as per Dav's example in
            http://blog.davglass.com/files/yui/datatable4/ and only create a DD
            when something is clicked on.

            2. Define no DDTargets, which results in always ending with
            onInvalidDrop.

            3. In onInvalidDrop use the event and element dragged to find the XY
            position then iterate on all relevant Dom elements in the interesting
            area testing with each if the XY position falls in their Region.

            4. Return the discovered element as dropped-on to simulate onDragDrop
            on a DDTarget.


            While this took a bit of work it does work pretty well, CPU is now
            mostly at 0 and therefore drag and drop feels a lot more responsive
            and has the same functionality as the more standard method.


            Thank you.


            --- In ydn-javascript@yahoogroups.com, "ajaxgames" <ajaxgames@...>
            wrote:
            >
            > Thanks Dav
            >
            > I don't have a working demo on the internet at the moment and it's
            > pretty big and complex to post, I will let you know when it's
            > available. However I saw your suggestion in the other thread about
            > only creating the DD instance on mousedown.
            >
            > That seemed like it could work except in my case every DD is also a
            > target (I have a bunch of objects on a page I can D&D on each
            other)
            > so when I instatiate them as DDTargets (instead of DD) same
            problem.
            > I am now trying not using the DDTargets, the problem is of course
            > that with onInvalidDrop I don't know where I landed but maybe I can
            > figure it out using XY of objects and comparing... Seems like a lot
            > of work but if it works out it will probably be worth it. Unless
            > there is an easier way to figure out where the drop landed without
            > having targets.
            >
            > Thanks again
            >
            > --- In ydn-javascript@yahoogroups.com, Dav Glass <dav.glass@>
            > wrote:
            > >
            > > ajaxgames --
            > >
            > > I would be happy to look, but I need a working repro case..
            > >
            > > Can you post a link, if you don't want to post it to the group,
            > feel free to email me off list..
            > >
            > > 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: ajaxgames <ajaxgames@>
            > > > To: ydn-javascript@yahoogroups.com
            > > > Sent: Sunday, August 31, 2008 1:02:22 PM
            > > > Subject: [ydn-javascript] Re: Drag Drop - High CPU in Internet
            > Explorer
            > > >
            > > > I have the same issue, if more than a few DDs or DDProxys are
            > defined
            > > > in a page, IE7 will remain at high cpu even when doing nothing
            > with
            > > > the page. If the window is minimized then cpu usage does drop
            > after a
            > > > while.
            > > >
            > > > Can someone please take a look. If this can't be helped, can
            you
            > > > provide any tips or workarounds to ease cpu load while keeping
            > more
            > > > DD elements on the page?
            > > >
            > > >
            > > > Thank you.
            > > >
            > > >
            > > > --- In ydn-javascript@yahoogroups.com, "dmhst1" wrote:
            > > > >
            > > > > Hi!
            > > > >
            > > > > I'm working on implementing Yahoo's/YUI Drag and Drop utility
            > on my
            > > > > site. I've been able to make it work and it is great, so
            long
            > as I
            > > > > have a very small list of items in my list (20 or so). But
            in
            > doing
            > > > > some stress testing, I noticed the CPU hits over 50% on my
            > system
            > > > if I
            > > > > make the lists longer. Note that this CPU hit occurs upon
            > loading
            > > > the
            > > > > page, even before you move your mouse or drag any of the
            > items. I'd
            > > > > expect an immediate CPU hit upon page load, and another hit
            > during
            > > > the
            > > > > act of dragging, but I'm confused as to why IE would suck up
            > CPU
            > > > after
            > > > > the page has been rendered. (Yes, we've tried this page on
            > several
            > > > > other machines -- it's not just mine).
            > > > >
            > > > > A sample of the page is here:
            > > > > http://www.newsroomsolutions.com/yuiissue/
            > > > >
            > > > > I've removed some references to our back-end, which are
            > unrelated to
            > > > > this problem. Is this YUI widget only good for a very small
            > list?
            > > > I
            > > > > find that really hard to believe. Thanks for your help.
            > > > >
            > > > > Damian
            > > > >
            > > >
            > > >
            > > >
            > > > ------------------------------------
            > > >
            > > > Yahoo! Groups Links
            > > >
            > > >
            > > >
            > >
            >
          • Darek Adamkiewicz
            Hi I d love to see working example - any chances? Or If I tried to prepare something myself, and publish it here - any chances to review? Regards Darek ...
            Message 5 of 8 , Sep 30, 2008
            • 0 Attachment
              Hi

              I'd love to see working example - any chances?
              Or If I tried to prepare something myself,
              and publish it here - any chances to review?

              Regards
              Darek

              ---
              http://timecontroler.sf.net

              --- In ydn-javascript@yahoogroups.com, "ajaxgames" <ajaxgames@...> wrote:
              >
              > Ok, so I have been finally able to get this to work the way I
              > mentioned.
              >
              > What I did:
              >
              > 1. Listen for mousedown as per Dav's example in
              > http://blog.davglass.com/files/yui/datatable4/ and only create a DD
              > when something is clicked on.
              >
              > 2. Define no DDTargets, which results in always ending with
              > onInvalidDrop.
              >
              > 3. In onInvalidDrop use the event and element dragged to find the XY
              > position then iterate on all relevant Dom elements in the interesting
              > area testing with each if the XY position falls in their Region.
              >
              > 4. Return the discovered element as dropped-on to simulate onDragDrop
              > on a DDTarget.
              >
              >
              > While this took a bit of work it does work pretty well, CPU is now
              > mostly at 0 and therefore drag and drop feels a lot more responsive
              > and has the same functionality as the more standard method.
              >
              >
              > Thank you.
              >
              >
              > --- In ydn-javascript@yahoogroups.com, "ajaxgames" <ajaxgames@>
              > wrote:
              > >
              > > Thanks Dav
              > >
              > > I don't have a working demo on the internet at the moment and it's
              > > pretty big and complex to post, I will let you know when it's
              > > available. However I saw your suggestion in the other thread about
              > > only creating the DD instance on mousedown.
              > >
              > > That seemed like it could work except in my case every DD is also a
              > > target (I have a bunch of objects on a page I can D&D on each
              > other)
              > > so when I instatiate them as DDTargets (instead of DD) same
              > problem.
              > > I am now trying not using the DDTargets, the problem is of course
              > > that with onInvalidDrop I don't know where I landed but maybe I can
              > > figure it out using XY of objects and comparing... Seems like a lot
              > > of work but if it works out it will probably be worth it. Unless
              > > there is an easier way to figure out where the drop landed without
              > > having targets.
              > >
              > > Thanks again
              > >
              > > --- In ydn-javascript@yahoogroups.com, Dav Glass <dav.glass@>
              > > wrote:
              > > >
              > > > ajaxgames --
              > > >
              > > > I would be happy to look, but I need a working repro case..
              > > >
              > > > Can you post a link, if you don't want to post it to the group,
              > > feel free to email me off list..
              > > >
              > > > 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: ajaxgames <ajaxgames@>
              > > > > To: ydn-javascript@yahoogroups.com
              > > > > Sent: Sunday, August 31, 2008 1:02:22 PM
              > > > > Subject: [ydn-javascript] Re: Drag Drop - High CPU in Internet
              > > Explorer
              > > > >
              > > > > I have the same issue, if more than a few DDs or DDProxys are
              > > defined
              > > > > in a page, IE7 will remain at high cpu even when doing nothing
              > > with
              > > > > the page. If the window is minimized then cpu usage does drop
              > > after a
              > > > > while.
              > > > >
              > > > > Can someone please take a look. If this can't be helped, can
              > you
              > > > > provide any tips or workarounds to ease cpu load while keeping
              > > more
              > > > > DD elements on the page?
              > > > >
              > > > >
              > > > > Thank you.
              > > > >
              > > > >
              > > > > --- In ydn-javascript@yahoogroups.com, "dmhst1" wrote:
              > > > > >
              > > > > > Hi!
              > > > > >
              > > > > > I'm working on implementing Yahoo's/YUI Drag and Drop utility
              > > on my
              > > > > > site. I've been able to make it work and it is great, so
              > long
              > > as I
              > > > > > have a very small list of items in my list (20 or so). But
              > in
              > > doing
              > > > > > some stress testing, I noticed the CPU hits over 50% on my
              > > system
              > > > > if I
              > > > > > make the lists longer. Note that this CPU hit occurs upon
              > > loading
              > > > > the
              > > > > > page, even before you move your mouse or drag any of the
              > > items. I'd
              > > > > > expect an immediate CPU hit upon page load, and another hit
              > > during
              > > > > the
              > > > > > act of dragging, but I'm confused as to why IE would suck up
              > > CPU
              > > > > after
              > > > > > the page has been rendered. (Yes, we've tried this page on
              > > several
              > > > > > other machines -- it's not just mine).
              > > > > >
              > > > > > A sample of the page is here:
              > > > > > http://www.newsroomsolutions.com/yuiissue/
              > > > > >
              > > > > > I've removed some references to our back-end, which are
              > > unrelated to
              > > > > > this problem. Is this YUI widget only good for a very small
              > > list?
              > > > > I
              > > > > > find that really hard to believe. Thanks for your help.
              > > > > >
              > > > > > Damian
              > > > > >
              > > > >
              > > > >
              > > > >
              > > > > ------------------------------------
              > > > >
              > > > > Yahoo! Groups Links
              > > > >
              > > > >
              > > > >
              > > >
              > >
              >
            • Darek Adamkiewicz
              Hello Folks Here: http://koktail.net/sandbox/dd_light.php In this case you must click on element, then click-again-and-drag. It looks promising however it
              Message 6 of 8 , Oct 3, 2008
              • 0 Attachment
                Hello Folks

                Here:

                http://koktail.net/sandbox/dd_light.php

                In this case you must click on element, then click-again-and-drag.
                It looks promising however it doesn't work
                when one dropped element intersects another.

                Regards
                Darek

                ---
                http://timecontroler.sf.net
              Your message has been successfully submitted and would be delivered to recipients shortly.