be yourself wrote:hi i am new to struts
but i DO NOT want to use dojo or jqery, i want to use traditional ajax
Why? Unless it's to learn how Ajax works under the hood before using one of the libraries for real code, it's like a carpenter saying "I want to cut this board, but I don't want to use a saw, I want to use my bare hands."
teddy clayton wrote:thank you, it was my first post on this forum and i did not know much rules.
about ajax, the reason i want to use the old way of calling ajax is that i don't know jquery, and i actuality i want t fill the <td> by the result return when the user click a search button.
i could not find how to do it using jquery.
if you can help me i will be gratefull
Bear Bibeault wrote:
Using jQuery for Ajax is as easy as pie.
Let's say that the element that you want to "fill" with the response has an id of fred. To load an HTML fragment returned from an Ajax response would be:
That's it. And it will work flawlessly in all browsers.