Will not be surprise if this doesn't work in windows phone.

It depends on the value of url. WP has being problematic doing xhr against local files
https://issues.apache.org/jira/browse/CB-4421