user3231713
user3231713

Reputation: 13

PhoneGap/WP8 - Fail to load url with parameters

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 :

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

Any idea please ?

Thanks by advance,

Upvotes: 1

Views: 509

Answers (4)

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).

Upvotes: 0

Suhas Gosavi
Suhas Gosavi

Reputation: 2170

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

Upvotes: 0

exebook
exebook

Reputation: 33900

Try using js/index15.js instead.

Upvotes: 1

Oleksiy Martynov
Oleksiy Martynov

Reputation: 379

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

Upvotes: 1

Related Questions