Rakotomandimby Mihamina schrieb:
Hi, Have you got some links that talk about good pratices about mixing zpt and javascript?
Just insert a script element somewhere in your HTML page :) Do you have special use cases?
Javascript seems (according to my reads) usefull for ajaxification, and I would like to learn to use it in Zope and ZPTs.
If you use Python Scripts or DTML for dynamic JavaScripts don't forget to set the Content-Type response header to 'text/javascript'.
I think PageTemplates are not useful for dynamic JavaScripts because JavaScript is not a XML language.
Here a few articles regarding best practices: Ajax Mistakes <http://swik.net/Ajax/Ajax%20Mistakes> XMLHttpRequest Usability Guidelines <http://www.baekdal.com/articles/Usability/XMLHttpRequest-guidelines/> Fixing the back button that AJAX broke <http://www.isolani.co.uk/blog/javascript/FixingTheBackButtonThatAjaxBroke> Using JavaScript for good, not evil <http://adactio.com/atmedia2005/> Unobtrusive Javascript (scroll down) <http://www.onlinetools.org/articles/unobtrusivejavascript/> AJAX and Accessibility <http://www.washington.edu/computing/accessible/accessibleweb/ajax_accessible.html> HTH, Tonico _______________________________________________ ZPT mailing list ZPT@zope.org http://mail.zope.org/mailman/listinfo/zpt