Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic diagramming.js with jQuery beta (Read 2325 times)
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
diagramming.js with jQuery beta
Jun 19th, 2014 at 10:54am
Print Post  
Now JsDiagram can use jQuery for browser abstraction instead of Microsoft Ajax. If anyone is interested in trying it, please download this archive containing a pre-release mindfusion.diagramming.js build and a sample page:
https://mindfusion.eu/_beta/jsdiag_jquery.zip

To enable jQuery support, set MindFusionImpl="JQuery" before loading the diagram script:

Code
Select All
<script type="text/javascript">
    MindFusionImpl = "JQuery";
</script>
<script src="jquery-1.7.1.js" type="text/javascript"></script>
<script src="MindFusion.Diagramming.js" type="text/javascript"></script> 



Instead of MSAjax $create function, use the static Diagram.create(element) method to create a Diagram instance for given Canvas element:

Code
Select All
diagram = MindFusion.Diagramming.Diagram.create($("#diagram")[0]); 



Any comments, questions and general feedback are welcome.
  
Back to top
 
IP Logged
 
Blue
YaBB Newbies
*
Offline


I Love MindFusion!

Posts: 9
Joined: Jun 11th, 2014
Re: diagramming.js with jQuery beta
Reply #1 - Jun 23rd, 2014 at 1:26pm
Print Post  
Are there any limitions on the jquery version used?
eg. 1.11.*/2.*

The version referenced isn't the latest one really.
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: diagramming.js with jQuery beta
Reply #2 - Jun 23rd, 2014 at 2:11pm
Print Post  
There aren't, the diagram uses it mostly for event handling and the event API should be the same since JQuery 1.11.
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint