Can you switch focus between svg-elements using the tab control?! What I'm trying to do and what works fine so far in Batik 1.5 Beta5: The following simple SVG fills the rect-shapes blue when entering with your mouse, and red on leaving.
_________________________________________________________________________


<?xml version="1.0" ?>
<svg>
<script type="text/ecmascript">

        function renderFocus(e) {
                e.target.setAttribute('fill','#0000FF');
        }

        function reset(e) {
                e.target.setAttribute('fill','#FF0000');
        }

</script>
<title>Focus</title>
        <rect x="50" y="10" width="100" height="20" fill="#FF0000"
                onfocusin="renderFocus(evt);" onfocusout="reset(evt);"/>
        <rect x="50" y="40" width="100" height="20" fill="#FF0000"
                onfocusin="renderFocus(evt);" onfocusout="reset(evt);"/>
        <rect x="50" y="70" width="100" height="20" fill="#FF0000"
                onfocusin="renderFocus(evt);" onfocusout="reset(evt);"/>
        <rect x="50" y="100" width="100" height="20" fill="#FF0000"
                onfocusin="renderFocus(evt);" onfocusout="reset(evt);"/>
</svg>

_________________________________________________________________________

How can the same be accomplished by means of the tab control? I have fiddled around quite a while to no avail.

Does SVG (and Batik) support a tabindex attribute?

ralf ...


------------------------------------------------------------- Ralf Siegel - Freelance Developer Recommended Listening: Enon - High Society (Touch & Go) contact_site: mailto:[EMAIL PROTECTED] -------------------------------------------------------------



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



Reply via email to