Our Forums are now closed. Please go to our Google Mailing List for help. This site will remain open for historical purposes.
ColdBox Framework Forums Home | Profile | Search | Login | RSS

 pdf Print PDF   Previous Page  Page: 1   Next Page

Thread: event.renderData(type=wddx) incorrect contentType
Created on: 02/08/10 08:53 AM Replies: 5
narkoba


Joined: 02/08/10
Posts: 3
event.renderData(type=wddx) incorrect contentType
02/08/10 8:53 AM

Hello guys,

I am test driving coldbox to use together with extjs. So I am pretty excited about the event.renderData that can be used in my handlers.

The thing is that if I want to render a query as wddx the content-type header of the ajax response is text/html and not text/xml. No matter what I try.

Here is my code in the handler:
<cfset event.renderData( type="wddx", data=getMyProjects, contentType="text/xml" ) />


and here is my extjs code that calls the coldboxproxy:

var proxy=new Ext.data.HttpProxy( {url:'remote/MyProxy.cfc?method=process&event=general.getMyprojects'});


I would really appreciate some help here. I am able to populate a datagrid using extjs and a custom json cfc, but I would prefer the wddx format.

Thank you in advance and keep up the good work!
Link | Top | Bottom
lmajano
Veteran Master

Joined: 01/29/05
Posts: 1209
RE: event.renderData(type=wddx) incorrect contentType
02/08/10 10:53 AM

What version of coldbox are you using?
Luis Majano
Link | Top | Bottom
narkoba


Joined: 02/08/10
Posts: 3
RE: event.renderData(type=wddx) incorrect contentType
02/09/10 2:53 AM

Hi Luis,

I am having the problem in colbox 2.6.4 & coldbox 3.0.0M4.

Have a nice day,

Wouter
Link | Top | Bottom
lmajano
Veteran Master

Joined: 01/29/05
Posts: 1209
RE: event.renderData(type=wddx) incorrect contentType
02/09/10 10:19 AM

That seems strange if you look in line 568 of the request context, you can see that when WDDX is selected you get content type of text/xml.
Luis Majano
Link | Top | Bottom
lmajano
Veteran Master

Joined: 01/29/05
Posts: 1209
RE: event.renderData(type=wddx) incorrect contentType
02/09/10 10:23 AM

I also did a test, and get text/xml as the content type on the browser.
Luis Majano
Link | Top | Bottom
narkoba


Joined: 02/08/10
Posts: 3
RE: event.renderData(type=wddx) incorrect contentType
02/09/10 10:29 AM

Thank you for looking into this.
Maybe it's because I am using CF8... Are you using CF9?

Cheers!
Link | Top | Bottom

Galleon Forums V1.7.008 was created by Raymond Camden