Home

Forum | News | Getting Started | How to | Hello World | Reference | Archive | Downloads | Contact | FAQ
Extend Your Business
Reference

ServiceInclude

To create a new ServiceInclude, use the following lines of code:

var mySvcIncl = new ServiceInclude();

src : the source property

To define the source, enter the path to your ServiceInclude - file on your webserver.

mySvcIncl.src = "http://www.myserver.com/services/mysvcfile.js

mySvcIncl.src = "http://www.myserver.com/services/mysvcfile.asp

mySvcIncl.src = "http://www.myserver.com/services/mysvcfile.cgi

args : arguments that are being send to the ServiceInclude

To send arguments to your ServiceInclude, use the following code:

mySvcIncl.args = "myValue1=argument1&myValue2=argument2";

mySvcIncl.args = "myValue1=" + document.myForm.myTextbox.value;

Note that you can send as many arguments as you wish, you can access them within your ServcieInclude as if it was a querystring added to the URL.

set() : process your ServiceInclude

The set() command processes your ServiceInclude, means it will load the Include when you call the method. You can call the method after you set the Source-argument. Args are not neccessary.

mySvcIncl.set()

Copyright 2001 - 2003, Marc Ernst, Germany -- Other Authors: Michael Elwers, Germany -- The authors do not take any responsibility for the codes published on this website. The authors cannot be held responsible for any damage.