Random ...
February 2018
        1 2 3
4 5 6 7 8 9 10
11 12 13 14 15 16 17
18 19 20 21 22 23 24
25 26 27 28      
Tags ...

python+zope++:: Quicky: Debugging ajax apps
Posted at 09.Feb,2007 14:55  Comments 2 / Trackbacks 0 / Like this post!
Technorati tag(s):

Ajax is trendy and may be a bit difficult to debug.

Let me relate. I have a site that makes use of ajax quite a bit. So instead of refreshing the whole page, we just get the bits and stuff it up a DOM element.

All's well, or so it seems. After a while, I noticed that some characters are not rendered properly. And I thought, I've seen that before.

It's because we have not set the charset. How to see this?

If you're using firefox, get TamperData extension and you'll see it clearly.

Now in Zope, I added:

  <dtml-call "REQUEST.RESPONSE.setHeader('Content-Type','text/html,charset=iso-8859-1')">

So, get yourself TamperData extension, and some other Javascript extension such as FireBug.

Lessons learned.

Bookmark and Share

Is this entry helpful? Comments/Donate/Click some google ads.  
Trackback is http://myzope.kedai.com.my/blogs/kedai/120/tbping 


I like to use the Firebug extension on Firefox, very handy :)

aizatto  at 09.Feb,2007 15:26
firebug rulez

don't leave home without it! the webdeveloper extension is a must have too.

any other?

kedai  at 11.Feb,2007 19:43
Post a comment