Hi Michael,

"Bishop, Michael W. CONTR J9C880" <[EMAIL PROTECTED]> wrote on 
07/08/2006 04:17:28 PM:

> Not a bad idea.  I considered it at first, but in the case of "g" 
elements or 
> other elements with children, what happens to those children?  I'll 
experiment
> and find out, but if someone knows, that'd help.

   The children are removed from the DOM temporarily as well.
This should not cause any real problem, although it will be quite
a bit more expensive (the entire subtree will need to be recreated
instead of just one element, but that might be the case anyways).

   Now that I think about it a little more, you can probably
get exactly the same effect by setting 'display="none"' as
this will also keep Batik from looking too closely at any of those 
elements.

> ________________________________
> 
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
> Sent: Sat 7/8/2006 6:20 AM
> To: [email protected]
> Cc: [email protected]
> Subject: Re: Turning off the JSVGCanvas error checking?
> 
> 
> 
> Hi Michael,
> 
>     Simply remove the element from the document tree before modifying 
it.
> I would suggest getting it's nextSibling and using that with the parent 
to
> 
> reinsert it in the proper place in the document:
> 
>         Node parent = e.getParentNode();
>         Node sibling = e.getNextSibling();
>         parent.removeChild(e);
> 
>         // Make changes to e.
> 
>         parent.inserBefore(e, sibling); // restore to proper place in
> document.
> 
> "Bishop, Michael W. CONTR J9C880" <[EMAIL PROTECTED]> wrote on
> 07/07/2006 03:25:30 PM:
> 
> > OK, say I?m updating the attributes of an element.  In a single method
> (run
> > inside the JSVGCanvas UpdateManager), I remove all the attributes from
> the
> > element and put the new ones in.  I do it this way to ensure I don?t
> leave
> > anything extra.
> > For example:
> >
> > Element A has attributes x, y, z.
> > I get an updated version of the element that updates x, but also has
> (only)
> > attributes v and w.
> >
> > In order to get to the proper update state of x, v, w, I remove all 
the
> > attributes from A and then set all the attributes contained in the
> update.
> >
> > The problem is that if attribute x is required, I get the JSVGCanvas
> pop-up
> > saying it?s required, even though I immediately replace the attribute 
in
> the
> > same element.  How can I disable those pop-ups until I?m done messing
> with theDOM tree?
> >
> > Michael Bishop
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> 
> [attachment "winmail.dat" deleted by Thomas E. DeWeese/449433/EKC] 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to