bsandeman
asked on
ASP Object Creation
Hi,
I receive the following error:
-------------------------- -------
Server object error 'ASP 0177 : 80004001'
Server.CreateObject Failed
/bruce/wp/js.asp, line 13
Not implemented
-------------------------- -------
This occurs for the following code written in Javascript:
-------------------------- ---------- ---
<%@ LANGUAGE="JavaScript" %>
<HTML>
<HEAD>
<TITLE>WP Javascript Test</TITLE>
</HEAD>
<BODY>
<%
test();
function test()
{
var wp = Server.CreateObject("WordP erfect.Per fectScript ");
wp.Quit();
wp = "";
}
%>
<br>
hello
</BODY>
</HTML>
-------------------------- ---------- ---
However, it seems to work through VBScript:
-------------------------- ---------- ---
<%@ LANGUAGE="VBSCRIPT" %>
<HTML>
<HEAD>
<META NAME="GENERATOR" Content="Microsoft FrontPage 4.0">
<META HTTP-EQUIV="Content-Type" content="text/html; charset=iso-8859-1">
<TITLE>WP VB Test</TITLE>
</HEAD>
<BODY>
<%
test
Private Sub test()
Dim WP
Set WP = CreateObject("WordPerfect. PerfectScr ipt")
WP.Quit
Set WP=Nothing
End Sub
%>
hello
</BODY>
</HTML>
-------------------------- ---------- ---
cheers
Bruce
I receive the following error:
--------------------------
Server object error 'ASP 0177 : 80004001'
Server.CreateObject Failed
/bruce/wp/js.asp, line 13
Not implemented
--------------------------
This occurs for the following code written in Javascript:
--------------------------
<%@ LANGUAGE="JavaScript" %>
<HTML>
<HEAD>
<TITLE>WP Javascript Test</TITLE>
</HEAD>
<BODY>
<%
test();
function test()
{
var wp = Server.CreateObject("WordP
wp.Quit();
wp = "";
}
%>
<br>
hello
</BODY>
</HTML>
--------------------------
However, it seems to work through VBScript:
--------------------------
<%@ LANGUAGE="VBSCRIPT" %>
<HTML>
<HEAD>
<META NAME="GENERATOR" Content="Microsoft FrontPage 4.0">
<META HTTP-EQUIV="Content-Type" content="text/html; charset=iso-8859-1">
<TITLE>WP VB Test</TITLE>
</HEAD>
<BODY>
<%
test
Private Sub test()
Dim WP
Set WP = CreateObject("WordPerfect.
WP.Quit
Set WP=Nothing
End Sub
%>
hello
</BODY>
</HTML>
--------------------------
cheers
Bruce
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
RBertora -> Both are ASP one written in VBScript and one written in Javascript.
ASP is not a language as such but a technology.
jkunal -> Thanks a lot for your quick answer. I did not find that documented anywhere.
cheers
Bruce
ASP is not a language as such but a technology.
jkunal -> Thanks a lot for your quick answer. I did not find that documented anywhere.
cheers
Bruce
plsr
;->
;->
Usually, Server.CreateObject works for JavaScript, too (check with other class strings).
There are always incompatibilites when getting different languages together. VBScript seems to be more tolerant than JavaScript (in MS's implementation).
BTW, in JavaScript, I'ld null;
wp = null
There are always incompatibilites when getting different languages together. VBScript seems to be more tolerant than JavaScript (in MS's implementation).
BTW, in JavaScript, I'ld null;
wp = null
server object in ASP. not vb or java script. (see your second example is inbetween
<% and %> this is all asp code.
Rob;-)