Notice: This website is an unofficial Microsoft Knowledge Base (hereinafter KB) archive and is intended to provide a reliable access to deleted content from Microsoft KB. All KB articles are owned by Microsoft Corporation. Read full disclaimer for more details.

PRB: Error "Object Doesn't Support This Property or Method" with Remote Scripting

View products that this article applies to.

This article was previously published under Q257997

↑ Back to the top


When you call the RSExecute or RSGetAspObject method from a Web page that uses Remote Scripting, you may receive the following error message:
Line 261:
Object doesn't support this property or method.
NOTE: The Visual Interdev 6.0 PageObject Design-Time Control (DTC) uses Remote Scripting for Execute methods.

↑ Back to the top


Remote Scripting uses a Java applet, RSProxy.class, to call the Active Server Pages (ASP) page whenever RSExecute or RSGetAspObject is called. This Java applet is downloaded from the Web server and instantiated in the browser. If the applet has not been fully downloaded or instantiated, the error occurs.

↑ Back to the top


To ensure that the RSProxy.class applet has been fully downloaded and instantiated, place all code that will make calls to RSExecute or RSGetAspObject within valid client events, such as button onClick events or onMouseOver events.

If the call to RSExecute or RSGetAspObject must occur when the Web page is first loaded into the browser, place the code that calls RSExecute or RSGetAspObject into the window object's onload event.

For example:

<SCRIPT Language="JavaScript" src="_ScriptLibrary/rs.htm"></SCRIPT>
<SCRIPT LANGUAGE="javascript">RSEnableRemoteScripting();</SCRIPT>

<BODY onload=Initialize()>

<H2>Remote Scripting Sample</H2>

<SCRIPT LANGUAGE="javascript">
   var strServerURL = "rs_server.asp";

   function Initialize()
     var objRemote = RSExecute(strServerURL, "ServerMethod");

↑ Back to the top

Keywords: kbprb, kbremoteprog, kbscript, KB257997

↑ Back to the top

Article Info
Article ID : 257997
Revision : 4
Created on : 12/1/2003
Published on : 12/1/2003
Exists online : False
Views : 455