Hi all, I have been trying to build a web page with Drag and Drop Functionality using SVG and JavaScript in SWP and also pure SVG
The page built using SWP displays the correct svg however the Drag and Drop was not working. I manage to fix the same page outside composer and save it in SVG and the drag and drop works. The fixes are very simple, and I was wondering if there is a way to fix it inside Composer instead of changing the svg file? I am attaching the two files to this email. The first thing, I had to delete the svg: namespace in all tags on the document. The second was to delete the :svg in front of the xmlns inside the svg tag. The third was to insert the events <onload="Init(evt)" onmousedown="Grab(evt)" onmousemove="Drag(evt)" onmouseup="Drop(evt)> that were inserted in the prototype svg:Svg Tag however were not present on the final svg svg tag Here is svg tag that is working: <svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/ 1999/xlink" height="100%" width="100%" onload="Init(evt)" onmousedown="Grab(evt)" onmousemove="Drag(evt)" onmouseup="Drop(evt)> Here is the code on the ui:prototype property on the page: <svg:Svg onload="Init(evt)" onmousedown="Grab(evt)" onmousemove="Drag(evt)" onmouseup="Drop(evt)" svg:height="100%" svg:width="100%"> Thanks in advance, Guil -- You received this message because you are subscribed to the Google Group "TopBraid Suite Users", the topics of which include TopBraid Composer, TopBraid Live, TopBraid Ensemble, SPARQLMotion and SPIN. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/topbraid-users?hl=en
