Hello there,
Can you please tell me how to make browser parse / load responseText?
ResponseText can be either javascript or some jsp custom tag which has
to be parsed by the browser so that it is available for later
processing. If it is simple javascript string like alert('hey'),
eval() can be used. But how do you handle the above situation?
Please help me out. Thank you for help.
Prasad.
on 08.05.2008 22:46
on 13.05.2008 14:48
Any suggestions please?
on 13.05.2008 14:59
What do you mean by "handle the above situation" ? What exactly are you trying to "parse"? - kangax
on 13.05.2008 15:39
Trying to parse jsp custom tag (which is in the form a string) which was built on the server and sent to the browser as responseText and put on the browser using innerHtml. As the page will not be loaded again with ajax, the text in innerHtml is not parsed by the browser and it is not usable. If the response is a javascript function, still it can not be used as it was not parsed / loaded by the browser. Example of responseText: <mt:lov name="locLov" title="Locations" query="select sysdate from dual" />
on 14.05.2008 21:48
I'm not sure which output you expect after "parsing" of custom jsp tags. Shouldn't these tags be parsed on the server and return plain html to the client? - kangax