搜尋 Mozilla 技術支援網站

防止技術支援詐騙。我們絕對不會要求您撥打電話或發送簡訊,或是提供個人資訊。請用「回報濫用」功能回報可疑的行為。

Learn More

HTML5 drop event changes URL

  • 無回覆
  • 1 有這個問題
  • 1 次檢視
more options

Hi everyone.

I have a problem with a HTML5 drag/drop. When i drop a certain elements using HTML5 drag drop events on my page the drop is executed correctly and afterwards firefox tries to navigate to a different url. The same code works for IE 11, Edge and Chrome. It only fails in Friefox (regardless of version)

To see the effect you can navigate to www.darkbird.de --> click on 'LIVE-DEMO' --> 'Geschäftsführer' --> 'Planung' --> 'Daily Bugle' --> Drag on item from the Column 'Schichten' onto a gray block (that appears when dragging) and drop it. The dragged information ev.getdata('text') is '.shiftguid=f5c9bdb4-5570-4f32-8a4a-0c8f2877d3b0'. The javascript for the drop operation is executed correctly and then the browser changes the url to 'www.shiftguid=f5c9bdb4-5570-4f32-8a4a-0c8f2877d3b0.com'.

I checked everything multiple times and it is working on the lastest Chrome, IE, Edge and Safari on Windows and Mac. Only firefox has this strange behaviour.

I would be very glad if you could help me out.

Cheers Tobi

Hi everyone. I have a problem with a HTML5 drag/drop. When i drop a certain elements using HTML5 drag drop events on my page the drop is executed correctly and afterwards firefox tries to navigate to a different url. The same code works for IE 11, Edge and Chrome. It only fails in Friefox (regardless of version) To see the effect you can navigate to www.darkbird.de --> click on 'LIVE-DEMO' --> 'Geschäftsführer' --> 'Planung' --> 'Daily Bugle' --> Drag on item from the Column 'Schichten' onto a gray block (that appears when dragging) and drop it. The dragged information ev.getdata('text') is '.shiftguid=f5c9bdb4-5570-4f32-8a4a-0c8f2877d3b0'. The javascript for the drop operation is executed correctly and then the browser changes the url to 'www.shiftguid=f5c9bdb4-5570-4f32-8a4a-0c8f2877d3b0.com'. I checked everything multiple times and it is working on the lastest Chrome, IE, Edge and Safari on Windows and Mac. Only firefox has this strange behaviour. I would be very glad if you could help me out. Cheers Tobi