In article <c135293296d173bac55bc25cee2ba1f7
@localhost.talkaboutprogramming.com>,
rp*****@nospam.indy.rr.com enlightened
us with...
I couldn't get it to work,
Did you get an error? If so, what?
Do you have MSIE set to actually tell you about errors? For testing, you
should.
so i guess i dont know where the VB script goes
at in the code.
Depends on your code.
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title> New Document </title>
</head>
<body>
<script type="text/vbscript">
Set obj = CreateObject("Word.Application")
obj.Visible = true
obj.Documents.Open("http://www.cuhumane.org/CARE/cats101.doc")
</script>
</body>
</html>
That works on my system.
Does it work on yours?
Note: you may get asked to confirm ActiveX, depending on IE settings.
And you ARE using MSIE as your browser, right? Because only MSIE understands
vbscript.
IF YOU ARE TESTING LOCALLY (on your computer with file->open instead of from
another server) UNDER WINXP SP2, THIS WILL NOT RUN BY DEFAULT.
WinXP SP2 will not allow scripts to run locally unless you putz around with
your security settings.
(of course, you should have gotten the little warning at the top of the page
telling you about it, but you may have disabled that or something)
http://www.phdcc.com/xpsp2.htm
--
--
~kaeli~
Practice safe eating - always use condiments.
http://www.ipwebdesign.net/wildAtHeart http://www.ipwebdesign.net/kaelisSpace