[thelist] idea behind ajax: clear non-presentation-only-logic on server end
Hassan Schroeder
hassan at webtuitive.com
Thu May 25 09:48:49 CDT 2006
Zhang Weiwu wrote:
> Is it me or a lot of people thought about the same thing too? I have been
> developing web application for 3 years and I very often get messed up with
> "PHP generated HTML with PHP generated javascript" and ends up getting
> fighting 4 different escape methods and security check. This is none sense.
Yes, it is. Your problem is in the "generating HTML" aspect -- just
don't do that. :-)
Using an MVC-oriented templating approach like Velocity or JSP (Java
examples, dunno about PHP) eliminates this problem completely.
--
Hassan Schroeder ----------------------------- hassan at webtuitive.com
Webtuitive Design === (+1) 408-938-0567 === http://webtuitive.com
opinion: webtuitive.blogspot.com
dream. code.
More information about the thelist
mailing list