Activate your free membership today | Log-in

Wednesday, October 4th, 2006

Fresh Logic Studios Scripts: OO JS

Category: .NET, JavaScript, Library

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
HTML:
  1.  
  2. <script type="text/javascript">
  3.    FreshLogicStudios.Scripts.Console.SetIn(document.getElementById('ConsoleIn'));
  4.    FreshLogicStudios.Scripts.Console.SetOut(document.getElementById('ConsoleOut'));
  5.    FreshLogicStudios.Scripts.Console.WriteLine('<span style="color:blue;">Console initialized...</span>');
  6. </script>
  7.  
  8. <h2>Console In</h2>
  9.  
  10.    <input id="ConsoleIn" type="text" /> <a href="#" class="Button" onclick="FreshLogicStudios.Scripts.Console.ReadLine(); return false;">Evaluate</a>
  11. </div>
  12.  
  13. <h2>Console Out</h2>
  14.  
  15. <div class="Code">
  16.    <code id="ConsoleOut"></code>
  17. </div>
  18.  

Posted by Dion Almaer at 8:28 am
4 Comments

+++--
3.1 rating from 15 votes

4 Comments »

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

The MCs of the momentgucci handbags so dominated the programgucci ontinental that it could have been mistaken for a concert. It was telling TV.And as a rap consumer, I’m willing to fight towholesale gucci handbags get music airplay back in balance. It could be mere coincidence that and Cosby will clash on store shelves.But if it is a message from the MC cosmos, I want to send the right message back.I choose Cosby’s form of expression over Gucci’s gucci canvas walletsself-destructive one any day. Here’sflower girl dresses hoping my fellow hip-hop heads buy aion goldwill do the same.

Comment by wuwei — December 16, 2009

Leave a comment

You must be logged in to post a comment.