You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Levan Dvalishvili <dv...@verticali.com> on 2006/12/01 21:16:01 UTC

RE: Struts, AJAX, JSP, and JavaScript question

> eval() evaluates JavaScript, not XML or HTML.

Not quite true, in case of 
eval("<foo><bar></foo></bar>")
it will write <foo><bar></foo></bar> to the html  source, and then it's up
to browser how it will be  interpreted, if its valid markup it will not say
anything, otherwise it will complain, that explains why you get those two
errors below.

Levan Dvalishvili 
Support Lead  US
Verticali,Inc
(646) 736 - 6075


-----Original Message-----
From: Chris Pratt [mailto:thechrispratt@gmail.com] 
Sent: Wednesday, November 29, 2006 9:08 PM
To: Struts Users Mailing List
Subject: Re: Struts, AJAX, JSP, and JavaScript question

  (*Chris*)

On 11/29/06, Dave Newton <DN...@hibbertgroup.com> wrote:
>
> From: Frank W. Zammetti [mailto:fzlists@omnytex.com]
> > (interestingly, in IE I get a syntax error, because it's trying to 
> > interpret the markup as script, but in FF it just quietly doesn't 
> > work, not even a notice in Firebug).
>
> Something else interesting in FF:
>
> eval("<foo><bar></foo></bar>")
>
> "XML tag name mismatch"
>
> eval("<foo>")
>
> "unexpected end of XML source"
>
> Dave
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
>
>


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org