Click here to Skip to main content
15,896,445 members
Articles / Web Development / HTML

Discover ISAPI. Feed Provider for Graphical Applets

Rate me:
Please Sign up or sign in to vote.
4.00/5 (9 votes)
16 May 20023 min read 74.1K   2.3K   45  
Sample of using ISAPI extension to give online data to graphical applets.
  • isapidemofeed.zip
  • aspdemofeed.zip
    • AspDemoFeed
      • cgi-bin
        • IsapiDemoFeed.dll
      • Default.asp
      • HTML_End.asp
      • HTML_Head.asp
      • Images
        • Cat.gif
        • Competition.GIF
        • History.GIF
        • IntradayIndex.GIF
        • IntradayTicker.GIF
        • JStable.GIF
        • MarketMap.gif
        • Scroller.GIF
        • spacer.gif
        • Table.GIF
      • Includes
      • style.css
      • Tools
        • GraphHistory
          • Classes
            • Images
              • _vti_cnf
                • bckg1.jpg
                • bckg2.jpg
                • Bkg.gif
              • bckg1.jpg
              • bckg2.jpg
              • Bkg.gif
            • index.html
            • QuoteView.class
            • SimpleChart$Row.class
            • SimpleChart.class
            • Ticker$Quote.class
            • Ticker.class
            • TickerHistoryApplet$1.class
            • TickerHistoryApplet$2.class
            • TickerHistoryApplet.class
            • vssver.scc
          • GraphHistory.asp
          • Images
            • bckg1.jpg
            • bckg2.jpg
            • Bkg.gif
        • GraphHistoryCompetition
          • Classes
            • Bkg.gif
            • CompetitionChartApplet.class
            • index.html
            • SimpleChart$Row.class
            • SimpleChart.class
            • Ticker$Quote.class
            • Ticker.class
          • GraphHistoryCompetition.asp
          • Images
            • _down.gif
            • _up.gif
            • Bkg.gif
        • MarketMap
          • _vti_cnf
          • CLASSES
            • _vti_cnf
              • intTable.class
              • MarketMap.class
              • MarketMapApplet$1.class
              • MarketMapApplet$2.class
              • MarketMapApplet.class
              • Sector.class
              • SectorName_ID.class
              • Ticker.class
              • TickerView.class
            • intTable.class
            • MarketMap.class
            • MarketMapApplet$1.class
            • MarketMapApplet$2.class
            • MarketMapApplet.class
            • Sector.class
            • SectorName_ID.class
            • Ticker.class
            • TickerView.class
          • Images
            • 0.GIF
            • 1.GIF
            • -1.GIF
            • 10.GIF
            • -10.GIF
            • 2.GIF
            • -2.GIF
            • 3.GIF
            • -3.GIF
            • 4.GIF
            • -4.GIF
            • 5.GIF
            • -5.GIF
            • 6.GIF
            • -6.GIF
            • 7.GIF
            • -7.GIF
            • 8.GIF
            • -8.GIF
            • 9.GIF
            • -9.GIF
            • Logo_Market_Map.gif
            • transparent.gif
          • MarketMap.asp
        • OnlineCharts
          • Classes
            • IntradayChart
              • DataProvider.class
              • Debug.class
              • IntradayChart$1.class
              • IntradayChart$2.class
              • IntradayChart.class
              • SimpleChart$Row.class
              • SimpleChart.class
              • StripChart.class
              • Ticker.class
              • TickerListener.class
            • IntradayVolume
              • DataProvider.class
              • Debug.class
              • IntradayVolume$1.class
              • IntradayVolume$2.class
              • IntradayVolume$3.class
              • IntradayVolume.class
              • SimpleChart$Row.class
              • SimpleChart.class
              • StripChart.class
              • Ticker.class
              • TickerListener.class
          • Images
            • bgTitle.gif
            • bgTitle2.gif
            • bgTitle3.gif
          • OnlineChartIndex.asp
          • OnlineChartTicker.asp
        • OnlineJStable
          • Classes
            • AutomatFeed.class
            • Debug.class
          • Images
            • _down.gif
            • _up.gif
            • down.gif
            • up.gif
          • OnlineJStable.asp
        • OnlineScroll
          • Classes
            • JavaScroller.coada
              • _vti_cnf
                • datafeed.TXT
                • index.html
                • Loader$Quote.class
                • Loader.class
                • rp.class
                • Scroller.class
              • datafeed.TXT
              • index.html
              • Loader$Quote.class
              • Loader.class
              • rp.class
              • Scroller.class
              • vssver.scc
            • JavaScroller
              • Scroller.jar
          • Images
            • head_scroller.gif
            • ticker_faster.gif
            • ticker_slower.gif
          • OnlineScrollBar.asp
        • OnlineTables
  • db.zip
<script LANGUAGE="javascript">
<!--
function numval(val,digits,minval,maxval)
{
	if (val == "" || isNaN(val)) val = 0;
	val = parseFloat(val);
	if (!digits) digits = 0;
	var dec = Math.pow(10,digits);
	val = (Math.round(val * dec))/dec;
	if (minval != null && val < minval) val = minval;
	if (maxval != null && val > maxval) val = maxval;
	return parseFloat(val);
}

function zeroBlanks(formname)
{
	var i, ctrl;
	for (i = 0; i < formname.elements.length; i++)
	{
		ctrl = formname.elements[i];
		if (ctrl.type == "text")
		{
			if (ctrl.value == "" || isNaN(ctrl.value))
				ctrl.value = "0";
		}
	}
}

function futureValue(pv,r,y)
{
	return pv*Math.pow(1+r,y);
}
function presentValue(fv,r,y)
{
	return fv/Math.pow(1+r,y);
}

function geomSeries(z,m,n)
{
	var amt;
	if (z == 1.0) amt = n + 1;
	else amt = (Math.pow(z,n + 1) - 1)/(z - 1);
	if (m >= 1) amt -= geomSeries(z,0,m-1);
	return amt;
}
function fYTM(z,p,c,b,y)
{
	return (c + b)*Math.pow(z,y+1) - b*Math.pow(z,y) - (c+p)*z + p;
}

function dfYTM(z,p,c,b,y)
{
	return (y+1)*(c + b)*Math.pow(z,y) - y*b*Math.pow(z,y - 1) - (c+p);
}

function bondYTM(p,r,b,y)
{
	var z = r;
	var c = r*b;
	var i;
	var E = .00001;
		
	for (i = 0; i < 100; i++)
	{
		if (Math.abs(fYTM(z,p,c,b,y)) < E) break;
		
		while (Math.abs(dfYTM(z,p,c,b,y)) < E) z+= .1;
		z = z - (fYTM(z,p,c,b,y)/dfYTM(z,p,c,b,y));
	}
	if (Math.abs(fYTM(z,p,c,b,y)) >= E) return -1;  // error
	return (1/z) - 1;
}	
function initForm(which)
{
	which = (which) ? which : 0;
	if (window.focus != null) window.focus();
	document.mainform.elements[which].focus();
}
-->
</script>

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.


Written By
Web Developer
Romania Romania
I make programming for over 4 years and extensive experience in C++, ASP, Pascal, MFC, COM+, ATL, TCP/IP, HTTP protocols, XML, XSL, SOAP and SQL.
For the last 2 years i working extensively at the background of financial sites (databases, n tier architecture).

I’m available for contracts and/or outsourcing (<Adrian Bacaianu>adrian_bacaianu@yahoo.com).

Comments and Discussions