Rolf, thats it. Method signature is like this: int SaveData(callback(int))
It returns 0 or error number when clientside validation fails (no XHR then) and calls callback (with return error_nr or 0) when XHR finishes. On Apr 4, 9:25 pm, Rolf -nl <plentyofr...@gmail.com> wrote: > what do you mean with a true __getter__? instead of a 'false' one I > mean? > > Btw- Robert, maybe I don't understand but you could return data from > the xhr when the saving is done, no? so why are those designers having > problems with reading the data on return (onsuccess) or are they > expecting the data to be ready outside of the ajax request (maybe > that's what you mean by the statement they don't grasp callbacks?).. > > On Apr 4, 6:55 pm, Sanford Whiteman <sa...@cypressintegrated.com> > wrote: > > > > > > > > > > I think I just use some global flag which will delay read XHR if > > > save is not finished... > > > Sensible enough, though make sure they don't just go and check the > > flag in a tight loop... I might recommend using a true __getter__ for > > the flag where you can if these guys are really not cooperating with > > your "API".... > > > -- Sandy