> 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:[EMAIL PROTECTED] 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 <[EMAIL PROTECTED]> wrote: > > From: Frank W. Zammetti [mailto:[EMAIL PROTECTED] > > (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: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]