Example #1
0
        public ActionResult GetExampleJsHtml()
        {
            // include this with a script tag
            // this gets around restrictions on bringing in html from another domain name
            var    html   = Util.HttpGet(Web.BaseUrl + "SomeExampleUrl");
            string script = "var theHtml = " + Fmt.JsEnquote(html) + ";";

            return(JavaScript(script));
        }