Thank you for being Torch-Bearer,
I must confess that I am not a good coder, but I am good at adaptation.
I was thinking to offload webpage from Arduino to any damn web-server as Arduino is not suitable for this kind of workload.
the Arduino sketch remains same for IDE 1.01 other than you have to substitute "Server" to "Ethernetserver" and "Client" to "EthernetClient".
Attached below Arduino sketch and Htmlpart.zip.
1. Upload AjaxUI.ino to arduino
2. Extract htmlpart.zip to your Pc/Mac/Phone/Tablet
3. Open Index.htm in your browser give password 4587 and hit submit. (don't press enter/return)
4. connect LED on pin 9 and GND
5. Have Fun
I am having some problems with this...After changing the ip address in the main.js script to my arduino's ip, now at least when I open the UI I can see the rx and tx led's flash on my ethernet shield so I believe I am close to getting this to work, my problem is the on/off toggle on the web page will not work it just stays off (greyed out). Any ideas as to what I am doing wrong here would be appreciated.