none
Open URL in silverlight without IE browser window.

    Question

  • Hi,

    I need to open below mentioned JNLP URL from silver-light but without IE Browser window.

    URL :  https://docs.oracle.com/javase/tutorialJWS/samples/deployment/NotepadJWSProject/Notepad.jnlp

    Currently opening this URL from silver-light by calling JavaScript function but it is using IE as container to open this URL. Though this URL open in separate window but IE browser fluctuate for few seconds before opening this URL. So need another code to call Javascript function without IE window container.

    Current Code 

    silverlight Code :

    HtmlPage.Window.Invoke("ShowPopup", new string[] { "URL" });

    Javascript Function :

     function ShowPopup(formsUrl) {
            var windObj = window.open(
                formsUrl.toString(),
                "_blank",
                "menubar=no,toolbar=no,location=no,status=no,resizable=no,scrollbar=no,width=840,height=625");
            }

    Thanks

    Karan


    Friday, January 06, 2017 10:40 AM

All replies

  • Hi Karan,

    As far as I know, all the ways (HyperLinkButton control, HtmlWindow.Navigate() and HtmlPage.PopupWindow()) that used to open URL from Silverlight application don't have a parameter to set the browser type. So Silverlight application only could open current browser window which is running your Silverlight application.

    And based on the compatible browsers list, other browsers are all not support Silverlight at the end of 2016. And only IE 11 still supports Silverlight now. I'm afraid that you could not open the Url in other browser from Silverlight application.

    http://www.microsoft.com/getsilverlight/locale/en-us/html/installation-win-SL5.html

    Best Regards,
    Weiwei


    MSDN Community Support
    Please remember to click "Mark as Answer" the responses that resolved your issue, and to click "Unmark as Answer" if not. This can be beneficial to other community members reading this thread. If you have any compliments or complaints to MSDN Support, feel free to contact MSDNFSF@microsoft.com.

    Monday, January 09, 2017 6:06 AM
    Moderator
  • Hi Weiwei,

    Thanks for ton for your answer.

    My Main motto is to post/ask this question "Can we call below mentioned JNLP url from Silverlight by any way by which browser window will not come into picture?, If yes then how?

    URL :  https://docs.oracle.com/javase/tutorialJWS/samples/deployment/NotepadJWSProject/Notepad.jnlp

    I want to open the above URL from silver-light Like the below process :-

    on local machine -> Click on Start -> Run type this url: javaws https://docs.oracle.com/javase/tutorialJWS/samples/deployment/NotepadJWSProject/Notepad.jnlp

    This would lead to opening of  Notepad on local machine by Java Web Startv(i.e. javaws command), without the Browser instance.

    The question which remains unanswered are :-

    1. Is their any other way other than the HTMLPage silverlight class to call Javascript Method ?, If yes then how?
    2. Is their any way by which we can call vbscript function from Silverlight so that I can use locally installed java web start (i.e. javaws)  command to open above mentioned URL?

      Would be great if you could please advise. Thanks so much for devoting time and your interest in the same.

    Regards

    Karan


    Monday, January 09, 2017 2:00 PM
  • We only could use HTMLPage class to call JavaScript in Silverlight application.

    Friday, January 20, 2017 9:22 AM