--- 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.

With IE7/ASV3.03 you can use getURL to read data from local file
Emulation of this function in Opera, Safari, Firefox need to work by 
URL ...

> If we can't figure it out, I will need to switch from 
Illustrator+SVG 
> to Expression+Silverlight+XAML. Uh-Oh..

Vilain chantage!!

Michel

> 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/
 

Reply via email to