My Mom just Debugged My Web App
I’m so impressed and embarrassed that my mom debugs my code…
Hi,
Remember that when I tried to update my goal progress it didn’t work on Firefox? To learn Phthon I have converted one of my php script to Python script and found out that it works on other browsers but not on Firefox. I googled - apparently Firefox needs the content type for Python script to execute properly. Is your “update progress” page python script? If it is put this line to your script before you display anything: print “Content-type: text/html”.
debugging Mom
So my Mom sent me this email… She’s actually completely right. I forget to respond with the proper content type in the ajax call that updates goal progress in GoalSay. Her older version of Firefox does not allow that and so the functionality doesn’t work on her laptop. Let’s hear it for mothers who can code!
P.S. My mom is also a computer scientist who Perls and Phps all the time.