wsick / Fayde

Inspired by Silverlight; XAML engine using Javascript and rendering to the HTML5 Canvas.
MIT License
189 stars 27 forks source link

HyperlinkButton TargetName _Blank not working #143

Closed deepaksm1 closed 9 years ago

deepaksm1 commented 9 years ago

HyperlinkButton TargetName = _Blank not working in fayde. Page opening in same window. It should open in new window if target is _Blank

<HyperlinkButton Content="Download" Foreground="Teal" NavigateUri="{Binding Path=FileId, Converter={StaticResource DocumentLinkConverter}}" TargetName="_Blank" />
BSick7 commented 9 years ago

This has not been implemented. Stay tuned for implementation.

BSick7 commented 9 years ago

Implemented in Fayde v0.16.41.

deepaksm1 commented 8 years ago

Still this is not working in IE 11

deepaksm1 commented 8 years ago

I changed launchDummyLink function as below. Now it is working in IE11

function launchDummyLink(target, navigateUri) {
            dummyLink = dummyLink || document.createElement('a');
            dummyLink.style.position = "absolute";
            dummyLink.style.left = "-100px";
            dummyLink.style.top = "-100px";
            dummyLink.href = navigateUri;
            dummyLink.target = target;
            document.body.appendChild(dummyLink);
            dummyLink.click();
            document.body.removeChild(dummyLink);
        }