an ASP.NET Open Source CMS & eCommerce platform
Search:
Skip Navigation LinksHome > DotShoppingCart Forums > Support > Using DotShoppingCart > Drag/Drop in Page Editor Issue
Last Post 1/27/2010 10:23:05 AM By Applied. 9 replies.
1/21/2010 2:48:11 AM
Applied
Posts: 93
Joined: 9/18/2009
Drag/Drop in Page Editor Issue
When I try to drag a block in the Page Editor, the block 'jumps' up away from the mouse cursor, then when the mouse is released, glides into a random position usually towards the top left of the page being edited. Disabling the page editor shows the block back in its place. Is there a fix for this? Or can the drag/drop feature be disabled?
 
1/21/2010 8:40:54 AM
lukezy
Posts: 2109
Joined: 6/12/2007
Location:WA, US
Re: Drag/Drop in Page Editor Issue
Which browser are you using and which version?
DotShoppingCart Staff
1/21/2010 10:11:02 AM
lukezy
Posts: 2109
Joined: 6/12/2007
Location:WA, US
Re: Drag/Drop in Page Editor Issue
Try IE8 or the latest FireFox.
DotShoppingCart Staff
1/22/2010 2:00:27 AM
Applied
Posts: 93
Joined: 9/18/2009
Re: Drag/Drop in Page Editor Issue
It works ok in FireFox and Google Chrome but at present I (and my clients) are mainly using IE7.
 
Can you look at or suggest a code fix for use with IE7 please?
 
1/22/2010 2:26:02 AM
Applied
Posts: 93
Joined: 9/18/2009
Re: Drag/Drop in Page Editor Issue
UPDATE - looks like this occurs if the page being edited has been scrolled i.e. the top of the page is not showing. The block being moved is the same distance away from the mouse as the amount the page has been scrolled.
 
1/22/2010 3:04:00 AM
Applied
Posts: 93
Joined: 9/18/2009
Re: Drag/Drop in Page Editor Issue
UPDATE - the JavaScript file "jquery-ui-1.5.2.min.js" needs to be updated to allow for left and top scroll offsets for IE7 (and before I believe).
 
Can you (or anyone) figure out how or where to change the JS file?
 
Looking on the web people are suggesting the use of "window.event.offsetX" and "window.event.offsetY", or "window.screenLeft" and "window.screenTop", or even "window.event.offsetX" and "window.event.offsetY" in the mouse move event handler.
 
 
1/22/2010 5:59:30 AM
lukezy
Posts: 2109
Joined: 6/12/2007
Location:WA, US
Re: Drag/Drop in Page Editor Issue
This is probably due to the new version of JQuery. I would suggest you wait until newer version of JQuery comes out or upgrade to IE8.
DotShoppingCart Staff
1/27/2010 8:28:42 AM
Applied
Posts: 93
Joined: 9/18/2009
Re: Drag/Drop in Page Editor Issue
Did you ever have it working in IE7?
 
If so do you have the version of the JS file that worked with it?
 
1/27/2010 9:57:40 AM
lukezy
Posts: 2109
Joined: 6/12/2007
Location:WA, US
Re: Drag/Drop in Page Editor Issue
You can try the JQuery version that is in DSC Version 3.1.
DotShoppingCart Staff
1/27/2010 10:23:05 AM
Applied
Posts: 93
Joined: 9/18/2009
Re: Drag/Drop in Page Editor Issue
Yup, that's the version we purchased. Are you able to test same out at your end?