mxgraph q&a
Eventually I need to be able to exchange between js and server beans. Does mxGraph provide some Ajax abstractions for different browsers?
mxXmlRequest is mxGraphs cross-browser abstraction for XHR.
How can I perform a round-trip (load/save) in mxGraph using the .NET or Java back-ends?
.NET
Refer to the Save.ashx and Deploy.ashx examples in dotnet/aspnet. The Save example demonstrates how to save the XML, while the Deploy.ashx demonstrates how to deploy an editor and the diagram in the same page.
Java
The roundtrip.java example (com.mxgraph.examples.web.Roundtrip) is a Java servlet that demonstrates both saving to and loading from a server. The Main example in the same package contains an embedded Jetty servlet engine, you can run it as a Java application and it will deploy at http://localhost:8080.
Navigating to that page offers the roundtrip example link, demonstrating loading a diagram, then saving it again.
Is there a way to record all the changes made by user to the graph displayed, save it at server side(in xml format or any)? (Then when the user loads the page again, display the latest graph: Am able to do this). Am unable to find a hook to the first part, ie, recording and saving the changes at server side.
Use a graphmodel change listener as shown on line 667 ff. in mxGraph (the changes are in evt.getProperty('edit').changes). 搜('edit').changes
Hi, I am researching this library. Is it possible to use JSON for the payload between server and client?Our development team has standardized its usage (JSON) and want to see if we can use it insterad of the XML that you use.
Yes, that's possible. However, since we use an XML format, we don't provide any classes or file formats for this. The mxXmlRequest can be used with any format though.
- mxGraph破解说明
- MxGraph框架实现web版流程图
- mxGraph User Manual - JavaScript
- mxgraph进阶(三)Web绘图——mxGraph项目实战(精华篇)
- mxGraph使用笔记
- vue中使用mxgraph的方法实例代码详解
- 新年到来两天,把mxgraph1.9.0.2给破解了.爽一把先...
- MxGraph导出流程图为图片文件
- mxgraph入门 之 mxcell的操作方法
- mxgraph在线画UML图
- mxGraph节点图形设置
- mxGraph使用经验总结
- 强大的Web画图JavaScript库 – mxgraph
- mxGraph简单应用部分代码
- js画图开发库--mxgraph--[perimeter-边界.html ]
- mxgraph删除所有的元素cells
- mxgraph的右键菜单
- mxGraph 1.9.2.0 发布 WEB流程图JS库
- mxgraph生成orgchart图
- mxGraph保存图片