haramanai / sifplayer

An HTML5 synfig files player.
16 stars 0 forks source link

xmlHttp.responseXML is null #1

Open justjan opened 11 years ago

justjan commented 11 years ago

Hi haramanai

great work! everything fine with it - I encountered the problem that xmlHttp.responseXML is null because the *.sif Files aren't sended as Mime Type XML by my apache (ok I could config this) - but I now use a php File with:

header('Content-type: text/xml');

to give the content of the sif file back to the client.

Maybe you can add a hint in the readme about the MIME issue and add a php-access file to serve *.sif as xml when using sifplayer in a php webserver environment.

Cheers

haramanai commented 11 years ago

Hi justjan sorry for the my delayed response just seen your post. Sometimes the servers have some restrictions for example a server will not allow you to load an xml file that does not have the extension .xml So if you rename your .sif file to .xml you will be all right. So from test.sif rename it to test.xml

Also don't forget that how you load the XML Document Object it's not part of the sifPlayer but you must pass an XML Document Object to the SifObject to read your synfig animation.

I hope the problem is solved.