Skip to main content
Inspiring
May 16, 2019
Question

AIR 32 for Windows, StageWebView - LOCATION_CHANGING problem

  • May 16, 2019
  • 0 replies
  • 271 views

Hello there,

On Windows the event LOCATION_CHANGING is NOT fired if window.location is changed in JavaScript in the html file rendered in StageWebView.

Following link fires LOCATION_CHANGING event

<a href="anything">click me</a>

Following link DOES NOT FIRE LOCATION_CHANGING event. Will try to load "file:///anything" without firing the changing event, allowing to prevent default.

<a href="javascript:test();">click me</a>

// In JavaScript

function test() {

window.location = "anything";

}

This only happens on Windows. Code works well on iOS. (couldn't test on Mac or android).ù

Anybody ever faced this?

This topic has been closed for replies.