yacht4web provides a technology called search engine which allows access to two methods that arelist of ads And the viewing boat ad. Both are customizable and available in 9 languages.
To integrate with your site you can choose two technologies, Embedded Http Request method described in this section or the more complex but versatile REST APIs.
This method is the easiest and fastest and allows to integrate the pages of your site with minimal effort.
Is to create an ASP application that contains your header (header), possibly NavBar and footer inside the body with our search engine or our boat tab.
The colors and the parameters are configurable through the user's account.
Example of search engine
The page is built by yacht4web and then the 3 classes mentioned in style <head> must be present in the ASP file.
The result of the call is encoded by default + xmlHttp UTF-8, for this reason it is necessary to specify the codepage appropriate ASP page (see the first line).
The table that contains the search engine is a simple example, and it's replaceable with any tags example <div>.
All arguments/parameters are transmitted to yacht4web/srch: be careful not to use internally parameters used by the search engine.
An important parameter è lang containing two letters corresponding to the language from display.
Important: Always indicate your code AppID within the call.
<%@ CodePage=65001 %>
<!DOCTYPE html>
<html lang="it">
<head>
<title>yacht4web boat on sale</title>
<meta charset="utf-8">
<link href="stile.css" rel="stylesheet" type="text/css">
<link href="http://fonts.googleapis.com/css?family=Muli:300,400" rel="stylesheet" type="text/css" />
<link href="http://fonts.googleapis.com/css?family=Fjalla+One" rel="stylesheet" type="text/css" />
<link href="http://cdn.yacht4web.com/css/1434/y4w-main.css" rel="stylesheet" type="text/css" />
</head>
<body>
<table width="900" border="0" align="center" cellpadding="0" cellspacing="0" height="100%">
<tr>
<td style="background:white">
<%
Set xmlhttp = CreateObject("MSXML2.ServerXMLHTTP.6.0")
Dim lang
lang = Request.QueryString("lang")
If lang="" then
lang="it"
end If
xmlhttp.open "GET", "http://" & lang & ".yacht4web.com/srch?_appid=[appid]&_nohf=1&" & Request.QueryString, false
xmlhttp.setRequestHeader "Content-type", "application/x-www-form-urlencoded; charset=utf-8"
xmlhttp.send
Response.Write(xmlhttp.responseText)
%>
</td></tr>
</table>
</body>
</html>
The advertisement you can take in two formats
The parameter head = 1 indicates that you want the heading of the company.
The parameter lang the desired language
<%@ CodePage=65001 %>
<%
Dim lang
lang = Request.QueryString("lang")
If lang="" then
lang="it"
end If
Set xmlhttp = CreateObject("MSXML2.ServerXMLHTTP.6.0")
xmlhttp.open "GET", "http://" & lang & ".yacht4web.com/boatc?_appid=[appId]&mode=dett&head=1&" & Request.QueryString, false
xmlhttp.setRequestHeader "Content-type", "application/x-www-form-urlencoded"
xmlhttp.send
Response.Write(xmlhttp.responseText)
%>