How works affiliation system? (example)
Adorohotels affiliation system works in AJAX technology.
Affiliation program gives possibility to sell hotel reservation service outside of Adorohotels website. It is necessary to insert an appropriate HTML code in your own web site, for example:
<script type="text/javascript" src="http://www.adorohotels.com/a/external/cdajax/cdajax.js"></script>
<script type="text/javascript" src="http://www.adorohotels.com/a/polish/defaults.js"></script>
<script type="text/javascript" src="http://www.adorohotels.com/js/affiliation.js"></script>
<script type="text/javascript" src="http://maps.google.com/maps?file=api&v=2&key=ABQIAAAAjQvA7YnCEkrbGr2AIkEKoRQguhBP_nl_dn_xLdLA_lSeiezlRxSXK1rXgNWHP6rokb0OAoq1zmjTIQ"></script>
<div id="container">Proszę czekać, trwa ładowanie programu...</div>
<script type="text/javascript">
var params = new AffiliationDefaults();
params.siteid = 1;
params.language = "polish";
params.returnOkUrl = "http://firma.synerway.pl/ah/ew5//new-reservation.html";
params.returnFailUrl = "http://firma.synerway.pl/ah/ew5//new-reservation-error.html";
var aff = new Affiliation( params );
aff.run('container');
</script>
Affiliation HTML code can be insert in any web site, for example.

Introduction