Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic Editing with ImageMap, applet and SL based tool (Read 3721 times)
jonas
YaBB Newbies
*
Offline


I love YaBB 1G - SP1!

Posts: 9
Joined: Nov 9th, 2009
Editing with ImageMap, applet and SL based tool
Nov 9th, 2009 at 3:34pm
Print Post  
Hi.

We are investigating the possibility to have a diagram drawing tool that adapts to the clients capabilities.

* Diagrams are persisted on the server side
* If the client PC has the Java (or Silverlight) runtime installed, the diagram is opened in a Java applet (or Silverlight) version of our drawing tool.
* Otherwise the diagram is opened in an ImageMap-based version of our drawing tool
* A diagram that is saved in either version of the tool can be opened and edited with the other version of the tool.


Is this scenario technically feasible with the MindFusion components?
What are the limitations?

Best regards,
Jonas
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Editing with ImageMap, applet and SL based too
Reply #1 - Nov 9th, 2009 at 7:35pm
Print Post  
Hi,

There is no built-in detection of the available runtimes coming with the control. You might detect the runtime on some kind of welcome page and then redirect to a page that shows DiagramView in the respective mode. The bigger problem is that the client-side scripting APIs are very different at this time, so if you need to do provide more than simple diagram editing, you might have to implement several sets of JS scripts.

I hope that helps,
Stoyan
  
Back to top
 
IP Logged
 
jonas
YaBB Newbies
*
Offline


I love YaBB 1G - SP1!

Posts: 9
Joined: Nov 9th, 2009
Re: Editing with ImageMap, applet and SL based too
Reply #2 - Nov 10th, 2009 at 4:07pm
Print Post  
Thanks Stoyo.

How about the XML-document format used by the ImageMap, Java applet and SIlverlight components?
Is it possible to save a diagram with DiagramLite SaveToXml, and later open and edit the diagram using NetDiagram  LoadFromXml?

Best regards,
Jonas
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Editing with ImageMap, applet and SL based too
Reply #3 - Nov 10th, 2009 at 4:56pm
Print Post  
Hi Jonas,

Yes, it's possible. The server .NET component sends data to the client side through XML in all modes. Only if you create your own Silverlight control to host the Silverlight Diagram, make sure you don't specify WpfPoint as MeasureUnit - it's not supported in the other modes yet.

I hope that helps,
Stoyan
  
Back to top
 
IP Logged
 
jonas
YaBB Newbies
*
Offline


I love YaBB 1G - SP1!

Posts: 9
Joined: Nov 9th, 2009
Re: Editing with ImageMap, applet and SL based too
Reply #4 - Nov 11th, 2009 at 2:02pm
Print Post  
Thanks Stoyo, that sounds promising.

There seem to be differences in the version of the XML -format used by the NetDiagram trial version and the DiagramLite trial versions; I found sample XML files with version=11, version=12 and version=13.
How can we make sure that we use versions of NetDiagram and DiagramLite that are compatible on the XML-version level?

Best regards,
Jonas
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Editing with ImageMap, applet and SL based too
Reply #5 - Nov 11th, 2009 at 3:14pm
Print Post  
You will get version 11 only if using the XmlWriter class, which is obsolete and shouldn't be available in the API anymore. Are you using an older version of NetDiagram by any chance? Now you should use the Diagram.SaveToXml method for XML serialization.

The new in format 13 is support for a more compact xml representation where properties with their default values are not saved. You can override this by calling SaveToXml overload that takes a boolean argument.

Stoyan
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint