Window.open SSRS & Sharepoint 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'))"
it works fine in SSRS 2005 ( report server and report manager)
but when I published this report on SharePoint2007 as WebPart - it is not working
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.
any ideas ?
Hi,
The SharePoint will strip the JavaScript out automatically.
For the samples about adding JavaScript into SharePoint page, please refer to:
http://blogs.msdn.com/sharepointdesigner/archive/2007/06/13/using-javascript-to-manipulate-a-list-form-field.aspx
http://www.sharepointkings.com/2008/06/using-simple-javascript-in-sharepoint.html
http://social.msdn.microsoft.com/Forums/en-US/sharepointdevelopment/thread/941940cb-acef-434f-830f-233713773b99/
Hope it is helpful!
Seven
Similar Messages
-
Advanced Window Open 3 Extension Problem
I am fairly new to Dreamweaver 8 and just purchased Advanced
Open Window 3. I am trying to open a new browser with an html paged
centered in full screen mode. The new browser opens full screen but
the page is always center TOP. The Open Window positioning settings
have no effect on the page regardless of their setting. Are there
soome page settings that are overiding the Advanced Open Window
settings that I am missing?
Thanks,I'm assuming you're talking about Solution 1 in that blog post. The reason that he opens the application's window from a temporary HTML page is to avoid the exact problem that you described initially. By having that code within your application, you're opening a new window to your application which then opens a new window to your application which then opens a new window to your application, etc. etc. Using Solution 1, you'd define a HTML page which opens a new full-screen window to your application, then the HTML page closes itself. You give only the URL to the HTML page to your users.
If you don't want to use an intermediary temporary page, then Solution 3 is probably the next best - at least it doesn't rely on IE-only. It's simply telling the browser window to resize itself.
I haven't tested these so I can't speak to any of their applicability. I strictly avoid tinkering with browser behavior via code anyway - it always, always, always leads to trouble. My only recommendation on that besides "don't do it" is to comment liberally, because I guarantee you'll be back in that code someday.
But please, take a look at the database design too. Nothing you're attempting to do here is going to stop incomplete transactions from being created - only a good database design with solid referential integrity and constraints is going to do that.
Hope this helps,
John
If you find this information useful, please mark the post "helpful" or "correct" so that others may benefit as well.* -
I am attempting to connect to a Microsoft Sharepoint library, via the "Actions -> Open in Windows Explorer" option from the Sharepoint page. When I do so, I get the error message "your client does not support opening this list with windows explorer". In short, I am trying to get the "drag and drop" functionality of a Sharepoint library.
I am running Windows 7 64-bit and IE8. The target Sharepoint environment is a MOSS 2007 EE. My Windows "WebClient" service is running, and I have no problem connecting to this exact library via a Windows XP computer running IE8.Verify that the Webclient is started automatically from the Services.msc
Verify that your Portal is in the Intranet local security zone (You can reach it from Your Internet Explorer Browser Security Tag) if not add it to the list
restart the WebClient service if it's work good
If not you have to create a network share to your portal URL directly not your documents library.
Open Windows Explorer or My Computer from the Windows Start Menu.
From the Tools menu, click Map Network Drive…. A new Map Network Drive window opens.
In the Map Network Drive window, choose an available drive letter from the dropdown list located next to the "Drive:" option. Any drives already mapped will have a shared folder name displayed inside the dropdown list, next to the drive letter.
Type the name of the folder to map wich is in this case your SharePoint Portal URL (Don't include the documents libraries)
Click the "Reconnect at login" checkbox if this network drive should be mapped permanently. Otherwise, this drive will un-map when the user logs out of this computer.
If the remote computer that contains the shared folder requires a different username and password to log in, click the "different user name" hyperlink to enter this information.
Click Finish.
I am looking for a suite method :) -
SSRS Action URL via javascript:void(window.open doesn't work in IE
Hi,
I am using the following code to open "google.com.au"
in a pop-up window through SSRS Report -> Action -> URL
="javascript:void(window.open('"+
"http://www.google.com.au/" +
"','_blank','scrollbars=true,status=true'))"
The script work fine in Chrome and FireFox but not IE ( we are using IE 11.0 ), any idea what's going wrong?
( When we click on it ; Nothing appear in IE )
Thanks.Hi Yu,
1. We are using SQL Server SSRS 2008 R2 in IE 11.0.9600.17501 environment ( Means we already have the latest IE 11 Patch )
2. Did you try put in Javascript in SSRS Cell -> Placeholder Properties -> Action -> URL?
i.e. ="javascript:void(window.open('"+ "http://www.google.com.au/" + "','_blank','scrollbars=true,status=true'))"
3. All reports are having the same phenomenon.
4. I used F12 and tried IE7, IE8, IE9, IE10 all same ( ALL couldn't POP UP window ).
5. Please refer to attachment, I found out that when I go to Cell -> Right click -> Inspect Element & change
target="_top" to
target="_self" then the problem gone.
BUT... how to set target="_self" in SSRS?
Regards,
Frank -
Problem with Sessions and window.open
Hi,
Hi everyone,
Help Please!!!
I am working with Sevlet session objects and HTML forms and windows. I have an HTML form for the user to supply a username and password. Once the user clicks submit I need to open another browser window that has no toolbar, no location, no status bar, etc. The user should also be able to go back to that login screen and login again and open a 2nd, 3rd, etc. instance of the application. My problem is that each application is being asigned the same sessionId. I believe it is being asigned to the main login window and thus to the other child windows it opens. Is there a way to work around this? Do I need to make the user open another browser window to login? I need to be able to let the user open multiple instances of the application with unique session ids for each.
Any insight is GREATLY appreciated on this topic. Anything you can tell me about sessions (Java), IE, window.open would help greatly!
THANK YOU IN ADVANCE!!!
MATo achieve this, you must introduce another level of
abstraction to the Servlet specifications. When you
work with JSP/Servlets you use mostly the HttpSession
to handle user related tasks, and the aplication
context, for things that are common to all users. But
inside the HttpSession scope, you want to create
containers that have 'smaller' scope and are uniquely
identified.
A ipothetical scenario :Let's say that you must have
multiple connections to several databases, on each
database user rights beeing diferrent, and you must be
able to track user actions globaly, and eventualy
capture a 'Close Application event' and close all db.
connections.
1. when the user first accesses the login frame create
the HttpSession. In the HttpSession object, store a
Hastable (let's call it 'ConnectionTable'). Each
object in the Hashtable must identify uniqely a
database connection. Now, to create unique identifiers
ids, make the keys in the hashtable java.lang.Long
objects, created using System.getCurrentTimeMillis().
This guaranties there will be no possible confusion.
From each new open window, on each request to the
server, along with the usefull parameters, send the
connection identifier. When proccessing the request,
select the object from the Hastable wich corresponds
to the ID.
2. Now, the values in the ConnectionTable, must act as
the containers that I mentioned in the first
paragraph. The simplest way to do this is to have
again a Hashtable derived class to do the job, wich
exploses methods similar to HttpSession: setAttibute (
Object key, Object value) and getAttibute ( Object
key, Object value). This container may use internally
a Hashtable to store object, and explose only the
getAttribute and setAttribute methods for clarity. Any
way, this is a problem of implementation. Let's call
this class CustomSession.
Now, a textual activity diagram:
1 user accesses the main page, you start a new
HttpSession; In the HttpSession object, store the
ConnectionTable object.
2. the user enters the userID and pwd and adatabase
name, and a new window is opened. Let's supose the
data entered is valid.
3. when you process the login data, you create a new
CustomSession object. you put in it whatever you would
put in your HttpSession. You generate a unique
identifier using System.CurrentTimeMillis(). Put the
CustomSession object in the ConnectionTable, using the
generated id as key. Send the response.
..... later on .....
100. the user asks for a particular action to be
performed - e.g. a row deletion. The page contains a
form with text field where the user introduces the
row number, a submit button and a hidden input with
the ID.
101. you process the data. Get the ID from the request
object, get the ConnectionTable from the session, get
the CustomSession using the ID as key, do whatever
your logic was doing, but obtaining the objects from
the CustomSession instead of HttpSession
NicNic,
Very slick idea. I think that it could work and it seems that there would be not security issues because the id that you would store on the client side is the Unique Identifier and not the actual Session Id. Do you forsee any security issues for this implementation? -
Problem with window.close and window.open
I am having two suspected Actionscript problems which only seem to be happening with Flash player 9 and later.
BACKGROUND:
I have a client who needs browser-launched swf files to play from a CD-ROM (I do not want to use the Flash projector). These files were created a few years ago using Actionscript 1 & 2 code and everything has worked perfectly until now.
Here is the setup:
First, an autorun file on the root of the CD runs and writes a 'trust file' to the 'Macromed' directory. The autorun next launches 'index.htm' which is simply an html page containing a series of links (topic1.htm; topic2.htm; and so on). Next, let's assume the student clicks the 'topic1.htm' link from the 'index.htm' page. The 'topic1.htm' link launches a web page (also located on the CD) which contains and displays 'topic1.swf'. So far, everything works fine.
Here is where the two problems happen.
Problem 1:
I have an 'Exit' button within each swf (remember each swf is contained inside an html page). The 'Exit' button has always worked properly, but suddenly does not work in Flash player 9. I am using the following Actionscript 2 code on the 'Exit' button:
on (release) {
getURL("javascript:window.close()");
The 'Exit' button has always worked using this code (and still works in Flash player 8 and lower). However, it does nothing when played using Flash player 9.
Problem 2:
There are links to html popup windows within the 'topic1.swf' file (remember 'topic1.swf' is contained inside 'topic1.htm'). Each popup window contains a swf file that is used to present a demonstration. When the student clicks the 'demo1.htm' link from 'topic1.swf', an html popup window SHOULD load and display 'demo1.swf' inside the 'demo1.htm' window. The main ('topic1.htm') window stays open so that the student can return to the topic after completing the demo. This has always worked properly until Flash player 9. Here is the Actionscript 2 code
which I am using on the button inside 'topic1.swf' to launch 'demo1.htm':
on (release) {
getURL("javascript:launchWin2('webpage2.html');");
ADDITIONAL INFO:
'topic1.htm' contains the following code which is used to support the Actionscript code listed under 'Problem 2' above.
<SCRIPT LANGUAGE=JavaScript>
<!--
var padvar="";
var childwind;
function launchWin2(arg) {
openWin2(arg);
function openWin2(arg) {
childwind = window.open(arg,"padwind2","menubar=no,location=no,status=no,scrollbars=no,width=750px,he ight=500px,left=0,top=0");
//-->
</SCRIPT>
I would appreciate any help anyone can offer. I am wondering if the problem has to do with a need to use ONLY Actionscript 3 code from Flash player 9 onwards.
Thanks!
TerryYou may have '''Switched ON Caret Browsing'''. press '''F7 (on Mac: fn + F7)''' to toggle '''Caret Browsing ON/OFF'''
* click '''Firefox''' button and click '''Options''' -> Advanced -> General -> remove
Checkmark from '''Always use the cursor keys to navigate within pages'''
* http://kb.mozillazine.org/Scrolling_with_arrow_keys_no_longer_works
* http://kb.mozillazine.org/Accessibility_features_of_Firefox
Check and tell if its working. -
I have just purchased the photography package on my windows 8 computer and everytime I open photoshop an error message pops up saying that windows has encountered a problem and needs to close the program. I am really frustrated that this is happening after I purchased this plan and would like to be able to use the product I have purchased
+1 to Chris' assessment.
Keep in mind that it's your responsibility to provide a problem-free working environment on your computer for Photoshop, and system software (such as display drivers) can have problems.
Look in your Windows Event Logs (specifically, your Application Log) for the info requested above on the specific crashes.
-Noel -
Session problem in a new window created by window.open()
hello,
I have a drugsearch.jsp page, I sessioned an durgCollection object on this jsp page using session.setAttribute("drugCollection",drugCollection);
there is a link on this jsp which will call a javascript to open a new window .
here is the javascript to open another new window:
function openReportWindow()
window.open("/drug/Report.jsp","report", "toolbar,scrollbars,width=800,height=800,left=100,top=10");
but in the Report.jsp, I won't be able to get the same session object as in the calling jsp ( drugsearch.jsp) by calling session.getAttribute("drugCollection").
if I change the link on drugsearch.jsp to link to the Report.jsp directly instead of opening a new window, then I can get the same session object from the Report.jsp.
what's the problem? can someone give me an advice?
thanksA session is assosiated with one client(browser).
when you open a new browser, a new session is created. In order to have common place for both the browsers, try storing the data in the 'Servlet Context' -
I purchased in in-app component for an email program but it has not shown up in the app on my ipad. I tried to report a problem, but no window opens in which to explain my situation. How do I get a message to the seller or to itunes? I am reluctant to re-purchase the component.
Can you download large files from other places apart from the App store, wondering if it is the App store or your internet connection.
If it just the app store check this url http://www.apple.com/support/mac/app-store/contact/ -
Problem 1: I launch Firefox and 6 to 8 windows open.
Problem 2: Every since I tried to update Flash this happens. I have done this 12 times, but it still keeps trying to open.I'm having difficulty visualizing what is wrong but try some basic steps first:
Launch Safari while holding a Shift key - this will start Safari with just your Home page
If you can see Reset Safari from the Safari menu, try that.
In addition to downloading and installing Safari again, try reapplying just the Snow Leopard Combo Update: http://support.apple.com/kb/DL1399 There is no need to uninstall Safari first.
Lastly try deleting Safari's Preferences file: ~/Library/Preferences/com.apple.Safari.plist -
upon firefox update this morning, every window opens with this error in a popup: ''CaptureMovieFox could not be initialized. Some files of the extension may be missing or there is a problem with the Firefox.''
when I close the popup, the original window opens seemingly without issue.http://getfirebug.com/releases/firebug/1.8/
visit this and find the compatible version of this f***ing firebug. which certainly has nothing to do with us (not-programmers). i have been having this problem for months but now the last link worked for my firefox 6. Find yours here. -
Window.opener problem in javascript
Hi,
I'm using a code for opening a clild window from the parent window. The child window contains some <input type="file"> elements. After setting the values of these file elements I'm closing the child window. But before closing I want to set the values of file elements to the file elements on my parent window.
The code I'm using is as follows:
"parent.jsp"
=========
function createWindow() {
window.open("child.jsp");
return false;
<form method="post" action="display.jsp" enctype="multipart/form-data">
<input type="button" value="Add Attachments" onClick="return createWindow()"><br>
<input type="file" name="file1"><br>
<input type="file" name="file2"><br>
<input type="file" name="file3"><br>
<input type="submit" value="Submit Form"><br>
</center>
</form>
"child.jsp"
========
function returnToMainWindow() {
window.opener.document.forms[0].file1.value = document.forms[0].filex.value;
window.close();
<form method="post">
<center>
<input type="file" name="filex"><br>
<input type="file" name="filey"><br>
<input type="file" name="filez"><br>
<input type="button" onClick="returnToMainWindow()" value="Done">
</center>
</form> The problem is when I'm setting the values of file control of child window to the file control of parent window using window.opener, it's unable to set up the values. Can someone rectify the problem in the code.It is impossible to set the value of the file input thing. But if they realy want it in a popup, then you can try something like this:
-1. Put the attatchement list in a iframe
0. Open the parent file with some with somewhere a unique id (like a session id or something
1. Open your child page in a popup, give that uniqueid as parameter ("like child.jsp?id=<uniqueId>")
2. Use regular file input things in that popup, and replace the 'close' button by a submit button
3. Track the submit of the form, show a 'now uploading to server, please wait' message
4. The child page sends the attatchements to the server, stored in a tempory folder named <uniqueId> (store it in the form as a hidden input thing)
5. When the upload is ready, display some message 'files uploaded, close this window to return to your mail'.
6. When the user clicks that 'close' button, close the popup and then reload the attachment-frame
7. The attachment-frame just lists the files stored in that <sessionid> folder, and it seems like the user has added those files to it
If you want i can create an example of it
koentjepoppe
note: if you add the date to that unique id, you know when that folder is created and then you know wich folders you have to delete if the user aborts his mail for example (then those files are still in that folder wasting space) -
Good Morning,
I am having problems with the window.open() syntax. My application has 14 pages and is in 3.2. I need the whole application open in a new browser window. I have tested the code with a blank screen on page 101 and it opens correctly. When I put in the actual URL, the window will open multiple windows, where I have to go into task manager and end all processes. Will I have have this code on each page?
Code below:
header
function fullscreen_fun()
window.opener=self;
window.open=("f?p=&APP_ID.:101:&SESSION.","","height=350,width=350");
window.close;
</script>
onload="javascript:fullscreen_fun()"I need the entire application open in a new browser window.
Thanks,
MaryI'm assuming you're talking about Solution 1 in that blog post. The reason that he opens the application's window from a temporary HTML page is to avoid the exact problem that you described initially. By having that code within your application, you're opening a new window to your application which then opens a new window to your application which then opens a new window to your application, etc. etc. Using Solution 1, you'd define a HTML page which opens a new full-screen window to your application, then the HTML page closes itself. You give only the URL to the HTML page to your users.
If you don't want to use an intermediary temporary page, then Solution 3 is probably the next best - at least it doesn't rely on IE-only. It's simply telling the browser window to resize itself.
I haven't tested these so I can't speak to any of their applicability. I strictly avoid tinkering with browser behavior via code anyway - it always, always, always leads to trouble. My only recommendation on that besides "don't do it" is to comment liberally, because I guarantee you'll be back in that code someday.
But please, take a look at the database design too. Nothing you're attempting to do here is going to stop incomplete transactions from being created - only a good database design with solid referential integrity and constraints is going to do that.
Hope this helps,
John
If you find this information useful, please mark the post "helpful" or "correct" so that others may benefit as well.* -
Help!! Itunes keeps closing straight away and message states 'windows has detected a problem' HELP ASAP PLEASE!!!!
For general advice see Troubleshooting issues with iTunes for Windows updates.
The steps in the second box are a guide to removing everything related to iTunes and then rebuilding it which is often a good starting point unless the symptoms indicate a more specific approach. Review the other boxes and the list of support documents further down page in case one of them applies.
Your library should be unaffected by these steps but there is backup and recovery advice elsewhere in the user tip.
If you've already tried a complete uninstall and reinstall try opening iTunes in safe mode (hold down CTRL+SHIFT as you start iTunes) then going to Edit > Preferences > Store and turning off Show iTunes in the Cloud purchases. You may find iTunes will now start normally.
tt2 -
Problem window.opener.doSubmit
Hello,
We have one application, say with URL
http://localhost/some_app
This is not an APEX application.
On this application on click of a button we popup an APEX page (with public access) and when user clicks on "Ok" button of this APEX page we pop the page down and want
to refresh the original application page. We do this by following javascript function from the APEX page
function close(url) {
window.opener.location.href = decodeBIURL(url);
window.opener.doSubmit('REFRESH');
window.close();
We pass the url of the original application to this APEX page as one of the parameters.
This works fine as long as APEX page has URL of the form http://localhost:8085/apex/f?p=101:3, i.e. original application URL and APEX URL both have same hostname part (in the example above localhost ), but moment they are differnet IE pops up another window for original URL.
does anyone know fix to this problem?
regards, YoraIt is impossible to set the value of the file input thing. But if they realy want it in a popup, then you can try something like this:
-1. Put the attatchement list in a iframe
0. Open the parent file with some with somewhere a unique id (like a session id or something
1. Open your child page in a popup, give that uniqueid as parameter ("like child.jsp?id=<uniqueId>")
2. Use regular file input things in that popup, and replace the 'close' button by a submit button
3. Track the submit of the form, show a 'now uploading to server, please wait' message
4. The child page sends the attatchements to the server, stored in a tempory folder named <uniqueId> (store it in the form as a hidden input thing)
5. When the upload is ready, display some message 'files uploaded, close this window to return to your mail'.
6. When the user clicks that 'close' button, close the popup and then reload the attachment-frame
7. The attachment-frame just lists the files stored in that <sessionid> folder, and it seems like the user has added those files to it
If you want i can create an example of it
koentjepoppe
note: if you add the date to that unique id, you know when that folder is created and then you know wich folders you have to delete if the user aborts his mail for example (then those files are still in that folder wasting space)
Maybe you are looking for
-
DBIF_DSQL2_DEFAULT_CR_ERROR while activating DSO data
Hello Friends, While activating DSO data i am getting 'DBIF_DSQL2_DEFAULT_CR_ERROR' . please suggest me a solution . Regards Nilesh
-
Connecting a new ipod to a bell network
how can I unlock the Bell218 network so I can access wi-fi with my ipod?
-
Passing values to idoc data of type edidd40 using ABAP
Hi All, I am using orders05 (purchasing) idoc for creating purchase order inbound in ABAP program. I need to read a file and fill values to idoc_data of type edidd40 and idoc control record (of type edidc) and call function module idoc_inbound asynch
-
4.1EA2 - Startup script / serveroutput randomly stops
I have a startup script that only contains the text "SET SERVEROUTPUT ON". I've used this flawlessly in previous versions. In this EA version, it randomly stops displaying the output. If I quit SQL Developer and restart, it works again. I haven't
-
Interfacing application with SAP for Customer data
Hello, I would like to build an interface between an external application and SAP for the customers. The Customer will be created and maintained in the external application and data should be updated in SAP automatically. I thought that I could use t