PonteIneptique / simile-widgets

Automatically exported from code.google.com/p/simile-widgets
0 stars 0 forks source link

TIMELINE. loadXML ignores PHP documents #192

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
I called a .php document that generates the necessary timeline xml.
However, just to start with, I only changed the suffix of Simile's example
XML document. With no PHP to process in the document, the server does
nothing to it and just spits out the XML. You can see it here:

http://www.troped.com/proto/wp-content/themes/hemingway_reloaded/timeline.php

It's fine, it even validates.

The source looks normal to me. However, when I have timeline call this URL,
it gives me the error "Caught exception: TypeError: xml has no properties"
in Firefox and the error "Caught Exception: TypeError: null value" in Safari.

Any thoughts? Should I send along a header type?

[Submitted by Russell on simile.mit.edu]

David F. Huynh - 28/Jul/07 04:22 PM
Maybe that's because the mime type of the generated xml is "text/html"
instead of "text/xml"? 

Original issue reported on code.google.com by GabrielR...@googlemail.com on 7 Apr 2009 at 2:20