jannewmarch
10-18-2008, 05:41 AM
I saw in http://www.javascriptkit.com/jsref/document.shtml#e1 the function document.open(mimetype) to allow a new document to have its mimetype set to any suitable type. The page http://oopweb.com/JavaScript/Documents/jsintro/Volume/part4/part4.htm (dated 2002) shows how to use this to create a page containing VRML. I want to use this to dynamically create a page of type audio/x-mpegurl (an M3U playlist) but I can't get it to work under Firefox 3.03, Opera 9.6, Galeon (all under Linux), or even IE under Windows. e.g. Firefox creates the document but gives it type text/plain.
Does anyone know of browsers that support this method or of any special tricks needed to use it?
Does anyone know of browsers that support this method or of any special tricks needed to use it?