none
Jump to URL open new window with Sharepoint...

    Question

  •  

    I have been looking in the forums and I seem to have a pretty unique take on this problem.  I want to open a new window when I click a hyperlink on my text box.  Now I have seen the following javascript on a lot of posts:

     

    ="javascript:void(window.open('http://www.google.com/','_blank'))"

     

    and this works fine when I bring the report up in report manager.  However we have a Sharepoint site and want to view the report in a report viewer.  When I click the link in that environment, it knows it's a hyperlink but it does nothing.  If I change it to just the url ("'http://www.google.com/"), it works fine but it doesn't open a new window or tab but instead uses the current window or tab. 

     

    I am using SQL Server 2005 with Visual studio 2005 and it looks like verion 12.0.0.6219 of Sharepoint though I'm not 100% sure on that one.  Any ideas would be greatly apreciated Smile

    Thursday, September 04, 2008 2:34 PM

Answers

  • I do also have problems with jump to report and javascript in sharepoint (2007) with reporting services (2005).

     

    I have used the same javascript as tickytong:

    ="javascript:void(window.open('http://dwh-ms/ReportServer?%2fSale%2fSale_Details&rs:Command=Render', '_blank')) "

    In Sharepoint I am using the report viewer webpart.

     

    The report link opens a new, blank page in sharepoint, but the URL shows javascript:void(window.open('http://dwh-ms/ReportServer?%2fSale%2fSale_Details&rs:Command=Render',%20'_blank')) and the page shows an error message that the page cannot be displayed.

    The jump to report works fine in report manager. In RS the javascript tags has been removed and the site is opened as normal.

     

    Any clue on what I need to do to get the linked reports to work in Sharepoint??

    Tuesday, September 23, 2008 11:31 AM

All replies

  • I do also have problems with jump to report and javascript in sharepoint (2007) with reporting services (2005).

     

    I have used the same javascript as tickytong:

    ="javascript:void(window.open('http://dwh-ms/ReportServer?%2fSale%2fSale_Details&rs:Command=Render', '_blank')) "

    In Sharepoint I am using the report viewer webpart.

     

    The report link opens a new, blank page in sharepoint, but the URL shows javascript:void(window.open('http://dwh-ms/ReportServer?%2fSale%2fSale_Details&rs:Command=Render',%20'_blank')) and the page shows an error message that the page cannot be displayed.

    The jump to report works fine in report manager. In RS the javascript tags has been removed and the site is opened as normal.

     

    Any clue on what I need to do to get the linked reports to work in Sharepoint??

    Tuesday, September 23, 2008 11:31 AM
  • Hi,

    I have the same issue when i use javascript to open the URL in a new window. It throws an error saying page cannot be displayed but when the URL is provided directly without the Javascript it works perfectly fine.

    I am using Sharepoint 2007 and SSRS 2005. Can you please let me know if you have resolved this issue or not?

    Saturday, April 18, 2009 10:43 AM
  • Hi did you get this working as I also have this issue
    Friday, January 15, 2010 9:48 AM
  • Hi,

    I'm having the same issue? Did you guys find any solution for this?

    Regards,
    Surabhi
    Monday, February 15, 2010 8:18 PM
  • I'm also experiencing this issue, and am not able to find a solution.  Did anyone find a resolution?
    Thursday, July 29, 2010 2:52 PM
  • Did anybody got the solution for this ? ..I am also facing the same issue ...
    Thursday, July 14, 2011 4:26 PM
  • I am having a similar problem. There seems to be no resolution on this matter, yet.
    Tuesday, July 09, 2013 1:07 PM