Remote Scripting on discount asp.net

Discussion in 'Classic ASP' started by PGScannell, Jan 30, 2007.

Thread Status:
Threads that have been inactive for 5 years or longer are closed to further replies. Please start a new thread.
  1. I am considering hosting my website with discount asp.net. One potential stumblin block centers on the ability to perform remote scripting functions from my pages.

    The sales department conferred with the tech area and reported to me that they didn't support it. Everything I have seen to date says that the developer controls his/her own destiny as far as remote scripting.

    Is there anyone here who has successfully implemented remote scripting here? I'm talking about the basic use of rs.htm, rs.asp, and rsproxy.class.

    Thanks in advance,
    Paul
     
  2. I think that's exactly what I mean. I am using the old way via the java applet. the three base files are rs.asp, rs.htm, and rsproxy.class. I believe that IIS supports it by default. I have never had a problem using it in the past. In fact, it even works on the old Windows 98 Personal Web Server (PWS) environment.


    You asked for an example of it. Here it is.


    Immediately after the tag place:


    <SCRIPT language="javascript" src="rs.htm"></SCRIPT>
    <SCRIPT language=javascript>RSEnableRemoteScripting(".");</script>



    Inside the <head> place the javascript that will call the function that interfaces to the server through the java applet:


    var myVar = RSExecute ( "server.asp", "remoteFunction", numVar1, numVar2, numVar3 );


    var myArray= myVar.return_value.split("~" );
    var numFound= myArray.length-1;



    Where "server.asp" is the source file that contains your functions


    "remoteFunction" is the function to call


    numVarx are the parameter(s) to the function


    The contents of 'server.asp' would look something like:


    <%@ LANGUAGE=VBSCRIPT %>
    <!--#include file="rs.asp"-->



    <% RSDispatch %>


    <SCRIPT Language=JavaScript RUNAT=SERVER>


    function funcList()
    {
    this.remoteFunction = remoteFunction;
    }



    public_description = new funcList();


    function remoteFunction ( numVar1, numVar2, numVar3 )
    {



    vartmpMsg = new String;


    tmpMsg.value = "";


    JS_query ( "select* from table where var1 = " +numVar1 + " and var2 = " +numVar2 + " and var3 = " + numVar3);
    if ( !objRS.EOF )
    {
    tmpMsg.value = objRS ( "fldName1" ) +"~" + objRS ( "fldName2" ) + "~";
    }



    objRS.Close ();
    objConn.Close();



    return tmpMsg.value;
    }
     
  3. Remote Scripting has become a very broad term. Can you provide an example of what you want to do?

    If you're trying to do something like this, http://www.codeproject.com/aspnet/AlvaroRemoteScripting.asp, it should work.

    I believe we have a 30 day money back guarantee. so if it doesn't work and you can't get the support you need in the forum, just cancel and get a refund :)


    Joel Thoms
    DiscountASP.NET
    http://www.DiscountASP.NET
     
  4. This is a good community forum, there are very few negative posts here.
    Thanks for being positive Paul. [​IMG]
     
  5. Between the time I posted this question and now I received another response from the sales team stating that they misunderstood me and Remote Scripting is supported. I verified this last night with my new test site.


    Thanks for getting back to me so quickly. My initial sense about this forum is that it is very good. I am looking forward to sharing knowledge with everyone.


    Paul
     
Thread Status:
Threads that have been inactive for 5 years or longer are closed to further replies. Please start a new thread.

Share This Page