SharePoint User Group UK

Share the knowledge!

Welcome to SharePoint User Group UK Sign in | Join | Help
in
Home Blogs Forums Photos Files Roller

call internet explorer from sharepoint

Last post 05-18-2008, 9:15 AM by joel27. 6 replies.
Sort Posts: Previous Next
  •  05-15-2008, 3:20 PM 10749

    call internet explorer from sharepoint

    hi all

    i have a hard problem!!

    this is my first sharepoint project and i need to develop a webpart. in this webpart must call to the internet explorer with site url dynamically in the code.

     

    i tried so many ways, but always faild (although those ways succeeded in .net forms and asp.net).

     

    if someone have an idea pleaaaaaaaase  publish it :)

    with best regards

    Daniel

     

     

  •  05-15-2008, 4:23 PM 10757 in reply to 10749

    Re: call internet explorer from sharepoint

    Hi Daniel, What exactly are you trying to achieve? And what do you mean make a call to Internet explorer, You want to open a new explorer window?

    I'm assuming you want something a little more sophisticated than the Page Viewer webpart that comes out of the box?

    Paul.


    www.myfatblog.co.uk
    MCTS: WSS 3.0
    MCTS: MOSS 2007
  •  05-15-2008, 10:12 PM 10776 in reply to 10757

    Re: call internet explorer from sharepoint

    hi paul

    i agree that the problem seems simple. but i tried so much ways that success in winform and asp.net but didn't work in sharepoint (using webpart extenstion).

    simply i need a way to open an another internet explorer, maybe other thread, (or navigate the curent page) with other url.

    in c# winform:

    System.Diagnostics.Process.Start("http://microsoft.com");  but this and all other ways faild in sharepoint.

    but again i tried like 7 ways that work on winform but not on sharepoint.

    thanks

    Daniel

  •  05-16-2008, 9:21 AM 10785 in reply to 10776

    Re: call internet explorer from sharepoint

    Create a simple javascript script, register it on the page and call it when you want the page to open, rough example:

    this.myNewWindowOpener.Target = "_blank"
    this.myNewWindowOpener.NavigateUrl = "BLOCKED SCRIPTopenNewWindow('http://example.com/page.aspx)";

    Page.ClientScript.RegisterStartupScript(this.GetType(),"windowopen", @"<script>function openNewWindow(target) {window.open (target,'NewWindow'); return false;}</script>",true);


    Paul Leigh
  •  05-16-2008, 11:10 AM 10807 in reply to 10785

    Re: call internet explorer from sharepoint

    hi paul again

    thanks for help, but the problem that i never used javascript.

    other problem, the code apove seems that can open only 'http://example.com/page.aspx)" whole i need dinamiclly decide wich page to navigate to!!

    anyway  thanks again

    Daniel

  •  05-16-2008, 11:18 AM 10811 in reply to 10807

    Re: call internet explorer from sharepoint

    So replace the url with the one you want. If it's dynamic then, use whatever variable you need to by use of string concatenation.
    Paul Leigh
  •  05-18-2008, 9:15 AM 10831 in reply to 10811

    Re: call internet explorer from sharepoint

    hi again

    thanks paul again.. at last i didn't used javascript, because i never used it. i need to learn it soon because it seem a powerful.

    i used SPutility.redirect func. this doesn't open a new ie. but sufficient for thios time.

     

View as RSS news feed in XML
Powered by Community Server, by Telligent Systems