Page Index Toggle Pages: 1 Send TopicPrint
Hot Topic (More than 10 Replies) Drag and Drop cannot work properly on Mac OS x (Read 9434 times)
chieh
Junior Member
**
Offline


I love YaBB 1G - SP1!

Posts: 64
Joined: Aug 18th, 2010
Drag and Drop cannot work properly on Mac OS x
Sep 23rd, 2011 at 11:51am
Print Post  
Hello
My client wants to use web service built by Net Diagram(MindFusion.Diagramming for ASP.NET, version 4) on Mac OS x (10 . 6. 8 ), she cannot use safari or firefox to drag and drop function on mac,

In this web service Drag and drop means ‘Drag a predefined shape from ShapeListBox object to DiagramView object’

So I updated latest version of Java and opened java console to see is there any error come out, there is no message and no error on Java console when doing drag and drop.
The version of mac system is Mac OS x (10 . 6 . 8 )
Safari - Version 5.1 (6534.50)

Firefox version - Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.6; en-US; rv: 1.9.2.22) Gecko/20110902 Firefox/3.6.22

But it works on windows OS.
Could you give us any solution?
Many thanks
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Drag and Drop cannot work properly on Mac OS x
Reply #1 - Sep 23rd, 2011 at 12:34pm
Print Post  
Hi,

It seems drag and drop to Java applets hasn't been working for some time on MacOS, both Safari and Firefox posts here:
https://bugzilla.mozilla.org/show_bug.cgi?id=588455

Our developer will try to debug that on Mac, but if the applet does not receive drag events as reported above, there won't be much we can do. For the time being you could let your client draw nodes directly with the mouse, or create them from the DoubleClicked script.

Stoyan
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Drag and Drop cannot work properly on Mac OS x
Reply #2 - Nov 8th, 2011 at 9:31am
Print Post  
Hi,

We have debugged this on MacOS and apparently applets do not receive drag-and-drop events at all, neither external ones nor ones coming from inside the applet. Given that Apple will no longer develop its own version of Java, there probably won't be a fix for this until Oracle release their Mac version.

Meanwhile we have implemented a new "Canvas" mode in Netdiagram 4.1 (beta version at http://mindfusion.eu/Forum/YaBB.pl?board=netdg_disc;action=display;num=132030776...). Drag-and-drop from the ShapeListBox works fine in that mode, so you might check if it provides the features you are currently using.

There's still a lot of stuff missing though from our Canvas js library, such as expand/collapse, support for custom shapes, lane grid, etc. If Canvas mode won't work for you, we could think of some work-around in applet mode, where nodes are created by selecting in the listbox and (double)clicking on the diagram.

Stoyan
  
Back to top
 
IP Logged
 
chieh
Junior Member
**
Offline


I love YaBB 1G - SP1!

Posts: 64
Joined: Aug 18th, 2010
Re: Drag and Drop cannot work properly on Mac OS x
Reply #3 - Nov 14th, 2011 at 2:10pm
Print Post  
Dear Sir/Madam,

Thanks for giving me a valuable reply, I downloaded V4.1 then replaced all dll files in bin folder. Recompile the whole project. First I tried to make sure this is trial version 4.1 beta shown on the diagram and then I tried to use drag and drop function. the result is sad, It didn't work.
Is there any solution to trigger it?
Many thanks
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Drag and Drop cannot work properly on Mac OS x
Reply #4 - Nov 14th, 2011 at 2:25pm
Print Post  
Have you set the ClientSideMode property to Canvas? It still defaults to JavaApplet.
  
Back to top
 
IP Logged
 
chieh
Junior Member
**
Offline


I love YaBB 1G - SP1!

Posts: 64
Joined: Aug 18th, 2010
Re: Drag and Drop cannot work properly on Mac OS x
Reply #5 - Nov 16th, 2011 at 5:08pm
Print Post  
DiagramView object is shown below
<ndiag:DiagramView ID="VSDiagramView" runat="server" Height="610px" Width="800px" NodeCreatedScript="onNodeCreated"
NodeDoubleClickedScript="onNodeDoubleClicked" ShapeLibraryLocation="../../LeanIcons.shl" BackColor="Transparent"
BorderColor="Transparent" LinkCreatedScript="onLinkCreated" LinkDoubleClickedScript="onLinkDoubleClick"
JarLocation="../../JDiagram.jar" ClientSideMode="Canvas">
<Diagram LinkHeadShape="PointerArrow" LinkBrush="s:#FFA9A9A9" LinkCrossings="Arcs" LinkHeadShapeSize="3"
LinkStyle="Bezier" BackBrush="s:#FFFFFFFF" AlignToGrid="true" ShowGrid="true" />
</ndiag:DiagramView>
  
Back to top
 
IP Logged
 
chieh
Junior Member
**
Offline


I love YaBB 1G - SP1!

Posts: 64
Joined: Aug 18th, 2010
Re: Drag and Drop cannot work properly on Mac OS x
Reply #6 - Nov 16th, 2011 at 5:08pm
Print Post  
Overview Object is shown below

<ndiag:Overview ID="Overview1" runat="server" DiagramViewID="VSDiagramView" Height="150px" Style="background-color: silver"
Width="200px" JarLocation="../../JDiagram.jar" />
  
Back to top
 
IP Logged
 
chieh
Junior Member
**
Offline


I love YaBB 1G - SP1!

Posts: 64
Joined: Aug 18th, 2010
Re: Drag and Drop cannot work properly on Mac OS x
Reply #7 - Nov 16th, 2011 at 5:09pm
Print Post  
ShapeListBox object is shown below

<ndiag:ShapeListBox ID="ShapeListBox1" runat="server" Height="450px" Style="background-color: white"
                                                           Width="200px" ShapeLibraryLocation="../../LeanIcons.shl" JarLocation="../../JDiagram.jar"  >
                                                       </ndiag:ShapeListBox>
  
Back to top
 
IP Logged
 
chieh
Junior Member
**
Offline


I love YaBB 1G - SP1!

Posts: 64
Joined: Aug 18th, 2010
Re: Drag and Drop cannot work properly on Mac OS x
Reply #8 - Nov 16th, 2011 at 5:10pm
Print Post  
Do I need to change additional settings from three objects?

when I change to canvas
cannot use drag-and-drop in all browsers

any suggestions?

Many Thanks
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Drag and Drop cannot work properly on Mac OS x
Reply #9 - Nov 17th, 2011 at 8:36am
Print Post  
I think you must set ClientSideMode on the Overview and ShapeListBox controls too.
  
Back to top
 
IP Logged
 
chieh
Junior Member
**
Offline


I love YaBB 1G - SP1!

Posts: 64
Joined: Aug 18th, 2010
Re: Drag and Drop cannot work properly on Mac OS x
Reply #10 - Nov 17th, 2011 at 4:11pm
Print Post  
Hello

Thanks for replying,

I added this to others , it didn't work. it came out blank and grey on object.
it is the problem of using Net Diagram 4.1 beta ?
Our current environment is ASP.NET 2.0.

Many thanks
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Drag and Drop cannot work properly on Mac OS x
Reply #11 - Nov 17th, 2011 at 6:06pm
Print Post  
We released version 4.1 yesterday. To enable canvas mode, you must add mindfusion.diagramming.js to your project, and either add a ScriptManager to the page or directly load MicrosoftAjax.js:
http://www.mindfusion.eu/onlinehelp/netdiagram/index.htm?Setting_up_Canvas_Mode....

The Fractal Layout demo here uses Canvas mode, from what I can see it works fine both in Safari and Firefox on Mac:
http://mindfusion.co/demos/

I hope that helps,
Stoyan
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint