public String_js Get(String_js Path) { var XmlHttp = js.Declare.AsXMLHttpRequest; return(Recive(XmlHttp, () => { XmlHttp.Open_Get(Path, true); XmlHttp.Send(); })); }
public String_js Post(String_js Path, Ref_js Data) { var XmlHttp = js.Declare.AsXMLHttpRequest; return(Recive(XmlHttp, () => { XmlHttp.Open_Post(Path, true); XmlHttp.Send(Data); })); }
public String_js[] this[string[] Values] { get { var Result = new String_js[Values.Length]; for (int i = 0; i < Values.Length; i++) { Result[i] = AsString; } return(Result); } }
public static void Alert(String_js Value) { js.SendJS("alert(" + Value.HowGet + ");"); }
public void Open_Post(String_js path, bool Async) { js.SendJS( HowGet + ".open('Post', " + path.HowGet + "," + new Bool_js(Async).HowGet + ");"); //".setRequestHeader('Content-type', 'application/x-www-form-urlencoded');" }
public void Open_Get(String_js path, bool Async) { js.SendJS(HowGet + ".open('Get', " + path.HowGet + "," + new Bool_js(Async).HowGet + ");"); }
public String_js Post <t>(String_js Path, t Data) { return(Post(Path, (Ref_js) new String_js(Convert.ToBase64String((Data.Serialization()))))); }