postscript: i have verified this is indeed related to the Content-Type response header (i changed the response type to "text/xml" and it worked). if others feel like this should work with "text/plain" Content-Type responses (because SWF10 generated app handles this case), then i'll open a bug on it.
augusto. On Apr 30, 2012, at 6:42 PM, augusto callejas wrote: > hi- > > i have a dataset where i call doRequest() on it. the request is sent and > received (verified in chrome's developer's javascript console, under the > "network" section). > however, the "ondata" method of the dataset is not called. this bug occurs > in html5 but not swf10. > > i have a second dataset that does work correctly in html5 (calling > doRequest() eventually calls "ondata"). the differences between the two: > > successful dataset: response header - Content-Type:text/xml;charset=UTF-8 > unsuccessful dataset: response header - Content-Type:text/plain;charset=UTF-8 > > the unsuccessful dataset does return XML: <?xml version="1.0" > encoding="UTF-8" standalone="yes"?><myXMLElement>...</myXMLElement> > > is there a potential bug in html5 generation where if the response of a > dataset.doRequest() call returns a content type that isn't "text/xml", it > doesn't correctly handle it/call "ondata"? > > thanks, > augusto.
