Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
当试图将谷歌可视化 api 包含到谷歌应用引擎的页面中时,在 Chrome 的开发人员工具控制台中出现此错误:未捕获的类型错误:对象 # 没有方法“写入”
在 FF 3.5 中,错误是“n.write 不是函数”。这里有点菜鸟,不知道如何解决这个问题。有任何想法吗?
代码可以在这里找到: 应用引擎上的 Google 可视化 api not working... (python)
万一其他人有这个问题 - 我弄乱了使用我为 XML 输出创建的相同函数渲染生成的页面的标题。
包括这个杀死它: handler.response.headers["Content-Type"] = "text/xml"
如果您使用 JSF2 和 XHTML facelets,您需要使用:
<f:view contentType="text/html"> <!-- page with charts here --> </f:view>