Login Register

How to delete a surface

[editor: moving to the appropriate forum...]

In order to do a refresh of the page, i need to remove the dojox.gfx surface then recreate the surface and redraw the images on it.

I have checked the dojox gfx api on surface part, i can find the two functions for creation of surfaces, but none for delete the surface.

I wonder if there is a function to delete the surface? I hope i do not have to find it in the DOM and delete from there?

Thanks,

Good question. I think this

Good question. I think this functionality is missing. Feel free to create an enhancement ticket for that in the trac (use guest/guest). It should be possible to delete surfaces for vml, svg, and canvas. I am not so sure about Silverlight --- I don't recall if it has any way to remove it.

does anybody know how to

does anybody know how to delete a surface?

thanks!

Kill the object and kill the

Kill the object and kill the div you used to base your surface on.