Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Fixing issue with volume when the value is greater than or equal to 1…

…000.
  • Loading branch information...
commit 4f2d32d5f3cdbee218f0006f503556bc28dcc938 1 parent ba52968
authored March 30, 2011

Showing 1 changed file with 5 additions and 1 deletion. Show diff stats Hide diff stats

  1. 6  yahoo/finance/yahoo.finance.options.xml
6  yahoo/finance/yahoo.finance.options.xml
@@ -83,6 +83,7 @@
83 83
 				var bid;
84 84
 				var ask;
85 85
 				var vol;
  86
+				var volStr;
86 87
 				var openInt;
87 88
 					
88 89
 				var optTypeMatch;
@@ -107,7 +108,10 @@
107 108
 					changeDir = tr.td[3].span.img.@alt.toString();
108 109
 					bid = parseFloat( tr.td[4].span.text() );
109 110
 					ask = parseFloat( tr.td[5].span.text() );
110  
-					vol = parseInt( tr.td[6].span.text() );
  111
+					volStr = tr.td[6].span.text();
  112
+					volStr = volStr.replace( ",", "" );
  113
+					//vol = parseInt( tr.td[6].span.text() );
  114
+					vol = parseInt( volStr );
111 115
 					openInt = parseInt( tr.td[7].p.text() );
112 116
 							
113 117
 					if ( changeDir.toLowerCase() == "down" )

0 notes on commit 4f2d32d

Please sign in to comment.
Something went wrong with that request. Please try again.