Opened 4 years ago

Last modified 3 years ago

#18385 assigned defect

"dojo/text" not work on Windows Phone 8 platform.

Reported by: remy314 Owned by: Bryan Forbes
Priority: undecided Milestone: 1.15
Component: Core Version: 1.10.1
Keywords: Cc:
Blocked By: Blocking:

Description

On Windows Phone 8 platform when using "dojo/text" to load local resource, dojo will automatically choose normal XMLHttpRequest object(through new XMLHttpRequest()) to perform the AJAX call. While for some reason this seems not worked by default and we need change to Microsoft specific object instead(ActiveXObject("Microfost.XMLHTTP"))

I managed to make dojo/text works as expected on WP8 by replacing the XHR object to "Microfost.XMLHTTP", but I don't think this is a good workaround since it's not official fix and may bring unexpected behaviors.

Test sample code (with other devices it works):

require(dojo/text!something.html?, function(something){

something = contents of something.html

});

Note: this issue only happends within WP8 app(through Cordova for example), the "dojo/text" feature works normally if you use system embeded IE directly.

Change History (3)

comment:1 Changed 4 years ago by dylan

Component: GeneralCore
Milestone: tbd1.11
Owner: set to Bryan Forbes
Status: newassigned

So within a hybrid app on Windows Phone 8, they still used ActiveX for XHR?

I'm not sure we'll have an easy way to text a fix for this.

comment:2 Changed 4 years ago by dylan

Milestone: 1.111.12

comment:3 Changed 3 years ago by dylan

Milestone: 1.131.15

Ticket planning... move current 1.13 tickets out to 1.15 to make it easier to move tickets into the 1.13 milestone.

Note: See TracTickets for help on using tickets.