You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi, I load a large SVG diagram using draw.svg method:
$.get('a.svg', function(data) { var rawSvg = (new XMLSerializer()).serializeToString(data); var draw = SVG('drawing'); var store = draw.svg(rawSvg); });
I try also inlined SVG XML but in both of the cases it generates following image (arrow and lables are missing):
But using JQuery load it works
jQuery('#drawing').load('a.svg', null, function() { jQuery('#theElement').click( function() { alert('You clicked on the element!'); }); });
Do you have any idea what could be the wrong?
The text was updated successfully, but these errors were encountered:
Hi, I load a large SVG diagram using draw.svg method:
$.get('a.svg', function(data) {
var rawSvg = (new XMLSerializer()).serializeToString(data);
var draw = SVG('drawing');
var store = draw.svg(rawSvg);
});
I try also inlined SVG XML but in both of the cases it generates following image (arrow and lables are missing):
But using JQuery load it works
jQuery('#drawing').load('a.svg', null, function() {
jQuery('#theElement').click( function() {
alert('You clicked on the element!');
});
});
Do you have any idea what could be the wrong?
The text was updated successfully, but these errors were encountered: