Solved

Remote Scripting: Object doesn't support this property or method

Posted on 2004-10-21
396 Views
Last Modified: 2010-08-05
I have a ASP page which call remote scripting as shown below in a button onclick event:

RSObj = new RSGetASPObject("RemoteSct.asp");      
status = RSObj.MyFunction();

However, when running on some client PCs, I got "object doesn't support this property or method".  But all other client PCs, it ran fine.

I searched the MS website and found an article:
http://support.microsoft.com/kb/q257997/

According to this article, the problem may be caused by the applet - RSProxy.class - may not be fully downloaded or instantiated.  And the RSGetAspObject  should be placed in valid client event such as the button onclick even.  However, I am doing what this article recommends.  I have the RSGetASPOjbect in the onclick even of a button, but I am still getting the error on some PCs.  

Am I missing anything here?  Are there any components that have to be installed on a client machine first?

Please help.

JSM
0
Question by:jsmui
    11 Comments
     
    LVL 15

    Expert Comment

    by:justinbillig
    are you sure you have the path to the remote scripting libraries correct


    <!-- Include Client Side Remote Scripting code -->
                <script language = "javascript" src="PATH TO HTML FILE"></script>

                <!-- Initialize Client Side Remote Scripting code.  Must be in body -->
                <script language = "javascript">RSEnableRemoteScripting("PATH TO FOLDER THAT HOLDS THE RS FILES");</script>


    0
     
    LVL 15

    Expert Comment

    by:justinbillig
    did you include this file <!--#INCLUDE FILE="../_ScriptLibrary/RS.ASP"-->
    in

    RemoteSct.asp


    did you call RSDispatch at the end of that file
    0
     
    LVL 15

    Expert Comment

    by:justinbillig
    did you create your functions correct

    function FunctionDecleration( )
    {
            this.ThisFunctionName               = ReferencesThisFunction
    }

    var public_description = new FunctionDeclaration( );
    0
     
    LVL 15

    Expert Comment

    by:justinbillig
    RS is very very very touchy, Copy your RS file and then clear it, do just a little test function that return "true" , alert and see if it comes back
    0
     

    Author Comment

    by:jsmui
    Thanks for the quick response.

    I don't think it has anything to do with the ASP page or the Remote Script function.  Since it works fine on some client machines.  This problem only occurs on one or two client machines running the same ASP page calling the same Remote Script function.

    Josephine
    0
     
    LVL 15

    Expert Comment

    by:justinbillig
    What server language are you using?
    0
     

    Author Comment

    by:jsmui
    I'm using JScript.
    0
     
    LVL 2

    Accepted Solution

    by:
    THis sound to me that the Java Virtual Machine is not installed on these machines? The only time that I can consistently create this problem is when the JVM is not installed.

    Just a thought

    LaRell
    0
     

    Author Comment

    by:jsmui
    That may be it.  But where can I get the JVM?  Does it come with IE?

    Thanks!

    Josephine
    0
     
    LVL 2

    Expert Comment

    by:larellnielsen
    What OS? Sun has a JVM for all supported operating systems. I looked on MicroCrap's site and although I thought that they were releasing the JVM again I am wrong unless you want to be a good little MicroCrap programmer and convert you application to Microsoft Java otherwise known as .NET .

    Here is the Sun JRE download for Windows:
    http://java.com/en/download/windows_automatic.jsp

    All other go to:
    http://java.com/en/index.jsp

    Note: Sun JVM --> JRE (Java Runtime Environment)

    Did you have a chance to see if it was the JVM missing?

    LaRell
    0
     

    Author Comment

    by:jsmui
    The OS is Windows 2000.  It happened on a PC at a customer's site.  Haven't heard back from him yet.

    I bet this is the problem since I remember some time ago the same problem happened on a PC at another customer's site.  The administrator at that site installed some component to fix the problem.  Now when I compare the file name of this component with JVM setup, they are the same.

    Thanks!

    Josephine
    0

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    How your wiki can always stay up-to-date

    Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
    - Increase transparency
    - Onboard new hires faster
    - Access from mobile/offline

    Suggested Solutions

    Article by: DanRollins
    This article describes a JavaScript program that creates a maze made of hexagonal cells.  In Part 2 (http://www.experts-exchange.com/Programming/Languages/Scripting/JavaScript/A_7850-Hex-Maze-Part-2.html), we'll extend the program by adding a depth-…
    JavaScript can be used in a browser to change parts of a webpage dynamically. It begins with the following pattern: If condition W is true, do thing X to target Y after event Z. Below are some tips and tricks to help you get started with JavaScript …
    The viewer will learn the basics of jQuery, including how to invoke it on a web page. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery.: (CODE)
    The viewer will learn the basics of jQuery including how to code hide show and toggles. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery…

    909 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

    Need Help in Real-Time?

    Connect with top rated Experts

    13 Experts available now in Live!

    Get 1:1 Help Now