Use of window.location.href in crosswalk

yskkin

I use crosswalk 5.34.104.5 to build Android app.

After executing

location.href = '/another_page.html'

in index.html, which is a entry point defined by manifest.json, empty alert pops up and blank page appears.

another_page.html is located in the same directory as index.html (i.e. it is in apk file whose path is assets/www/another_page.html relative to apk's root) and is not served over network.

How can I achieve intended location transition?

Bob

It is a typo in "asserts/www/another_page.html", it should be assets, right? I can do the same thing with changing location.href to load another page.

EDIT: If you are using make_apk.py to package your app, you can pass "--enable-remote-debugging" to turn on remote debugging for your app. Once the app is launched on your device, open 'chrome://inspect' in Chrome browser running on the host machine, and inspect the page to directly execute "window.location.href=xxx" in console, and try to fix your problem. See https://crosswalk-project.org/#wiki/Remote-Debugging-on-Android for details.

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

From Dev

Is it secure to use window.location.href directly without validation

From Dev

Use window.location.href to go 2 pages back and reload

From Dev

Is it secure to use window.location.href directly without validation

From Dev

How to use a dynamically generated id in window.location.href?

From Dev

String is not a function on window location href

From Dev

window.location.href not working

From Dev

How to use window.location.href.replace to switch language in the href url?

From Dev

When I use window.location.href ,then my another function not calling .Following is my javascript code

From Dev

Enable and disable window.location.href

From Dev

onclick window.location.href with input value

From Dev

Javascript window.location.href onClick not working

From Dev

Passing parameter through "window.location.href"

From Dev

onchange event on window.location.href

From Dev

Window.location.href infinite loop

From Dev

Stubbing window.location.href with Sinon

From Dev

window.location.href not working in IE 11

From Dev

Using a variable for if window.location.href.indexOf()

From Dev

$window.location.href NOT WORKING in AngularJS

From Dev

window.location.href appending instead of replacing

From Dev

JavaScript window.location.href not working in localhost

From Dev

window.location.href is not redirecting html page

From Dev

window.location.href not working on IE

From Dev

How to Pass QueryString in window.location.href?

From Dev

onclick window.location.href with input value

From Dev

window.location.href - help redirecting

From Dev

window.location.href and hash are not working on chrome

From Dev

Window.location.href infinite loop

From Dev

Javascript window.location.href onClick not working

From Dev

find a tag that contains the window.location.href

Related Related

  1. 1

    Is it secure to use window.location.href directly without validation

  2. 2

    Use window.location.href to go 2 pages back and reload

  3. 3

    Is it secure to use window.location.href directly without validation

  4. 4

    How to use a dynamically generated id in window.location.href?

  5. 5

    String is not a function on window location href

  6. 6

    window.location.href not working

  7. 7

    How to use window.location.href.replace to switch language in the href url?

  8. 8

    When I use window.location.href ,then my another function not calling .Following is my javascript code

  9. 9

    Enable and disable window.location.href

  10. 10

    onclick window.location.href with input value

  11. 11

    Javascript window.location.href onClick not working

  12. 12

    Passing parameter through "window.location.href"

  13. 13

    onchange event on window.location.href

  14. 14

    Window.location.href infinite loop

  15. 15

    Stubbing window.location.href with Sinon

  16. 16

    window.location.href not working in IE 11

  17. 17

    Using a variable for if window.location.href.indexOf()

  18. 18

    $window.location.href NOT WORKING in AngularJS

  19. 19

    window.location.href appending instead of replacing

  20. 20

    JavaScript window.location.href not working in localhost

  21. 21

    window.location.href is not redirecting html page

  22. 22

    window.location.href not working on IE

  23. 23

    How to Pass QueryString in window.location.href?

  24. 24

    onclick window.location.href with input value

  25. 25

    window.location.href - help redirecting

  26. 26

    window.location.href and hash are not working on chrome

  27. 27

    Window.location.href infinite loop

  28. 28

    Javascript window.location.href onClick not working

  29. 29

    find a tag that contains the window.location.href

HotTag

Archive