Adobe provides this vbs file that is necessary to use their SVG Viewer
plugin. However vbs is not recognized on Mozilla and i need to convert
this to a Javascript file. I have no idea of vbs. Can someone help ?
Following is the vbs :

' Copyright 1999-2000 Adobe Systems Inc. All rights reserved.
Permission to redistribute
' granted provided that this file is not modified in any way. This
file is provided with
' absolutely no warranties of any kind.
Function isSVGControlInstalled()
on error resume next
isSVGControlInstalled = IsObject(CreateObject("Adobe.SVGCtl"))
end Function

Thank you so much
b mathur.

Re: Converting svgcheck.vbs to a java script by Joe

Joe
Wed Jun 23 03:58:06 CDT 2004

"b mathur" <bmathur@gmail.com> wrote in message
news:c13e93b8.0406221121.772bb07a@posting.google.com...
> Adobe provides this vbs file that is necessary to use their SVG Viewer
> plugin. However vbs is not recognized on Mozilla and i need to convert
> this to a Javascript file. I have no idea of vbs. Can someone help ?
> Following is the vbs :
>
> ' Copyright 1999-2000 Adobe Systems Inc. All rights reserved.
> Permission to redistribute
> ' granted provided that this file is not modified in any way. This
> file is provided with
> ' absolutely no warranties of any kind.
> Function isSVGControlInstalled()
> on error resume next
> isSVGControlInstalled = IsObject(CreateObject("Adobe.SVGCtl"))
> end Function
>
> Thank you so much
> b mathur.
The following script is a rough translation into JScript but Mozilla doesn't
support the ActiveXObject function either so this won't work in a browser.
Even if you just made the function return true later on the main code
wouldn't be able to crate the necessary objects.
I think you need another solution.
In what context is this being used?

function isSVGControlInstalled()
{
try
{
var o = new ActiveXObject("Adobe.SVGCtl");
o = null;
return true;
}
catch(e)
{
return false;
}
}

But if this is called
--

Joe (MVP)



Re: Converting svgcheck.vbs to a java script by bmathur

bmathur
Wed Jun 23 14:24:08 CDT 2004

Joe,

Thanks you for your response. Basically I am trying to determine if
the SVGViewer is installed on my client machine. If it is not then I'd
like to display the plugin pop-up for the user asking them to
downloand SVG Viewer in order to be able to view their SVG charts.

thanks
bhavna.

Re: Converting svgcheck.vbs to a java script by Joe

Joe
Fri Jun 25 03:08:36 CDT 2004

"b mathur" <bmathur@gmail.com> wrote in message
news:c13e93b8.0406231124.13843966@posting.google.com...
> Joe,
>
> Thanks you for your response. Basically I am trying to determine if
> the SVGViewer is installed on my client machine. If it is not then I'd
> like to display the plugin pop-up for the user asking them to
> downloand SVG Viewer in order to be able to view their SVG charts.
>
> thanks
> bhavna.
Okay, I didn't realise there was a plug-in svg viewer for Mozilla. Wher can
I get it?

--

Joe