This page started out as a very simple page - click here and you can see it at work. Basically you type a number in the top of the two TextBoxes and then click on the "Square" button. The number that you have typed is sent to the internet server (note that the web page does not change and is not re-painted). The server then squares the number and sends the result back to the page on the Client Browser. The Browser then pads it out with some words and puts the answer in the second text box.
Now ain't that good - I even find it exciting !!
Next I should tell you that you can use Remote Scripting either Asynchronously or Synchronously
These demonstration pages are asynchronous. So I created another page to demonstrate that you can carry on working - click here and you can see it at work.
Then I got a bit clever (well maybe confident is a better word) and added a new function to the server - it was a "CUBE" function (so imaginative arent I - hehehehe) and added some stuff to the bottom of this page to do the "cubing" - and it worked !!
Have a bit of a play - adapt it for your own use - enjoy !! It would be interesting to hear hou you get on.