Question
EPAM Systems
CA
Last activity: 11 Jul 2018 12:51 EDT
Window name is not coming on using openUrlInWindow
Hi Team,
I am using openUrlInWindow in java script to open the window but instead of window name thread name is coming.
I tried to follow below two links but no luck.Please help me here.
https://community.pega.com/support/support-articles/openurlinwindow-header-not-changed
Pega Version- 7.1.5
Thanks
-
Like (0)
-
Share this page Facebook Twitter LinkedIn Email Copying... Copied!
Pegasystems Inc.
IN
Hi
if you are using javascript you can use windo.open() function call. However following are few ways we can open in window and we can set the window name accordingly when used from various elements.
Hi
if you are using javascript you can use windo.open() function call. However following are few ways we can open in window and we can set the window name accordingly when used from various elements.
name property (window)
- When a window is opened by an anchor, then the target property specifies the initial name of the created window. For details, see Example 1 or the page for the target property.
- When a window belongs to a frame or iframe element, then the name property sets the initial name of the contained window. See Example 2 for details.
- Finally, if a window is created dynamically by the open method, then the second parameter of the method specifies the initial name of the created window. See Example 3 for details.
EPAM Systems
CA
Hi Sridhar,
Thanks for the reply!!
I tried below code and its setting the window name but getting overridden with thread name and also it is replacing the already opened window instead of opening a new one.
var wind=window.open(url,"Test");
wind.document.title = 'testing';
Thanks
EPAM Systems
CA
Hello Team,
Could you please help me to resolve this issue ?
Thanks
Pegasystems Inc.
US
I did a search and found out a previous SR which dealt with the similar issue. Below was the solution. You can give a try.
Make the following change to the operating environment:
1. In Internet Explorer, select Internet Options & go to the Security Tab.
2. The next step depends on if you have the URL is listed as a Trusted site. If this URL is not listed as a Trusted site, just replace "Trusted sites" with "Internet" or "Local intranet" in the next step.
3. Select the "Trusted Sites" at the top, and click on the "Custom Level" at the bottom.
4. Scroll down to the "Miscellaneous" section, and choose "Enable" for "Allow script-initiated windows without size or position constraint"
5. Restart Internet Explorer for settings to take effect.
See attached screenshot.
EPAM Systems
CA
Hello ,
Thanks for the reply !!
I checked and found that suggested settings is already present in IE but still it is not working.
Thanks
Pegasystems Inc.
US
Hi Lalit,
A screen session is needed to debug more on your system. Can you raise a SR for it and we will help you on it.
Thanks,
Susan
Pegasystems Inc.
US
It looks that there is one SR-C40403 already logged for this.
Pegasystems Inc.
US
Please refer to the below pdn link:
-
Akshay Viswanath Devendra Pawar
EPAM Systems
CA
Hi Susan,
Yes SR is raised by me only after seeing all these arctile in pdn.
Thanks
Pegasystems Inc.
US
After I do research on this, I have found out the following:
The window name field in the "Open URL in Window" configuration doesn't become the winddow name.
The Window Name is a way to name a popup window so that you can either replace the contents in the same popup window, additional window.open calls using the same window name, or creating a new popup window by using a different window name.
Hence this field cannot be used to set the pop up window title.
The window title is dictated by the HTML put into the popup window within the <title> attrbute. Example:
<head><title>My Window Title</title></head>
Below is an example:
After I do research on this, I have found out the following:
The window name field in the "Open URL in Window" configuration doesn't become the winddow name.
The Window Name is a way to name a popup window so that you can either replace the contents in the same popup window, additional window.open calls using the same window name, or creating a new popup window by using a different window name.
Hence this field cannot be used to set the pop up window title.
The window title is dictated by the HTML put into the popup window within the <title> attrbute. Example:
<head><title>My Window Title</title></head>
Below is an example: