all groups > sql server reporting services > august 2006 >
You're in the

sql server reporting services

group:

javascript:void(window.open problem - two windows opening


javascript:void(window.open problem - two windows opening Glen M
8/29/2006 1:16:01 PM
sql server reporting services: I am having a probelm with the javascript functionality in RS 2000 (sp2
installed). When the field is clicked (using jump to url with javascript...),
a first new window is opened with the javascript... in the address bar and
"The page cannot be displayed". Then a second window appears automatically
that is the url from the javascript...
This occurs when I run the report from my application in which I use the
reportserver web viewer component. Here is where it gets weird. If I go
directly to the reportserver in IE and display the report, the links work
perfectly - no intermediate window.
Any ideas?
RE: javascript:void(window.open problem - two windows opening weilu NO[at]SPAM online.microsoft.com
8/30/2006 2:58:39 AM
Hello Glen,

Which web viewer component you use in your application?

Would you please post the detailed html code you use in the jump to url
properties?

Sincerely,

Wei Lu

Microsoft Online Community Support

==================================================

Get notification to my posts through email? Please refer to
http://msdn.microsoft.com/subscriptions/managednewsgroups/default.aspx#notif
ications.

Note: The MSDN Managed Newsgroup support offering is for non-urgent issues
where an initial response from the community or a Microsoft Support
Engineer within 1 business day is acceptable. Please note that each follow
up response may take approximately 2 business days as the support
professional working with you may need further investigation to reach the
most efficient resolution. The offering is not appropriate for situations
that require urgent, real-time or phone-based interactions or complex
project analysis and dump analysis issues. Issues of this nature are best
handled working with a dedicated Microsoft Support Engineer by contacting
Microsoft Customer Support Services (CSS) at
http://msdn.microsoft.com/subscriptions/support/default.aspx.

==================================================
(This posting is provided "AS IS", with no warranties, and confers no
rights.)
RE: javascript:void(window.open problem - two windows opening Glen M
8/30/2006 5:23:02 AM
Wei Lu,
I am using the report viewer web component that comes as a sample with RS.
The URL is conditional based on Status.

Jump to URL: =iif( Fields!ApprovalStatus.Value = "Set Status" or
Fields!ApprovalStatus.Value = "Rejected", "javascript:void(" &
Fields!ApprovalUrl.Value & ")", System.DBNull.Value)

Here is the field - (sql)
'window.open("http://pmcmodev.planesinc.net/Project.aspx?id=' +
convert(varchar(15), tp.ProjectId) +
'","_blank","width=1000,height=800,left=0,top=0,scrollbars=no,menubar=no,status=no,toolbar=no,resizable=no")'



[quoted text, click to view]
RE: javascript:void(window.open problem - two windows opening Bava Mani
8/30/2006 11:52:01 AM
Im also getting the same problem you described. but i get for RS2005 only and
not in RS2000. In RS2000 works perfectly. I though this problem for RS2005
only..
But this problem is not consistent becuase the same problme works in some
machine that has RS2005. I think it due to the javascript security setting or
popup setting in that machine.

[quoted text, click to view]
AddThis Social Bookmark Button