Oskar Gewalli's blog articles

0
comment
on 1/2/2010 3:23 PM
I’m using an iphone, but the calculator is somewhat limited. I want something a bit more like the calculator that I used in school. Perhaps one approach is to use a simple page: <script type=”text/javascript”> var m = Math; var doeval = function(){ var cmd = document.getElementById(“commands”).value; document.getElementById(“history”).value+=”“+cmd+” : “+ eval(cmd) +”\n”; }; </script> <h2>Eval</h2> <p><label for=”history”>History:</label></p> <p><textarea id=”history”></textarea></p> <p><textarea value=”” [...]
>> Read the full article
.
0
comment
on 1/2/2010 3:23 PM
I’m using an iphone, but the calculator is somewhat limited. I want something a bit more like the calculator that I used in school. Perhaps one approach is to use a simple page: <script type=”text/javascript”> var m = Math; var doeval = function(){ var cmd = document.getElementById(“commands”).value; document.getElementById(“history”).value+=”“+cmd+” : “+ eval(cmd) +”\n”; }; </script> <h2>Eval</h2> <p><label for=”history”>History:</label></p> <p><textarea id=”history”></textarea></p> <p><textarea value=”” [...]
>> Read the full article
.
0
comment
on 12/8/2009 11:22 AM
Had some problems starting the debugger with IE8 installed. The solution is presented in a forum:Disable addons by choosing browse with:“C:\Program Files\Internet Explorer\iexplore.exe” -extoff
>> Read the full article
.
0
comment
on 9/3/2009 11:46 PM
Why Assert.Fail? Some might find it negative. Perhaps it is. The way I use it is more like a clean slate:public void FooTest(){ Assert.Fail();}It’s the starting point of many tests. Same as methods:public void Foo(){ throw new NotImplementedException();}It’s a clean canvas for your implementation.
>> Read the full article
.
0
comment
on 7/18/2009 12:55 PM
How do you debug javascript in IE? Before IE 8 you could use fiddler and the visual studio debugger.There was a plugin for IE so that you could get a developer toolbar with some extended script debugging. As of IE8 a toolbar is built in and can be reached by pressing F12.
>> Read the full article
.
IntelliFactory Offices Copyright (c) 2011-2012 IntelliFactory. All rights reserved.
Home | Products | Consulting | Trainings | Blogs | Jobs | Contact Us | Terms of Use | Privacy Policy | Cookie Policy
Built with WebSharper