开发者

Can I render an HTML form inside a Raphael entity?

I want to draw draggable entities 开发者_如何学编程with Raphael, but some of these entities should support handling user input (text lines, forms, etc). The user input could be done in regular HTML (open to alternatives), but I was curious if Raphael can handle dragging non SVG objects.


Short answer: You can't, sadly. There are other SVG libraries which have more functions. But none of them appeal to me like Raphäel does.

Have a look at these: http://www.farinspace.com/top-svg-javascript-libraries-worth-looking-at/

A nice solution would be an ui event triggern a lightbox. Looks good :)


I did this recently, but I had to patch raphael.js for this. Overall, it was a painful experience. If I had to start another project like this again, I would have created separate native SVG and VML versions.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜