On Windows/with Internet Explorer it is possible to have html pages be
treated as an application and hence not have the Ecmascript/Javascript
security restrictions.Its called an HTA,
With Mozilla/Firefox there is something similar ... called XUL/XBL if
you are really intending to extend the Mozilla Browser you might want to
look these up.
samcctan wrote:
>Hi Holger,
>
>What do you mean "there is no way to communicate between ASV and
>firefox"?
>
>I am doing a project to improve the accessibility of the graphics to
>the blind and visually impaired people by using some assistive devices,
>such as audio and haptic. I am now concentrating on SVG graphics,
>especially for graphs. So, I am planning to have a plugin for the
>browsers. At the moment, we are concentrating on creating a firefox
>extension, but eventually we would like to have a plugin for IE as well.
>
>Anyway, I wrote a JavaScipt to extract the desired and important data
>and information from a SVG file, by using getAttribute,
>getElementsByTagName and so on. It is working at the moment but only if
>I read the SVG file which saved in the same directory in my local
>machine.
>
>This is snippet of my Code:
>
>function init(){
> readXML(SVGBarGrap.svg");
>}
>function readXML(url){
> if (window.XMLHttpRequest) {
> req = new XMLHttpRequest();
> req.overrideMimeType ("text/xml");
> req.onreadystatechange = processReqChange;
> req.open("GET", url, true);
> req.send(null);
> } else if (window.ActiveXObject) {
> req = new ActiveXObject("Microsoft.XMLHTTP");
> if (req) {
> req.onreadystatechange = processReqChange;
> req.open("GET", url, true);
> req.send();
> }
> }
>}
>function processReqChange() {
> if (req.readyState == 4 && req.responseXML) {
> var resp = req.responseXML;
> parseSVGFile(resp);
> }
>}
>
>But now, I would like to create this plugin which can extract the data
>and information from any of the SVG graph from any of the webpage.
>
The above is the security problem... scripting must come from the same
domain as the data.
> But
>I am not too sure how could I do that now. My idea is: When the user
>browse through a webpage, and found a SVG Graph on one of the webpage,
>then he will clock on a link to "view SVG". Then I suppose a new window
>with SVG graph will pop up. I would then like to have my plugin to work
>at this point, by directing my audio and haptic to represent the
>content of the graph.
>
>But I don't have any idea to read a file from a remote server. Or I
>should save the file on to the user's machine, but I am wondering can
>JavaScript does that....
>
>Is all these make any sense?
>
>Many Thanks,
>
>Sam
>
>
>.
>
>
>
--
Google Me at : Decision Driven Rolegaming
-- Lance Dyas
The Decision Driven Gaming Center
"Creating a language for describing how we do things to enable better
visualization in roleplay."
http://www.dyasdesigns.com/roleplay
------------------------ Yahoo! Groups Sponsor --------------------~-->
<font face=arial size=-1><a
href="http://us.ard.yahoo.com/SIG=12h0lmluf/M=362131.6882499.7825260.1510227/D=groups/S=1706030389:TM/Y=YAHOO/EXP=1124206298/A=2889191/R=0/SIG=10r90krvo/*http://www.thebeehive.org
">Get Bzzzy! (real tools to help you find a job) Welcome to the Sweet Life
- brought to you by One Economy</a>.</font>
--------------------------------------------------------------------~->
-----
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/