Add to Favorites    Make Home Page 28273 Online  
 Language Categories  
 Our Services  

Home » ASP Home » Misc. Home » Remote Scripting Basics

A D V E R T I S E M E N T

Search Projects & Source Codes:

Title Remote Scripting Basics
Description Remote Scripting is a magical, infinitely powerful Javascript client library that allows: Javascript in an HTML or ASP page to call an ASP subroutine on the server to fetch data dynamic page construction via Javascript that could be for example fetching database data for a page without reloading the page. The main limitations are the browser must be a 4.x browser It doesn't work on IE Mac (thanks to "Brad Rhoads" for that tip) The current version requires 3 files: rs.asp, rs.htm and rsprox.class which can be downloaded from http://msdn.microsoft.com/scripting on the server to work and their exact path must be set in the files (/learn/test/remote/ is the path in these samples).
Category ASP » Misc.
Hits 4638
Code Select and Copy the Code
Our sample remote1.htm looks like this: <HTML><HEAD><TITLE>remote1.htm</TITLE></HEAD> <BODY onload="handleRSExecute()"> <script language="JavaScript" src="/learn/test/remote/rs.htm"></script> <script language="JavaScript">RSEnableRemoteScripting("/learn/test/remote/");</script> <h2>Simple Remote Scripting Example</h2> <form name="remote1"> The Test <Input Type="text" name="test" value="none"><br> <SCRIPT LANGUAGE="javascript"> var serverURL = "remote1.asp"; Function myCallBack(co) { // document.write (co.return_value); remote1.test.value=co.return_value; } Function handleRSExecute() { var co = RSExecute(serverURL,"Method3"); myCallBack(co); } </SCRIPT> </form> </HTML> Our sample remote1.asp looks like this: <%@ LANGUAGE=VBSCRIPT %> <% RSDispatch %> <!--#INCLUDE VIRTUAL="/learn/test/remote/rs.asp"--> <SCRIPT RUNAT=SERVER Language=javascript> Function Description() { this.Method1 = Method1; this.Method2 = Method2; this.Method3 = Method3; } public_description = New Description(); Function Method1() { return "method1"; } Function Method2() { return "method2"; } Function Method3() { return "method3"; } </script>

Related Source Codes

Script Name Author
ııııııııııııııııııııı VyomWorld
Resistor color code reader A.Chermarajan.
Telephone Directory dhivya
card swapping game (Mini Project) nityanand
simple hangman-pascalsource Seabert
college dirtectory (Mini Project) msridhar
Poll Application John van Meter
ASP Daily Hit Counter. Tejaskumar Gandhi
To avoid null in asp environment using sql Sami
Maklumbalas webmaster
poll John van Meter
EasyASP Template Engine. TjoekBezoer
Basic Calculator using HTML & Javascript. Patrick M. D Souza
What servers support ASP ? VyomWorld
What is ASP? VyomWorld

A D V E R T I S E M E N T




Google Groups Subscribe to SourceCodesWorld - Techies Talk
Email:

Free eBook - Interview Questions: Get over 1,000 Interview Questions in an eBook for free when you join JobsAssist. Just click on the button below to join JobsAssist and you will immediately receive the Free eBook with thousands of Interview Questions in an ebook when you join.

New! Click here to Add your Code!


ASP Home | C Home | C++ Home | COBOL Home | Java Home | Pascal Home
Source Codes Home Page

 Advertisements  

Google Search

Google

Source Codes World.com is a part of Vyom Network.

Vyom Network : Web Hosting | Dedicated Server | Free SMS, GRE, GMAT, MBA | Online Exams | Freshers Jobs | Software Downloads | Interview Questions | Jobs, Discussions | Placement Papers | Free eBooks | Free eBooks | Free Business Info | Interview Questions | Free Tutorials | Arabic, French, German | IAS Preparation | Jokes, Songs, Fun | Free Classifieds | Free Recipes | Free Downloads | Bangalore Info | Tech Solutions | Project Outsourcing, Web Hosting | GATE Preparation | MBA Preparation | SAP Info | Software Testing | Google Logo Maker | Freshers Jobs

Sitemap | Privacy Policy | Terms and Conditions
Copyright ©2003-2019 SourceCodesWorld.com, All Rights Reserved.
Page URL: http://www.sourcecodesworld.com/source/show.asp?ScriptID=275


Download Yahoo Messenger | Placement Papers | Free SMS | C Interview Questions | C++ Interview Questions | Quick2Host Review