Hi Shekhar,

> I am using batik in my application and I want to put a functionality of drag
> and drop any particular element in my SVG document.
> I am using javascript in doing this and I am able to do dragging the element
> , even drop is done but the the element is still visible at its older
> location.

Did you take a look at "How To Enable Dragging in SVG" [1] sample...?
Not sure if I understood that "element is still visible at its older
location" (sounds like buggy behavior).


> This is because aftre drop I need to reload the document with new
> coordinates.

Is this a requirement? If you need to do some sort of server
synchronization, I'd suggest using an AJAX-based approach
(server-push, to be more exact, as you'd be probably using getURL and
any format for data such as JSON).


> For reloading the document i am trying to get the form object with following
> line :
> "parent.parent.document.frames["update"].document.forms[0]"
> and then I fire submit() on the object.

This sounds pretty much an hack... Note that, since revision 712954
[2], a subset of the Window interface was implemented so, in order to
reload a document, you may now simply use "window.location.reload()".
;-)


> The problem I am facing here is I am not able to get the parent object and
> it appears as null and I am not able to reload the document.And I am able to
> execute the same line of code in ASV.
> If any one can help me with this 'parent' object or If anyone can guide me
> any other way to implement this drag and drop functionality,then it will be
> a great help.

This was already asked a couple of days ago in the mailing list [1].


> Thanks,
> Shekhar

Hope this helps,
 Helder


[1] http://blog.codedread.com/archives/2005/12/21/how-to-enable-dragging-in-svg/
[2] http://svn.apache.org/viewvc?view=rev&revision=712954
[3] https://issues.apache.org/bugzilla/show_bug.cgi?id=46072
[4] 
http://www.nabble.com/Batik-applet-integration-(was-%22Re%3A-Using-Batik-to-convert-Tiff-to--JPG%22)-td23573291.html

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to