Hi ,

Many thanks for your instant reply .

I will try to explain my current situation : I have some rectangle objects
and every object has a name with it which I show below the object .When I
drag the object only the object is dragged not the name , so after dropping
it I have to reload the page with new coordinates.

I am able to drag the object and even the drop is working but the only task
rest is that I am not able to get the form object to reload it;for which I
am using :
parent.parent.document.frames["update"].document.forms[0] ,which should
return the form object.

This was working in ASV but giving null in Batik.

I tried your option , but window.location appears as null so I am still
badly stucked.

Its really urgent if anyone can help me.

I can even afford to implement an entirely new method to implement the drag
and drop functionality if any one can provide the code for that.

Thanks & regards,
Shekhar

2009/5/19 Helder Magalhães <[email protected]>

> 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