Forums

Posting in these forums is disabled. These forums will be available for archive purposes. Please join the new forums at the links below:

  • yui-support - replaces the `YUI 3.x` and `YUI 3 Gallery` forums.
    We have created the following discussion categories within this group to aid discoverability for these most-used topics:
    • Charts for YUI Charts support.
    • DataTable for YUI DataTable support.
    • Gallery for YUI Gallery support, including support for published Gallery components as well as the Gallery process in general.
    • Tools for support of YUI’s suite of developer tools such as selleck, shifter, grover, yogi, etc.
    • Everything Else for questions that don’t fit one of the categories above, we’ve got you covered here.
  • yui-deprecated - replaces the `YUI 2.x` forum and the forums of other deprecated products (`YUI Doc`, `Builder`, `YUI PHP Loader`, etc.).
  [ 15 posts ] Go to page 1, 2 Next
New Topic | Post Reply | Print view
Previous topic | Next topic

tasos

  • Username: tasoss
  • Joined: Thu Sep 24, 2009 4:06 am
  • Posts: 10
  • Offline
  • Profile
Tags:
  • dragdrop
  • element
  • examples
  • problem

drag and drop problem, events not active until i drag and...

Post Posted: Thu Sep 24, 2009 6:26 am
+0-
Whole Subject:drag and drop problem, events not active until i drag and drop another element

Hello people.
I am using http://developer.yahoo.com/yui/examples ... order.html this example.
I have inserted some tags inside the li.Some of them have onmouseover.The problem is that if i drag and drop a li then the events doesn't work.
I have to drag and drop another element(anyone it doesn't matter) and then the events are working again.
Any ideas please?
Thank you in advance.

Dav Glass

  • Username: davglass
  • Joined: Thu Aug 28, 2008 9:28 am
  • Posts: 2088
  • Location: Marion, IL, US
  • Twitter: davglass
  • GitHub: davglass
  • Gists: davglass
  • IRC: davglass
  • Offline
  • Profile
Tags:
  • problem

Re: drag and drop problem, events not active until i drag and...

Post Posted: Thu Sep 24, 2009 7:26 am
+0-
Can you post a link to some sample code?

tasos

  • Username: tasoss
  • Joined: Thu Sep 24, 2009 4:06 am
  • Posts: 10
  • Offline
  • Profile
Tags:
  • problem

Re: drag and drop problem, events not active until i drag and...

Post Posted: Thu Sep 24, 2009 9:54 am
+0-
hello and thanks for replying.
i have attached the html file plus 3 pictures that i use.
http://rapidshare.com/files/284461475/dash.rar.html
Mouse over and out the yahoo developer network image.
Then dnd the image.You will see that the events don't work.
Try to dnd another li.Or even move it so it will come back in its original place.
Then you will notice that the events of the ydn image work again.
Thanks again.

tasos

  • Username: tasoss
  • Joined: Thu Sep 24, 2009 4:06 am
  • Posts: 10
  • Offline
  • Profile

Re: drag and drop problem, events not active until i drag and...

Post Posted: Sat Sep 26, 2009 10:40 am
+0-
any ideas?

Bill Gao

  • Username: viruschidai
  • Joined: Tue Aug 11, 2009 3:14 pm
  • Posts: 15
  • IRC: Bill
  • Offline
  • Profile

Re: drag and drop problem, events not active until i drag and...

Post Posted: Sun Sep 27, 2009 7:08 pm
+0-
Hi,

I used more than 1 uploaders in one page. It worked fine.

regards,
Bill

tasos

  • Username: tasoss
  • Joined: Thu Sep 24, 2009 4:06 am
  • Posts: 10
  • Offline
  • Profile

Re: drag and drop problem, events not active until i drag and...

Post Posted: Sun Sep 27, 2009 8:42 pm
+0-
thanks for replying.did you check my example?

tasos

  • Username: tasoss
  • Joined: Thu Sep 24, 2009 4:06 am
  • Posts: 10
  • Offline
  • Profile

Re: drag and drop problem, events not active until i drag and...

Post Posted: Mon Sep 28, 2009 2:50 am
+0-
http://www.interworks.biz/temp/dash.html

Dav Glass

  • Username: davglass
  • Joined: Thu Aug 28, 2008 9:28 am
  • Posts: 2088
  • Location: Marion, IL, US
  • Twitter: davglass
  • GitHub: davglass
  • Gists: davglass
  • IRC: davglass
  • Offline
  • Profile
Tags:
  • problem

Re: drag and drop problem, events not active until i drag and...

Post Posted: Mon Sep 28, 2009 7:37 am
+0-
The mouseover works for me. However, your mouseover is defaulted to on instead of off, so the edit images show up in the header until you mouseover the image and mouseout again. Then they disappear. So I'm not totally sure of the problem. Can you verify and give me a step by step repro..

tasos

  • Username: tasoss
  • Joined: Thu Sep 24, 2009 4:06 am
  • Posts: 10
  • Offline
  • Profile
Tags:
  • editor
  • problem

Re: drag and drop problem, events not active until i drag and...

Post Posted: Mon Sep 28, 2009 10:05 am
+0-
Let me explain the problem.
Open http://www.interworks.biz/temp/dash.html
List 1 contains an image. http://www.interworks.biz/temp/scr.jpg
It is a screen of Ultraedit(it's an editor).
Mouseover is working just great.
Now drag and drop this picture to List 2 for example.In doesn't matter where.Just move it via drag and drop there.
Then check that the mouseover-mouseout doesn't work.
If you try to drag and drop any other element and then go again in the image ,you will see that the events work again.
Please let me know if you didn't understand it so i will explain it better.

Dav Glass

  • Username: davglass
  • Joined: Thu Aug 28, 2008 9:28 am
  • Posts: 2088
  • Location: Marion, IL, US
  • Twitter: davglass
  • GitHub: davglass
  • Gists: davglass
  • IRC: davglass
  • Offline
  • Profile
Tags:
  • event
  • problem
  • utility

Re: drag and drop problem, events not active until i drag and...

Post Posted: Mon Sep 28, 2009 1:56 pm
+0-
I have no idea why that is happening, try removing the DOM1 onmouseover and onmouseout from the HTML and add it via DOM2 events with the Event Utility:

Code:
YAHOO.util.Event.on('achart1div', 'mouseover', overfoto);
YAHOO.util.Event.on('achart1div', 'mouseout', fotoout);
  [ 15 posts ] Go to page 1, 2 Next
New Topic | Post Reply | Print view
Previous topic | Next topic
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum