<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>VroomVroomVroom Car Rental Affiliate &#187; Technology</title>
	<atom:link href="http://business.vroomvroomvroom.com/category/technology/feed/" rel="self" type="application/rss+xml" />
	<link>http://business.vroomvroomvroom.com</link>
	<description>Car Rental for Airlines, Agents and Affiliates</description>
	<lastBuildDate>Sun, 21 Aug 2011 07:22:19 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Search Form Technology</title>
		<link>http://business.vroomvroomvroom.com/technology/search-form-technology/</link>
		<comments>http://business.vroomvroomvroom.com/technology/search-form-technology/#comments</comments>
		<pubDate>Tue, 28 Sep 2010 06:28:48 +0000</pubDate>
		<dc:creator>richard</dc:creator>
				<category><![CDATA[Documentation]]></category>
		<category><![CDATA[Technology]]></category>

		<guid isPermaLink="false">http://business.vroomvroomvroom.com/?p=65</guid>
		<description><![CDATA[If you&#8217;re a hardcore affiliate of VroomVroomVroom or an employee, use this guide to setup and customise your form. Contents of this Guide Installation Client Side Javascript Server Generated Javascript Styles Changing Form Defaults Form Options I want to speed things up Installation You need to copy and paste the code found in &#8220;My Account&#8221;&#8230;]]></description>
			<content:encoded><![CDATA[<p>If you&#8217;re a hardcore affiliate of VroomVroomVroom or an employee, use this guide to setup and customise your form.</p>
<h2>Contents of this Guide</h2>
<p>Installation</p>
<p>Client Side Javascript</p>
<p>Server Generated Javascript</p>
<p>Styles</p>
<p>Changing Form Defaults</p>
<p>Form Options</p>
<p>I want to speed things up</p>
<h2>
Installation</h2>
<p><!-- COPY FROM HERE --></p>
<p>You need to copy and paste the code found in &#8220;<a href="http://account.vroomvroomvroom.com/affiliates/panel.php">My Account</a>&#8221; into your website or blog. The coud found there will include your affiliate tracking ID&#8217;s</p>
<h2>Client Side Javascript</h2>
<p>There are 3 javascript files that do cool stuff.<strong> </strong></p>
<p><strong> </strong></p>
<p><strong>1. vroom.js</strong></p>
<p>This is the engine room. This is where it all happens Validation, URL Generation, Server Side Calls, AutoComplete Feature, Form Initialisation</p>
<p><strong>2. writeform.js</strong></p>
<p>This generates and uses document.writes for the HTML that displays the form. If you don’t like javascript, you might like to write the HTML out manually, in RAW html form. See “Speeding things up” for information on this</p>
<p><strong>3. jquery.js</strong></p>
<p>This is a meger of several jQuery libraries. It is used for Calendar, Autocomplete and DOM manipulation</p>
<p>There are no &#8220;minified&#8221; versions of these files at this stage, although jquery.js is already a minified version.  We will inform you further if we release minified versions of the above files.</p>
<h2>Server Generated Javascript</h2>
<p>If you are lucky, you won&#8217;t need to get involved with this. The vroom search form makes calls to the vroom server for dynamic javascript. This allows AJAX-like functionality using old-school technology. This means the form can be hosted anywhere and there is no need for messing around with server side php or aspx files to get cross-domain AJAX to work.</p>
<p>The calls made using a function &#8220;includejs&#8221; and calls the following example files:</p>
<p>http://www.vroomvroomvroom.com/locationJS.aspx?country=US<span style="color: #3d85c6;"> </span><span style="color: #339966;">//to retrieve locations for different countries</span></p>
<p>http://www.vroomvroomvroom.com/depotJS.aspx <span style="color: #339966;">//to retrieve depots for different locations</span><br />
<strong><span style="font-size: medium;"> </span></strong></p>
<h2>Styles</h2>
<p>Set the theme variable to change the design of your search form.</p>
<p>eg.<br />
<strong><span style="color: #99cc00;">var THEME = &#8220;greenfresh&#8221;;<br />
</span></strong></p>
<p>Other options are:</p>
<p>bluefresh</p>
<p>greenfresh</p>
<p>orangefresh</p>
<p>greyfresh</p>
<p>whitefresh</p>
<p>blankfresh</p>
<p>If you are a CSS guru make any cool changes, share them with us!</p>
<h2>Changing Form Default Options</h2>
<p>You can help the user by changing the default values of details you probably know about them. Like Country, City and maybe even dates.</p>
<p>This is done using javascript variables in the source code at installation time or using query string. The query string variable names are the same as the javascript variable names. The javascript variables override the url variables. ALL ARE OPTIONAL but they may make things easier for your customer. They are:</p>
<p>var HTTPSERVER = &#8220;http://www.vroomvroomvroom.com.au/&#8221;; //path of vroom server. Change to http://www.vroomvroomvroom.com or http://vroomvroomvroom.com.au, depending on which is faster for your website. The .com is hosted in Dallas Texas. The .com.au is hosted in Brisbane, Australia.</p>
<p>var COUNTRYID = &#8220;AU&#8221;; <span style="color: #339966;">//AU, UK, US, NZ, CA</span></p>
<p>var PICKUPFROM = &#8220;&#8221;;<strong> </strong><span style="color: #339966;">//a city name like Brisbane, New York, San Francisco, London</span></p>
<p>var RETURNTO = &#8220;&#8221;; <span style="color: #339966;">//a city name like Brisbane, New York, San Francisco, London</span></p>
<p>var AFFILIATEID = &#8220;&#8221;; <span style="color: #339966;">//the affiliate id you were given when you signed up.</span></p>
<p>var PICKUP_PROMPT = &#8220;Type in pickup city or airport code here&#8221;;<span style="color: #99cc00;"> <span style="color: #339966;">//message to ask users to type a city.</span></span></p>
<p>var RETURN_PROMPT = &#8220;Type in return city or airport code here&#8221;;</p>
<p>var SUGGESTION_MODE = &#8220;AUTOCOMPLETE&#8221;; <span style="color: #339966;">//OFF or LIST or AUTOCOMPLETE.(when PICKUPFROM is set)</span></p>
<p>var ADVANCED_MODE = &#8220;OFF&#8221;; <span style="color: #339966;">//OFF or MAPLINK or MAP</span></p>
<p>var DEPOT_SELECTION = &#8220;COLLAPSED&#8221;; <span style="color: #339966;">//OFF or COLLAPSED or EXPANDED</span></p>
<p>var THEME = &#8220;bluefresh&#8221;; <span style="color: #339966;">//bluefresh or greenfresh or other themes</span></p>
<p>An example querystring is:</p>
<p>http://www.vroomvroomvroom.com/searchfresh/searchform.html?countryid=us&#038;pickupfrom=boston&#038;returnto=boston&#038;pickupdate=11/07/2010&#038;returndate=11/03/2010&#038;a=vroom&#038;oldschool=false&#038;theme=bluefresh</p>
<p><strong>Note: to keep the consistency of URL variables, we keep every variable and its value in the URL in lower case.</strong></p>
<p><span style="font-size: medium;"><strong> </strong></span></p>
<h2>Form Options</h2>
<p><strong> </strong></p>
<p><strong> </strong></p>
<p><strong> </strong></p>
<p><strong>SUGGESTION_MODE</strong></p>
<p>When a pickupFrom variable is set, then the search form will try to suggest some locations based on that variable. Set it to<em> </em></p>
<p><em> </em></p>
<p><em>AUTOCOMPLETE</em> if you want it to act as if the use typed it in onclick. Use<em> </em></p>
<p><em> </em></p>
<p><em>LIST</em> if you want it to suggest locations underneath the box on load. Use<em> </em></p>
<p><em> </em></p>
<p><em>OFF</em> to&#8230;. you know. Disable this feature</p>
<p><span style="color: #3d85c6;">var SUGGESTION_MODE = &#8220;AUTOCOMPLETE&#8221;; //OFF or LIST or AUTOCOMPLETE (when PICKUPFROM is set)</span></p>
<p><span style="line-height: 28px; font-size: 26px;">I want to speed things up</span></p>
<p><strong> </strong></p>
<p>1. Add &#8220;-min&#8221; to javascipt files for the smaller versions. eg. searchfresh-min.js</p>
<p>2. Change the httpServer to a server close to your users. (http://vroomvroomvroom.com.au or http://vroomvroomvroom.com) See &#8220;Changing Form Defaults&#8221;</p>
<p>3. Change the path of the js includes and css include to either vroomvroomvroom.com.au or vroomvroomvroom.com. Or better yet, host these files on your own server.</p>
]]></content:encoded>
			<wfw:commentRss>http://business.vroomvroomvroom.com/technology/search-form-technology/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

