I haven't used this myself, but it sounds like the ObjectForScripting property (assuming you're using this version of the Webbrowser control) allows you to 'export' functions from the hosting windows application to the DOM via the window.external object.
http://msdn.microsoft.com/en-us/library/system.windows.forms.webbrowser.objectforscripting.aspx --- In [email protected], "Narcis" <narcisvasiliu@...> wrote: > > I made a windows application which display a svg doc in an IE webbrowser > control, with ASV. > My svg doc have this functions: > > <script type="text/ecmascript"> > <![CDATA[ > function changeColor(evt) { > evt.target.setAttributeNS(null,"fill","rgb(255,0,0)"); } > ]]> > </script> > > > So when I click a svg element it's color change to red. How can I tell to my > application what object I just clicked? How can I send to my app the > evt.target.getAttributeNS(null,"id") value? > > I used copyToClipboard(evt.target.getAttributeNS(null,"id")); and it works, > but in IE only, not in my webbrowser control :( > Do you have some suggestion? I just spent hours on google searching for this, > without success. > > Thank you. > ------------------------------------ ----- 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/ <*> Your email settings: Individual Email | Traditional <*> To change settings online go to: http://groups.yahoo.com/group/svg-developers/join (Yahoo! ID required) <*> To change settings via email: [email protected] [email protected] <*> 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/

