<%@LANGUAGE="JSCRIPT" codepage=65001 %> Fiji - Fiji Islands Travel Information by Fiji.co.uk
<% Response.Buffer = true; // *************************************************************** // * Overture JScript ASP example. Requires MSXML v.4 * // * This script transforms XML -> HTML using XSLT * // * Accepts HTML form input (GET or POST) for search keywords * // *************************************************************** var xmlDoc, xslDoc, xmlQuery, xmlFeed, xslFeed, regEx1, regEx2, regEx3, xmlArgs; // ********************************************************** // * Specify URL / relative path to XML and XSL documents * // ********************************************************** xmlDoc = "http://xml.uk.overture.com/d/search/p/standard/eu/xml/inktomi/?mkt=uk&adultFilter=clean&Partner=naturalsearch_xml_uk_searchbox_yourloan"; xslDoc = "ver.xsl"; // **************************************************** // * Load "Keywords" query from form (POST or GET) * // * Replace blank spaces between keywords with '+' * // **************************************************** regEx1 = "/ /g"; regEx2 = "/%20/g"; if (!Request.Form().Count == 0) { xmlQuery = "" + Request.Form("Keywords"); xmlQuery = xmlQuery.replace(regEx1, "+"); xmlQuery = xmlQuery.replace(regEx2, "+"); } else if (Request.Querystring() != "") { xmlQuery = "" + Request.Querystring("Keywords"); xmlQuery = xmlQuery.replace(regEx1, "+"); xmlQuery = xmlQuery.replace(regEx2, "+"); } else { xmlQuery ="fiji" } delete regEx1; regEx1 = null; delete regEx2; regEx2 = null; // **************************************************** // * append NextArgs when present * // * Used in Next Queries from the HTML * // ***************************************************** regEx3 = new RegExp("&xargs=") ; if ( regEx3.test(Request.Querystring() ) ) { xmlArgs = Request.Querystring("xargs") ; xmlQuery += "&xargs=" + xmlArgs ; } else { //Response.Write("No Records") } delete regEx3; regEx3 = null; // *************************************** // * Create XMLDOM object for XML feed * // * Load XML data into this object * // *************************************** xmlFeed = Server.CreateObject("Microsoft.XMLDOM"); xmlFeed.async = false; xmlFeed.setProperty("ServerHTTPRequest", true); xmlFeed.validateOnParse = false; // xmlFeed.load(xmlDoc +"?Partner=affiliate_test&Keywords=" + xmlQuery); xmlFeed.load(xmlDoc + "&maxCount=3&outputCharEnc=utf8&keywordCharEnc=utf8&Keywords=" + xmlQuery); if (xmlFeed.parseError.errorCode != 0) { Response.write("Connection to XML feed could not be established
" + "Reason: " + xmlFeed.parseError.reason + "
" + "Error Code: " + xmlFeed.parseError.errorCode + "

"); } // *************************************** // * Create XMLDOM object for XSL feed * // * Load XSL data into this object * // *************************************** xslFeed = Server.CreateObject("Microsoft.XMLDOM"); xslFeed.async = false; xslFeed.load(Server.MapPath(xslDoc)); if (xslFeed.parseError.errorCode != 0) { Response.write("Problem with XSL file
" + "Reason: " + xslFeed.parseError.reason + "
" + "Error Code: " + xslFeed.parseError.errorCode + "

"); } // ***************************************************** // * Transform XML with XSL -- return resulting HTML * // * 2 options for doing write to Response * // ***************************************************** //Response.Write(xmlFeed.transformNode(xslFeed)); xmlFeed.transformNodeToObject( xslFeed, Response) ; toscript=xmlFeed.transformNode(xslFeed) delete xmlFeed; xmlFeed = null; delete xslFeed; xslFeed = null; //Response.Write("No results were returned for the term:" + xmlQuery) %>

Links

 

Your Directory

 

     

MORE HOLIDAY SITES: Alicante | Anguilla | Balearic Islands | Barbuda | Benidorm | Bonaire | British Virgin Islands |
Brussels
| Carribean | Curacao | Eilat | Fiji | Florida Keys | Grenada | Grenadines | Guadeloupe | Haiti | Los Angeles |
Martinique
| Monserrat | NY City | Puertorico | San Francisco | St Kitts | St Martin | St Vincent | The Bahamas |
The Canary Islands
| The Channel Islands | The Grenadines | The Maldives | The Philippines | The Rockies |
The Virgin Islands
| US Virgin Islands| West Indies

Fast Secured Loan Cardiff | Home Owner Loan Ireland | Personal Secured Loan | Homeowner Loans England | Secured Loan UK | Your Directory | Links