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. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Spinoffs" group. To post to this group, send email to rubyonrails-spinoffs-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-spinoffs-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-spinoffs?hl=en -~----------~----~----~----~------~----~------~--~---
Any suggestions please? On May 8, 4:45 pm, buddy <getholdo...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> 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.--~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Spinoffs" group. To post to this group, send email to rubyonrails-spinoffs-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-spinoffs-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-spinoffs?hl=en -~----------~----~----~----~------~----~------~--~---
What do you mean by "handle the above situation" ? What exactly are you trying to "parse"? - kangax On May 8, 4:45 pm, buddy <getholdo...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> 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.--~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Spinoffs" group. To post to this group, send email to rubyonrails-spinoffs-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-spinoffs-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-spinoffs?hl=en -~----------~----~----~----~------~----~------~--~---
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 May 13, 8:58 am, kangax <kan...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> What do you mean by "handle the above situation" ? > What exactly are you trying to "parse"? > > - kangax > > On May 8, 4:45 pm, buddy <getholdo...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > > > 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.--~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Spinoffs" group. To post to this group, send email to rubyonrails-spinoffs-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-spinoffs-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-spinoffs?hl=en -~----------~----~----~----~------~----~------~--~---
Any suggestions? On May 13, 9:38 am, buddy <getholdo...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> 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 May 13, 8:58 am, kangax <kan...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > > > What do you mean by "handle the above situation" ? > > What exactly are you trying to "parse"? > > > - kangax > > > On May 8, 4:45 pm, buddy <getholdo...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > > > > 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.--~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Spinoffs" group. To post to this group, send email to rubyonrails-spinoffs-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-spinoffs-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-spinoffs?hl=en -~----------~----~----~----~------~----~------~--~---
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 On May 14, 2:34 pm, buddy <getholdo...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> Any suggestions? > > On May 13, 9:38 am, buddy <getholdo...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > > > 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 May 13, 8:58 am, kangax <kan...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > > > > What do you mean by "handle the above situation" ? > > > What exactly are you trying to "parse"? > > > > - kangax > > > > On May 8, 4:45 pm, buddy <getholdo...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > > > > > 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.--~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Spinoffs" group. To post to this group, send email to rubyonrails-spinoffs-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-spinoffs-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-spinoffs?hl=en -~----------~----~----~----~------~----~------~--~---