cs193p.stanford.edu - all video lectures, slides, and assignments for learning iOS via iTunesU
Member 3797241
Posts
-
Writing "apps" for Apple devices -
How to Get the 'fvalue' from an html option buttonI have a C# IE add-on and need to obtain the 'value' (shown in bold, ie., 1, 96, 192) from a html dropdown list in the web page being displayed by the browser. The abbreviated html page code is as follows: 1/16"=1'0" 1/8" = 1'-0" Full Size/N.T.S. In my browser add-on I have the following C# code: public string ScaleFactor { get { HTMLInputElement elmListScale = (HTMLInputElement)_Document.all.item("listScale", null); if (elmListScale != null) { return elmListScale.value.ToString(); } else { return null; } } } then I have... string scaleFactor = this.ScaleFactor; When I run the VS2005 debugger on the above code, the debugger prompt disappears when it hits the line HTMLInputEelment elmListScale = .... Any ideas on how to read the value from a dropdown list??? Warren