Hi. In (X)HTML you can add an iframe element with the src attribute set to the location of your data file. Then the 'document' property of the iframe element should be a pointer to the DOM document element for that file. You'd probably wish to make the iframe invisible by CSS. I've only used this in Opera once. Maybe <object> <embed> or using XML data islands works better in IE.
I guess the way to do it without making use of these (X)HTML elements would be to use the XMLHttpRequest object. I haven't worked with this yet. But actually, when you open an SVG document in IE you always view an HTML document created on the fly which embeds the SVG. At least that is what I am shown when I choose View > Source from the browser menu of IE (as opposed to the pop-up menu of ASV). So with window.parent.document.body.addElement(myIFrame); I guess it would be possible to use the first solution I proposed, given that it's only required to work in IE+ASV. Bye Frank --- In [email protected], "lehnert.klaus" <[EMAIL PROTECTED]> wrote: > > Hi All, > Sorry if this is OT - but I need some pointers to achieve the following: > An 'onclick' event on a SVG element changes the 'visibility' attribute > of a SVG bar graph (separate SVG file). I have pretty much figured out > how to do this part ('onclick' event triggers function in external > JavaScript file). But: the 'onclick' event can be triggered by any one > of the 9000+ SVG elements in my diagram, and the resulting bar graph > needs to be specific for the element that triggered it. The raw data > for the bars are stored in an external file (a database, or a text file > if db is not possible). I know how to use either JavaScript or Perl to > create the bargraph SVG from the raw data, but I have no idea how to > open and read the raw-data file from the JavaScript function that > receives the 'onclick' event (and element ID)! It appears that JS is > intentionally UNABLE to read local files! Are there any suggestions? > This only needs to work in IE7/ASV3.03, and only read from local file > system (the entire thing is not connected to a network). Also, the > primary SVG file is not (and can't be) embedded in (X)HTML. > If we can't figure it out, I will need to switch from Illustrator+SVG > to Expression+Silverlight+XAML. Uh-Oh.. > > Cheers, and many thanks in advance > klaus > ----- 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: mailto:[EMAIL PROTECTED] mailto:[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/

