i ve a text field in my html that calls this method.
I m able to get the text output when i directly run the servlet in my mozilla. But not in the text field that i want. What is the error here? Should i include any request header in my XMLHttpRequest object?
rakesh sugirtharaj, please be sure to use UBB code tags when posting code to the forums. Unformatted code is extermely hard to read and most people will just go elsewhere. Please read this for more information.
You can go back and change your post to add code tags by clicking the .
Since the subject of this week's book promotion is jQuery, I'll point out that jQuery's Ajax handling is top-notch and handles a lot of these nuances for you. When using "raw" Ajax there are so many nuances that could go wrong that at this stage of the game, it makes little sense to not use a library that has already worked these kinks out for you.
I haven't written "raw" Ajax code in years -- first I employed Prototype for my Ajax needs, and now I've switched to jQuery.