Microsoft KB Archive/257997

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

Article ID: 257997

Article Last Modified on 12/1/2003

-

APPLIES TO


 * Microsoft Active Server Pages 4.0
 * Microsoft Internet Explorer 4.0 128-Bit Edition
 * Microsoft Internet Explorer 4.01 Service Pack 2
 * Microsoft Internet Explorer 4.01 Service Pack 1
 * Microsoft Internet Explorer 4.01 Service Pack 2
 * Microsoft Internet Explorer 5.0
 * Microsoft Internet Explorer 5.01
 * Microsoft Internet Explorer (Programming) 5.01 SP1
 * Microsoft Internet Explorer 5.5
 * Microsoft Visual InterDev 6.0 Standard Edition

-



This article was previously published under Q257997



SYMPTOMS
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.



CAUSE
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.



RESOLUTION
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: 

 RSEnableRemoteScripting;



Remote Scripting Sample

 var strServerURL = "rs_server.asp";

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

Keywords: kbscript kbprb kbremoteprog KB257997

-

[mailto:TECHNET@MICROSOFT.COM Send feedback to Microsoft]

© Microsoft Corporation. All rights reserved.