Wednesday, October 4th, 2006

Fresh Logic Studios Scripts: OO JS

Category: .NET, JavaScript, Library

<>p>Fresh Logic Studios has created an object oriented JavaScript framework with a programming model similar to the Microsoft .NET Framework.

Inside you’ll find JavaScript implementations for a small subset of the classes provided by the .NET Framework base class libraries.

The library consists of classes for:

  • Console
  • Point
  • Size
  • Guid
  • String
  • Uri
  1. <script type="text/javascript">
  2.    FreshLogicStudios.Scripts.Console.SetIn(document.getElementById('ConsoleIn'));
  3.    FreshLogicStudios.Scripts.Console.SetOut(document.getElementById('ConsoleOut'));
  4.    FreshLogicStudios.Scripts.Console.WriteLine('<span style="color:blue;">Console initialized...</span>');
  5. </script>
  7. <h2>Console In</h2>
  9. <div>
  10.    <input id="ConsoleIn" type="text" /> <a href="#" class="Button" onclick="FreshLogicStudios.Scripts.Console.ReadLine(); return false;">Evaluate</a>
  11. </div>
  13. <h2>Console Out</h2>
  15. <div class="Code">
  16.    <code id="ConsoleOut"></code>
  17. </div>

Related Content:

Posted by Dion Almaer at 8:28 am

3.1 rating from 20 votes


Comments feed TrackBack URI

Horrible namespacing.

Comment by MichalT — October 4, 2006

Man this library is great, thanks alot FreshLogic.

Comment by Truman — October 4, 2006

The namespacing is fine…. just look at Yahoo’s namespacing. they even use all caps in part of theirs. I dig this.

Comment by Mario — October 4, 2006

Leave a comment

You must be logged in to post a comment.