sonygod / sharpkit

Automatically exported from code.google.com/p/sharpkit
0 stars 0 forks source link

Prototype Issue #5

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
using System;
using SharpKit.Html4;
using SharpKit.JavaScript;
using SharpKit.jQuery;

namespace SharpKitWebApp1
{
    [JsType(JsMode.Prototype, Filename = "PWUtitilies.js")]
    public class Timer : HtmlContext
    {
        public Timer()
        {
        }

        public void Start()
        {
            document.write("Timer Started");
        }
    }

    [JsType(JsMode.Global,Filename="res/test.js")]
    public  class Class1:jQueryContext
    {
        public static void main()
        {
            document.body.innerHTML = "<div>hello Sharpkit Javascript</div>";
            J("body").append("<div>Hello SharpKit Jquery World</div>");
            Timer newTImer = new Timer();
            newTImer.Start();
        }
    }

}

Compiles successfully but doesn't work when running the javascript. Please 
continue this project this is awesome!

Original issue reported on code.google.com by philweb....@gmail.com on 18 Apr 2011 at 2:26

GoogleCodeExporter commented 9 years ago

Original comment by DanelK...@gmail.com on 26 Jun 2011 at 8:12