コード例 #1
0
 private void AddProviderInfo()
 {
     if (this.Form != null)
     {
         this.Form.Controls.Add(JavascriptResourceManager.CreateScriptControl(HttpContextHelper.PageUrl + "?providerinfo"));
     }
 }
コード例 #2
0
        public void RegisterSiteBodyJavascript(string pathRelativeToApplicationRoot)
        {
            string path = pathRelativeToApplicationRoot;

            if (!pathRelativeToApplicationRoot.StartsWith("/"))
            {
                path = "/" + path;
            }

            JavascriptResourceManager.AddSiteBodyScript(path);
        }
コード例 #3
0
        protected override void OnPreRender(EventArgs e)
        {
            AddMessageBox();

            if (FindJavascriptControls)
            {
                FillJsonControlDictionary(this, jsonControls);
            }

            WireJsonControls();


            JavascriptResourceManager.WritePageScripts();

            base.OnPreRender(e);
        }
コード例 #4
0
        /// <summary>
        /// Create a new instance of a JavascriptPage page
        /// </summary>
        public JavascriptPage() : base()
        {
            //this.EnableViewState = false;
            jsonControls              = new Dictionary <string, JsonControl>();
            jsonControlsByDomId       = new Dictionary <string, JsonControl>();
            FindJavascriptControls    = false;
            JavascriptResourceManager = new JavascriptResourceManager(this);
#if DEBUG
            JavascriptResourceManager.AddCoreScript("naizari.javascript.jsui.debug.js");
            JavascriptResourceManager.AddCoreScript("naizari.javascript.jsui.qunit.js");
#endif
            //JavascriptResourceManager.AddCoreScript("naizari.javascript.jsui.jsondata.js");
            //JavascriptResourceManager.AddCoreScript("naizari.javascript.jsui.aes.js");
            //JavascriptResourceManager.AddCoreScript("naizari.javascript.jsui.jsondatetime.js");
            JavascriptResourceManager.AddCoreScript("naizari.javascript.jsui.jsonserializer.js");
            //JavascriptResourceManager.AddCoreScript("naizari.javascript.jsui.jsonsearcher.js");
            JavascriptResourceManager.AddCoreScript("naizari.javascript.jsui.popper.js");
            JavascriptResourceManager.AddCoreScript("naizari.javascript.jsui.arrowlist.js");
            JavascriptResourceManager.AddCoreScript("naizari.javascript.jsui.cookies.js");
            JavascriptResourceManager.AddCoreScript("naizari.javascript.jsui.databox.js");
            JavascriptResourceManager.AddCoreScript("naizari.javascript.jsui.boxmgr.js");
            //JavascriptResourceManager.AddCoreScript("naizari.javascript.jsui.callbacks.js");
            //JavascriptResourceManager.AddCoreScript("naizari.javascript.jsui.jsoninvoker.js");
            //JavascriptResourceManager.AddCoreScript("naizari.javascript.jsui.jsoninputtoggler.js");
            //JavascriptResourceManager.AddCoreScript("naizari.javascript.jsui.jsoninput.js");
            //JavascriptResourceManager.AddCoreScript("naizari.javascript.jsui.animation.js"); // useless.  concept moved to Effects.animate
            JavascriptResourceManager.AddCoreScript("naizari.javascript.jsui.scrollable.js");
            JavascriptResourceManager.AddCoreScript("naizari.javascript.jsui.effects.js");
            //JavascriptResourceManager.AddCoreScript("naizari.javascript.jsui.jsonfunction.js");
            JavascriptResourceManager.AddCoreScript("naizari.javascript.jsui.msajaxinterop.js");
            JavascriptResourceManager.AddCoreScript("naizari.javascript.jsui.events.js");
            JavascriptResourceManager.AddCoreScript("naizari.javascript.jsui.dommgr.js");
            JavascriptResourceManager.AddCoreScript("naizari.javascript.jsui.jsonproxy.js");
            JavascriptResourceManager.AddCoreScript("naizari.javascript.jsui.sha1.js");
            JavascriptResourceManager.AddCoreScript("naizari.javascript.jsui.conf.js");
            JavascriptResourceManager.AddCoreScript("naizari.javascript.jsui.jsui.js");
            JavascriptResourceManager.AddCoreScript("naizari.javascript.jsui.jquery-ui.js");
            JavascriptResourceManager.AddCoreScript("naizari.javascript.jsui.jquery.js");
        }
コード例 #5
0
 public void RegisterResourceBodyScript(string resourceQualifiedScriptName, Assembly assemblyToLoadFrom)
 {
     Resources.Load(assemblyToLoadFrom);
     JavascriptResourceManager.AddResourceBodyScript(resourceQualifiedScriptName);
 }
コード例 #6
0
 /// <summary>
 /// Intended to register, by name, any dependent javascripts that have been
 /// compiled into the JSUI folder.  Documentation on
 /// what these scripts are will come when time allows.
 /// </summary>
 /// <param name="coreScriptName"></param>
 internal void RegisterCoreJavaScript(string coreScriptName)
 {
     JavascriptResourceManager.AddCoreScript(coreScriptName);
 }