?
Solved

ASP Object Creation

Posted on 2000-03-10
5
Medium Priority
?
251 Views
Last Modified: 2008-03-10
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("WordPerfect.PerfectScript");

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.PerfectScript")

      WP.Quit    

      Set WP=Nothing    
End Sub
%>
hello
</BODY>
</HTML>
---------------------------------------

cheers
Bruce
0
Comment
Question by:bsandeman
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
5 Comments
 
LVL 7

Expert Comment

by:RBertora
ID: 2604220
Your second option is not VB script it is ASP code, you can only create the
server object in ASP. not vb or java script. (see your second example is inbetween
<% and %> this is all asp code.
Rob;-)
0
 
LVL 4

Accepted Solution

by:
jkunal earned 400 total points
ID: 2604228
In java script you have to use
GetObject function or

var wp= new ActiveXObject("WordPerfect.PerfectScript")

0
 
LVL 1

Author Comment

by:bsandeman
ID: 2604273
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
0
 
LVL 4

Expert Comment

by:jkunal
ID: 2604367
plsr

;->
0
 
LVL 15

Expert Comment

by:robbert
ID: 2604502
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
0

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Have you ever needed to get an ASP script to wait for a while? I have, just to let something else happen. Or in my case, to allow other stuff to happen while I was murdering my MySQL database with an update. The Original Issue This was written…
This demonstration started out as a follow up to some recently posted questions on the subject of logging in: http://www.experts-exchange.com/Programming/Languages/Scripting/JavaScript/Q_28634665.html and http://www.experts-exchange.com/Programming/…
Michael from AdRem Software explains how to view the most utilized and worst performing nodes in your network, by accessing the Top Charts view in NetCrunch network monitor (https://www.adremsoft.com/). Top Charts is a view in which you can set seve…
In this video, Percona Director of Solution Engineering Jon Tobin discusses the function and features of Percona Server for MongoDB. How Percona can help Percona can help you determine if Percona Server for MongoDB is the right solution for …
Suggested Courses

765 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question