flex-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Harbs <harbs.li...@gmail.com>
Subject Re: [FlexJS] How to navigate to a url?
Date Mon, 16 Jan 2017 10:18:36 GMT
We already have BrowserWindow.open()


> On Jan 16, 2017, at 11:11 AM, OmPrakash Muppirala <bigosmallm@gmail.com> wrote:
> (I'm back go working on the Flex Team page using MDL.  )
> I'm hunting through the examples, but I dont see a way to programatically
> navigate to a URL in FlexJS.  Am I missing something obivious?
> I see an <a> tag with a href, and another approach that adds an <a> element
> in code, but that seems so cumbersome.  And it does not feel MXML-ish.
> I see a few options:
> 1.  Implement an href attribute in the MDL Button.  Although it will be
> confusing to the user if there is a href and a click handler.  Do both get
> executed?  Can we throw a warning in MXML about this?
> 2.  Implement a org.apache.flex.net.navigateToURL function which simply
> takes an urlRequest and navigates to the specified url (by internally
> calling window.open() )
> Any other options?
> Thanks,
> Om

View raw message