Search the web
Sign In
New User? Sign Up
xbl-developers
? Already a member? Sign in to Yahoo!

Yahoo! Groups Tips

Did you know...
Want your group to be featured on the Yahoo! Groups website? Add a group photo to Flickr.

Best of Y! Groups

   Check them out and nominate your group.
Having problems with message search? Fill out this form to ensure your group is one of the first to be migrated to the new message search system.

Messages

  Messages Help
Advanced
build a XBL (web)app, save a snapshot of the visualisation, no bitm   Message List  
Reply | Forward Message #9 of 38 |
RE: [xbl-developers] build a XBL (web)app, save a snapshot of the visualisation, no bitmap but SVG

Hi, Ruud-

steltenpower wrote:
|
| Imagine you have built an application with XBL cause that is a great
| clean way of working with you data. While using the application you at
| some stage get such a nice picture on screen that you want to save it,
| maybe edit it with Inkscape and then use it for a PDF business report.
| Or less lucky; you get such a weird picture you expect something's
| wrong and like to use SVG debugging tools to figure out if or what is
| wrong in the SVG picture.
|
| To my surprise with MozXBL1 there is not a SVGDocument instance you
| can somehow get to. Also the DOM inspector doesn't offer a way. I'm
| now clumsily adding things in my bindings to still get to a
| SVGDocument, or rather construct it from ShadowContent bits (i'll post
| code when i'm done/stuck). Some helpful Mozilla people explained that
| MozXBL isn't designed for such a use case, that the Gecko rendering
| engine is not well fit for it and that it won't be possible at all in
| MozXBL2 for security- and DOM-limitation reasons.
|
| Do you think XBL is the right principle/way to go to implement this
| use case scenario, and if not please tell why and describe the mix of
| specifications that you think would better fit ?
|
| Am i missing or mistaking something in this message?


I think this is a perfectly valid use case, though I certainly can't speak
for the MozXBL guys, nor can I suggest a workaround (other than building a
"static" copy when you are constructing the elements via script). I will
suggest to the sXBL TF that there is a way to serialize the shadow content
en masse, such that it would be easier to save the output. The
presentational view of the data can be as important as the data itself.

The rationale "for security reasons" doesn't ring well with me, personally.
It always sounds like the politicians who say, "Think of the children." The
fact is, there are secure implementations of DOM3 Load&Save, and WebAPI is
addressing the issue of sandboxed file access.

Regards-
Doug







Wed Apr 19, 2006 9:07 pm

d_a_schepers
Offline Offline
Send Email Send Email

Forward
Message #9 of 38 |
Expand Messages Author Sort by Date

Imagine you have built an application with XBL cause that is a great clean way of working with you data. While using the application you at some stage get such...
steltenpower
Offline Send Email
Apr 19, 2006
1:45 am

Hi, Ruud- ... I think this is a perfectly valid use case, though I certainly can't speak for the MozXBL guys, nor can I suggest a workaround (other than...
Doug Schepers
d_a_schepers
Offline Send Email
Apr 19, 2006
9:56 pm

Workaround, to get representational snapshot, within MozXBL1 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Thanks for that answer Doug. Here's...
steltenpower
Offline Send Email
Apr 22, 2006
4:46 am

... just a few bugs left (if only Venkman didn't crash Mozilla every few moments): function process(shadowchunk){ var...
steltenpower
Offline Send Email
Apr 24, 2006
3:21 am

http://steltenpower.com/xbl/xbl1.xml call "view source" use the DOM inspector then call javascript:viewShadowSource(); and in the new window call "view...
steltenpower
Offline Send Email
Apr 25, 2006
2:56 am

Hi, started a page at http://www.svgx.org with the following quote: "sXBL works much like XSLT. More specifically, it works like a special kind of XSLT...
Michael Bolger
svgfoundation
Offline Send Email
Apr 25, 2006
4:58 pm
Advanced

Copyright © 2009 Yahoo! Inc. All rights reserved.
Privacy Policy - Terms of Service - Guidelines - Help