Via JavaScript

One of the best features of FutureSource iFS is the ability to integrate components anywhere in your site using standard JavaScript includes.  Certain components can be included using the iFS GET method which is describe below, while most components can be included by using the "JavaScript URL" specified in the details of each iFS component.

 

Components:

 

JavaScript Examples:

 

<html>

<head>

<title>Market Center</title>

</head>

 

<body>

<script language="JavaScript" src="https://ifs.dataservices.theice.com/js/quotes/marketview.jsp?cID=[ID]&iFSmktcharts=True&iFSclickthru=/quotes/quotes.htm&iFSimgclickthru=/charts/charts.htm"></script>

</body>

</html>

 

The above example will integrate a Market View Component into your site specifying that quote clicks should go to /quotes/quotes.htm and chart clicks to /charts/charts.htm.  It is then necessary on quotes.htm and charts.htm to use the iFS GET Method, otherwise you will need to read the query string in yourself programmatically and pass the parameters on to the appropriate component.

 

<html>

<head>

<title>Market Center</title>

</head>

 

<body>

<table>

<tr>

<td>

<script language="JavaScript" src="https://ifs.dataservices.theice.com/js/quotes/marketview.jsp?cID=[ID]&iFSmktcharts=True"></script>

</td>

<td>

<script language="JavaScript" src="https://ifs.dataservices.theice.com/get.jsp?cID=[ID]&action=QUOTE&iFSQsymbols=C"></script>

</td>

</tr>

</table>

</body>

</html>

 

The above example will integrate a Market View Component into your site on the left hand side, with a Quote Board included via the iFS GET Method on the right.  All click-thrus from the Market View Component will then reload the current page forcing the iFS GET Method to display the appropriate request.

 

iFS GET Method

It is recommended that you use the iFS GET method when integrating a Quote Board, Chart, or News Headlines component.  These components allow the user to go from one component to another and the iFS GET method handles this transformation for you.

 

The iFS GET method will allow a Quote Board component to become a Chart component, a News Headlines component to become a News Story Component, and the Symbol List component to become either a Quote Board or Chart component.

 

The iFS GET method works by bringing up the component you specified in the action variable unless it was overridden in the query string when a user clicked to request a different component.  All components requested by the iFS GET method can be overriden by the action variable except for Market View, Quick Search, and Quotes and Charts.

 

The iFS GET method allows you to pass parameters, that can be overriden by the user,  to each of the iFS components.  For instance, say you used the iFS GET method to incorporate a Quote Board component that displayed the symbol C and all of its current contracts.  A quote board would be displayed giving the user a couple of options.  They could either choose to see a chart based on one of the displayed contracts or choose to get options for a specific contract.  When the user clicks on any link, it will refresh the current page and reload the iFS GET method.  Depending on what has been specified in the query string will now determine what is shown next.

 

Please note that the iFS GET method does not function properly in Netscape 4.

 

iFS GET Method Example:

<html>

<head>

<title>Market Center</title>

</head>

 

<body>

<script language="JavaScript" src="https://ifs.dataservices.theice.com/get.jsp?cID=[ID]&action=QUOTE&iFSQsymbols=C"></script>

</body>

</html>

 

The above JavaScript include will display an iFS Quote Board in your webpage. When a user clicks on a corresponding chart link in that board, the current page will be reloaded and the querystring will look like the following: ?cID=[ID]&action=CHART&iFSsymbols=C1!.  When the iFS GET Method sees this query string it will automatically display the Chart requested instead of the Quote Board that you originally asked for.  Since some sites are dynamic themselves and require query string parameters, the refreshing of pages will refresh with the original query string used.  The only values overridden would be the ones that the iFS component is trying to set.