cordova-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Kyung-man Kwak <>
Subject XHRHelper.cs has problems in hash changes.
Date Fri, 17 Oct 2014 06:18:11 GMT
Dear cordova developers,

I have several problem in following environment.

*Environment :*

   - *Cordova 3.6.3*
   - *platform : wp8*
   - *AngularJS v1.2.6*

*Problems :*

   - anchor tag
   - ng-href or href is not working. A simple url is working, but it is not
      working when only hash part is changed in the previous url.
   - angulerjs routing
      - it is working with param "template" (this is template string).
      - it is not working with param "tempalteUrl" (this is just url of
   - angularjs $location.url(~~)
      - it is ok before getting template. it is blocked in $http which is
      for getting template.

*Reason : *

   - in my guess, XHRHelper.cs file has a problem.
   - the variable script in this file is reloaded every time url is changed
   including hash change. And variable __XHRShimAliases is also initialized at
   this time. So, __onXHRLocalCallback function is not properly working.

*My temporary solution :*

1. add following code in module config


2. In XHRHelper.cs file(,
I added following code in the first line of script.

string script = @"(function(win, doc) {
    if (window.XHRHelperInitialized) {
      window.XHRHelperInitialized = true;

     var __XHRShimAliases = {};

I hope this issue is patched next version. :)

Thank you for reading this issue.

Kyungman Kwak.

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message