1. A method of executing an application on a server-client network based operating environment, the method comprising: issuing events to authored code of an application, the authored code being adapted to invoke APIs on a server in a non-distributed operating environment to interact with a user or process; collecting a plurality of APIs invoked by the authored code relevant to a task to be performed; generating mark-up language based on the plurality of collected APIs to perform the task; sending the generated mark-up language to a client device; receiving results from the client device based on rendering the mark-up language on the client device; and providing results and/or issuing events to the authored code based on the results from the client device and in a form the same as if occurred from the server if the authored code was executed in the non-distributed operating environment.