Return - Your Pages Setup
In this sample, you only need the programming in blue.
For a quick-start, you can copy and paste this code to a file in your website named "SampleIframeLeagueSelect.asp", then view this page in your browser: http://(YourSite)/SampleServerFetchLeagueSelect.asp
Working sample:
http://www.divebarsussex.com/SampleServerFetchLeagueSelect.asp
(displaying the sample code below)
If you would rather skip the sample page, just copy and paste the blue lines into your .asp page.
Note in the example above the required line that contains "INCLUDE FILE A nice feature in ASP is the ability to "merge" (or "include") another file.
You will need some scripting to fetch from the EasyLeagues.biz site the HTML to include in the output of your web page. Since this scripting will be the same for all content fetched by your site server, it will be easiest to put this code in a single file, then INCLUDE this scripting in all of your files that fetch EasyLeagues.biz content.
For a quick-start, you can copy and paste this code to a file in your website named "SampleServerFetchFuncs.inc" (if you choose a different filename, be sure to change the filename in the above INCLUDE FILE line to match).
Your server will fetch content from the EasyLeagues.biz site using a script to call a simple URL (address) based on "http://www.easyleagues.biz/Content/SelectLeague.asp". To retrieve the specific information for your site from the EasyLeagues.biz database, you will also need the information after the "?" (question mark) which are known as "Query String Parameters".
The EasyLeagues.biz site needs to know what "EstablishmentNumber" to lookup in the database, so you will need "rES=3" (change number 3 to your EstablishmentNumber). You may be using EasyLeagues.biz for multiple sports at your site, so set the "SportNumber" with "rSP=1" (for SportNumber 1, which will be your first sport setup in EasyLeagues.biz). Set the "DisplayMode" with "rDM=0", this will generate page-body only output.
Remember to seperate each parameter with an "&" (ampersand).
You will note in the example that the method of setting the "EstablishmentNumber" and "SportNumber" values to a variable was used. Then the variable URLStr was constructed using these variables. If you wanted to skip the variable setup at the top of the page, you could hard-code the URLStr attribute of the GetEasyLeaguePage(URLStr) function call to the required URL.
Because the EasyLeagues.biz information is now injected directly into your web page code sent to the visitor, you can treat the HTML as an integral part of your page.
Standards Note: The code fetched from EasyLeagues.biz is XHTML 1.0 TRANSITIONAL compliant. If you require a different standard, let us know and we may be able to accomodate you.
The styles and links in the sample pages will not work properly until you have copied the sample CSS files to your site and configured "Settings" in EasyLeagues.biz, but the content will display without problem.