1
votes

I'm trying to create an app on Windows Phone 8 with Cordova 3.3.0.

I create a new app Cordova 3.3.0. Then i change the file 'index.html' to include 'js/index.js' like that :

  • before : <script type="text/javascript" src="js/index.js"></script>
  • after : <script type="text/javascript" src="js/index.js?rev=15"></script>

The script is never loaded when i add some parameters in the URL.

Any idea please ?

Thanks by advance,

4

4 Answers

1
votes

pages with .js extension should not be taking any parameters.

1
votes

Try using js/index15.js instead.

0
votes

This is only possible by accessing own element in the HTML DOM and parse the src attribute.

here's a nice article with detailed explanations and code samples: http://feather.elektrum.org/book/src.html

0
votes

In Windows Phone platform Cordova server always returns status 404 when try to get a page with any type of params. It not works with get params (?key=value) nor as location hash (#param).