I am using the Adobe SVG Viewer (ASV) installed on Internet Explorer vr. 6.0.2900.2180 (sp2) to show svg files in an "<embed>" tag.
The svg files begin with the tags : <?xml version="1.0" encoding="iso-8859-1" standalone="no"?> <svg id="root" width="2000" height="2000" onload="init(evt);" style="background-color:white;" viewBox="0 0 2000 2000" version="1.1" baseProfile="full" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:ev="http://www.w3.org/2001/xml-events"> The script files are loaded by : <script type="text/ecmascript" xlink:href="../Java/psl.js"/> The script above has the function bellow, where "obj" is a "G" svg object, "eventType" is an event type as 'click', "fnHandler" is a function signature (name), and "useCap" a boolean value to indicate the option to use or not "capture events" : //------------------------------------------------------- function addEventJJ(obj, eventType, fnHandler, useCap) { if( obj.addEventListener) { //alert("doing"); try { obj.addEventListener(eventType, fnHandler, useCap); return true; } catch(e) { return false; } } else if(obj.attachEvent) { //alert("attachEvent"); try{ var res = obj.attachEvent("on" + eventType, fnHandler); return res; } catch(e){return false;} } else { //alert("outros"); obj["on" + eventType] = fnHandler ; } } //------------------------------------------------------- The function above does not work out on Adobe SVG Viewer v3.0 . Does anybody have a clue on this matter ? Do ASV support attaching events at runtime ? Thank you very much indeed. Jayme Jeffman Filho. ----- 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/