[svg-developers] Re: printNode problem
Have you tried putting right after the xml processing instruction? It enables you to save the DOM as it is in memory. Johanne --- In svg-developers@yahoogroups.com, "fgn.rm" <[EMAIL PROTECTED]> wrote: > > I have an application that should the following: > > 1. display an svg on the browser with ASV3 > 2. lets the user change the dom with some javascript functions > 3. and saves the entire svg back to the server using > printNode(document) and postURL > > however, Im having a real hard time getting the latter to work. > > the function printNode seems to be translating say symbols like > @quot; to actual quotation marks, and this totally messes up the saved > svg. > > here is an example: > > > onload="init(evt)"> > > > function init (evt) { > data = printNode(document) > alert(data); > } > > ]]> > > > > Notice the id="SVG @quot;" becomes id="SVG "" with two quotes at the > end when stored in the data variable. > > This is becoming a major problem specially for svgs that contain svg > fonts since they have lots of alphabet symbols. > > Does anybody have any suggestions? > > > Thanks, > > Felipe - To unsubscribe send a message to: [EMAIL PROTECTED] -or- visit http://groups.yahoo.com/group/svg-developers and click "edit my membership" Yahoo! Groups Links <*> To visit your group on the web, go to: http://groups.yahoo.com/group/svg-developers/ <*> To unsubscribe from this group, send an email to: [EMAIL PROTECTED] <*> Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
[svg-developers] Re: sXBL, loading using JavaScript
Hi Holger, I am not David...at least not at the moment, I think. My answer was more geared to applying the xbl definitions. I thought that was what David wanted to get at. So it is quite possible that my answer was besides the point. Sorry. Johanne --- In svg-developers@yahoogroups.com, Holger Will <[EMAIL PROTECTED]> wrote: > inf_demo schrieb: > > > --- In svg-developers@yahoogroups.com, Holger Will <[EMAIL PROTECTED]> > > wrote: > > > as far as i understand it , binding is done via a match of the > > element- > > > attribute with the local name of an element. so i think creating > > your > > > definition, and then do myXBLElement.appendChild(definition) should > > be > > > enough. > > > > This is what I have done. However, after building the shadow tree, it > > is appended to an svg or g element not an xbl element, which is > > supposed to remain independent of the rendered elements afaik. > > > > Johanne > > Hi Johanne > are you david, whom i answered ? or did you just have the same question ? > did i misunderstand ? it sounds like you try to implement XBL, i thought > you just wanted to create definitions via js! > i really dont understand what you mean with: "after building the shadow > tree, its appended..." > what i meant, was that when creating definitions via js, you just append > this definition to an xbl- element. you dont do anything with any shadow > content... > please clearify. > cheers > Holger - To unsubscribe send a message to: [EMAIL PROTECTED] -or- visit http://groups.yahoo.com/group/svg-developers and click "edit my membership" Yahoo! Groups Links <*> To visit your group on the web, go to: http://groups.yahoo.com/group/svg-developers/ <*> To unsubscribe from this group, send an email to: [EMAIL PROTECTED] <*> Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
[svg-developers] Re: sXBL, loading using JavaScript
--- In svg-developers@yahoogroups.com, Holger Will <[EMAIL PROTECTED]> wrote: > as far as i understand it , binding is done via a match of the element- > attribute with the local name of an element. so i think creating your > definition, and then do myXBLElement.appendChild(definition) should be > enough. This is what I have done. However, after building the shadow tree, it is appended to an svg or g element not an xbl element, which is supposed to remain independent of the rendered elements afaik. Johanne - To unsubscribe send a message to: [EMAIL PROTECTED] -or- visit http://groups.yahoo.com/group/svg-developers and click "edit my membership" Yahoo! Groups Links <*> To visit your group on the web, go to: http://groups.yahoo.com/group/svg-developers/ <*> To unsubscribe from this group, send an email to: [EMAIL PROTECTED] <*> Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/