You're right I'm basically recreating my HTML in JavaScript through string concatenations after I receive a response from my
Servlet. With so many different technologies available it is sometimes hard to see how they all fit together. Let me try and explain how I got the calendar to work and maybe you can point me in a different\better direction.
I wrote a taglib to display a calendar (just what the world needs another calendar obj) only because the free one I got off the web mysteriously stopped working. The page is rendered and the taglib generates a hidden calendar object. When the user hits an img button the calendar shows.
Here's where AJAX comes into play. When the user selects one of the navigational << >> arrows the javascript is executed and a request is made to a calendar servlet. The servlet checks the params and sends an xml response to the callback function. Within this function the innerHTML attribute is replaced with the concatenated HTML string's.
I've read that the server's response can be in either plain text, xml or even a file. The only examples that I've found though have always sent a reponse back through xml. If I were to send a preformatted HTML reponse, then how, within javascript, would I access the data?
Thanks
write, revise, re-write, revise, again...<br />write, revise, re-write, revise, again...