Open.Core.ViewBase.RetrieveHtml C# (CSharp) Method

RetrieveHtml() protected method

Inserts the HTML from the specified URL.
protected RetrieveHtml ( string url, System.Action onComplete ) : void
url string The URL of the HTML content to retrieve.
onComplete System.Action Action to invoke upon completion.
return void
        protected void RetrieveHtml(string url, Action onComplete)
        {
            jQuery.Get(Helper.Url.PrependDomain(url), delegate(object data)
                                                          {
                                                              Container.Html(data.ToString());
                                                              Helper.Invoke(onComplete);
                                                          });
        }