예제 #1
0
        /// <summary>
        /// This is a javascript application.
        /// </summary>
        /// <param name="page">HTML document rendered by the web server which can now be enhanced.</param>
        public Application(IApp page)
        {
            { var ref0 = new Design.password(); }
            { var ref0 = new Design.fontawesome_webfont(); }

            content.AttachControlToDocument();
          
        }
예제 #2
0
        /// <summary>
        /// This is a javascript application.
        /// </summary>
        /// <param name="page">HTML document rendered by the web server which can now be enhanced.</param>
        public Application(IApp page)
        {
            // X:\jsc.svn\examples\javascript\css\ttf\TTFSymbolFontExperiment\TTFSymbolFontExperiment\Application.cs

            // why wont jsc package the system font on its own?
            // or why wont it look at the assets we have?
            var explicitttf = new Design.fontawesome_webfont();

            content.AttachControlToDocument();
            @"Hello world".ToDocumentTitle();
            // Send data from JavaScript to the server tier
            this.WebMethod2(
                @"A string from JavaScript.",
                value => value.ToDocumentTitle()
            );
        }