public String_js Get(String_js Path, Ref_js Data) { var XmlHttp = js.Declare.AsXMLHttpRequest; return(Recive(XmlHttp, () => { XmlHttp.Open_Get(Path, true); XmlHttp.Send(Data); })); }
internal Ref_js Result(params Ref_js[] Parameters) { if (LastPoint != null) { var Result = LastPoint.WaitForHandle(InputCount: 1, HowHandle: () => Run_Exact(Parameters)); return(Result[0]); } else { Ref_js Result = null; Result = new Ref_js(); Result.DeclareNewName(); js.SendJS(Result.HowGet + "="); Run_Exact(Parameters); return(Result); } }
public static Ref_js[] MakeJsObjects(params Type[] Types) { var Results = new Ref_js[0]; var CP = new Type[0]; for (int i = 0; i < Results.Length - 1; i++) { Results[i] = (Ref_js)Types[i].GetConstructor(CP).Invoke(null); Results[i].Name = js.GetNewName(); } if (Results.Length > 0) { var Last = Results.Length - 1; Results[Last] = (Ref_js)Types[Last].GetConstructor(CP).Invoke(null); Results[Last].Name = js.GetNewName(); } return(Results); }
internal Ref_js[] BeginFunction(int Inputs = 0) { Ref_js[] Parametrs = new Ref_js[Inputs]; for (int i = 0; i < Inputs - 1; i++) { Parametrs[i] = new Ref_js() { Name = "v" + i }; js.SendJS(Parametrs[i].HowGet + ","); } if (Inputs > 0) { Parametrs[Inputs - 1] = new Ref_js() { Name = "v" + (Inputs - 1) }; js.SendJS(Parametrs[Inputs - 1].HowGet); } js.SendJS("){"); Insert(ref EndBlocks, () => js.SendJS("};")); return(Parametrs); }
public void Send(Ref_js Data) { js.SendJS(HowGet + ".send(" + Data.HowGet + ");"); }
public String_js Post(string Path, Ref_js Data) { return(Post(new String_js(Path), Data)); }
internal void Set(Ref_js Value) { HowSet(Value.HowGet); }