Ruby Forum Rails Spinoffs (closed, excessive spam) > Load / render responseText by the browser

Posted by buddy (Guest)
on 08.05.2008 22:46
(Received via mailing list)
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.
Posted by buddy (Guest)
on 13.05.2008 14:48
(Received via mailing list)
Any suggestions please?
Posted by kangax (Guest)
on 13.05.2008 14:59
(Received via mailing list)
What do you mean by "handle the above situation" ?
What exactly are you trying to "parse"?

- kangax
Posted by buddy (Guest)
on 13.05.2008 15:39
(Received via mailing list)
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" />
Posted by buddy (Guest)
on 14.05.2008 20:35
(Received via mailing list)
Any suggestions?
Posted by kangax (Guest)
on 14.05.2008 21:48
(Received via mailing list)
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