receive a responseText in ajax but without div tag

Posted by kawtousse on Stack Overflow See other posts from Stack Overflow or by kawtousse
Published on 2010-04-23T17:09:52Z Indexed on 2010/04/23 17:13 UTC
Read the original article Hit count: 149

Filed under:

Hi everyone I want to know if there is any other way whithout using a div tag to receive response html when sending parameter whith ajax. I'am asking because when iam building the select in other servlet and returning the result to jsp it receive the responsehtml in a div tag when we use the famous: x = xhr.responseText; document.getElementById('param').innerHTML = x; with param is the id of div tag. Note:

this works fine when populating ddl but its constraint are multiple for my case.

Thinks.

© Stack Overflow or respective owner

Related posts about AJAX