DHTMLX javascript suite is significantly configurable using XML. This configurability makes it possible to mostly define an application using XML. Oftentimes I need to generate that XML dynamically. Many http requests are made using DHTMLX's javascript load commands, which require the returned content-type to be text/xml.
I'm also serving from Active4D, XML documents loaded with 4D's command "DOM Parse XML source". These must only contain well-formed xml, no A4D tags, and the content-type must be text/xml. Because Active4D defaults to text/html for all executable documents, I cannot use "xml" as an executable type in Active4D.ini and have the 4D command "DOM Parse XML source" work. I had this working in an earlier version before using the 4D command DOM Parse XML source. To simplify the configuration requirements and reduce the number of documents required by more than 100 I am now extracting the json data map from the xml documents. So the same dynamically created XML documents loaded by DHTMLX using javascript calls are loaded by the 4D command DOM Parse XML source. -----Original Message----- From: [email protected] [mailto:[email protected]] On Behalf Of Aparajita Fishman Sent: Thursday, December 30, 2010 9:32 AM To: [email protected] Subject: Re: [Active4d-dev] response headers > I was using "set response header with a > Content-Type of text/xml and you directed me to use "set content type". In > this case I cannot. It isn't clear to me why you cannot. > I need A4D-executable xml documents to return a content-type text/xml Why isn't 'set content type' achieving that? If you mark any extension as executable, by default Active4D sets the content type to text/html, which you can change with 'set content type'. Kind regards, Aparajita www.aparajitaworld.com "If you dare to fail, you are bound to succeed." - Sri Chinmoy | www.srichinmoy.org _______________________________________________ Active4D-dev mailing list [email protected] http://mailman.aparajitaworld.com/mailman/listinfo/active4d-dev Archives: http://mailman.aparajitaworld.com/archive/active4d-dev/
