Quick Q:
Is it posibble for JavaScript to invloke a servlet or forms are the only way to invoke servlets?
Quick Q:
Is it posibble for JavaScript to invloke a servlet or forms are the only way to invoke servlets?
You can request a servlet in any manner that you would normally request an html document - javascript, link tag and form, to name a few.
So for example, can I call a servlet from an onclick event of a JS area object?
Can u show me how I call the servlet ?
Yes, you can call one from the onclick event in javascript. I am not sure what an area object is that you are referring to though.
You would do this the exact same way you would request an html file. Do you know how to request an html file in the onclick event of an anchor tag (i.e., <a href=...)?
Yes, this helps. Thanks.