473,671 Members | 2,601 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Reusing same windows with HTTPS links

Jon
I have links that open https secondary windows using:

window.open(url , windowName);

The windowName is always the same but I keep getting new windows. Is
it possible for each of the links to open in the same window?

Thanks,

Jon
Jul 20 '05 #1
4 4228
Hi,
window.open() will always open new ones.
Try windowName.loca tion=url

Kien

jo*@jkworld.com (Jon) wrote in message news:<90******* *************** ***@posting.goo gle.com>...
I have links that open https secondary windows using:

window.open(url , windowName);

The windowName is always the same but I keep getting new windows. Is
it possible for each of the links to open in the same window?

Thanks,

Jon

Jul 20 '05 #2

ca*********@hot mail.com (Kien) writes:
jo*@jkworld.com (Jon) wrote in message news:<90******* *************** ***@posting.goo gle.com>...
I have links that open https secondary windows using:

window.open(url , windowName);

The windowName is always the same but I keep getting new windows. Is
it possible for each of the links to open in the same window?


They should. Can you show us the page that fails?

[top post fixed]
window.open() will always open new ones.
Not if the windowName is the same, and is a valid window name.
Try windowName.loca tion=url


That will rarely work. If "windowName " is the name of the window that
is opened, it doesn't become a global variable. If it is the name of a
sub-frame, it will only be a global variable in some browsers.

If you man to write

var windowName = window.open(... )
and then
windowName.loca tion = url
then it will probably work (if window.open does :)

/L
--
Lasse Reichstein Nielsen - lr*@hotpop.com
DHTML Death Colors: <URL:http://www.infimum.dk/HTML/rasterTriangleD OM.html>
'Faith without judgement merely degrades the spirit divine.'
Jul 20 '05 #3
Jon
Here is my code:

in the .jsp file:
<a target="NEWWIND OW"
href="javascrip t:formNewWindow ('<%=ers.getURL ()%>')"
class="sbLinkBl ue">View Detail</a>

in newWindow.js file
function formNewWindow(u rl)
{
var windowName ='NEWWINDOW';
window.open(url ,windowName);
}

Every time View Detail is clicked on the same page or different pages,
a new window is created. The link always begins with https. I tested
the above with http and it works fine.

Jon

Lasse Reichstein Nielsen <lr*@hotpop.com > wrote in message news:<is******* ***@hotpop.com> ...
ca*********@hot mail.com (Kien) writes:
jo*@jkworld.com (Jon) wrote in message news:<90******* *************** ***@posting.goo gle.com>...

I have links that open https secondary windows using:

window.open(url , windowName);

The windowName is always the same but I keep getting new windows. Is
it possible for each of the links to open in the same window?


They should. Can you show us the page that fails?

[top post fixed]
window.open() will always open new ones.


Not if the windowName is the same, and is a valid window name.
Try windowName.loca tion=url


That will rarely work. If "windowName " is the name of the window that
is opened, it doesn't become a global variable. If it is the name of a
sub-frame, it will only be a global variable in some browsers.

If you man to write

var windowName = window.open(... )
and then
windowName.loca tion = url
then it will probably work (if window.open does :)

/L

Jul 20 '05 #4
Jon wrote:
in newWindow.js file
function formNewWindow(u rl)
{
var windowName ='NEWWINDOW';
window.open(url ,windowName);
}

Every time View Detail is clicked on the same page or different pages,
a new window is created. The link always begins with https.
The URI of the link, not the link itself.
I tested the above with http and it works fine.
Of course it works, but

window.open(url , "NEWWINDOW" );

works as well as

window.open(url , "foobar");

does. There is no additional variable necessary and the value of
the second argument, if different from "_blank", should not matter
if it is the same on every call. That the behavior depends on the
protocol used in the first argument's value could only be a
browser-dependent feature to prevent going around the Same Origin
Policy.
[Top post]


Do not do that.
PointedEars
Jul 20 '05 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

14
2501
by: Peter Chant | last post by:
I'm currently authenticating a site I have built using basic http authentication built into apache. This has zero overhead on php which is a bonus but it seems to not quite work how I'd like. Are the username and password in the login box that comes up encrypted? When I login https://mysite.local:portnum I get the login dialog. As I am using a self signed certificate I see the dialog stating warning me about it first before the login...
3
1688
by: muttu2244 | last post by:
Hi all, Am trying to read a email ids which will be in the form of links ( on which if we click, they will redirect to outlook with their respective email ids). And these links are in the HTTPS page, a secured http page. The point is that am able to read some links with HTTP page, but am not able to read the same when I try with HTTPS.
1
1851
by: Luis Esteban Valencia | last post by:
have a website that uses both http and https. I am able to change any hard coded http links to relative paths. No problem. But, I have several aspx and ascx pages that contain hard coded links that are https. I have to get rid of those, asap. I know HTML and beginning+ C#. I have heard that you do something in the web config? I guess that would be ideal. I only have about 10 pages that need the https links to be relative.
3
1465
by: E | last post by:
I have a https login page with C# code FormsAuthentication. After logging in, my https pages recognize that I'm logged in. My http pages do not. It's as if it's considering these pages under a different domain. Am I going to have to make my entire site https? Any help/guidance is appreciated. Thanks, E
1
1259
by: Fenno | last post by:
I am creating an ASP.NET project that contains some pages that require a secure connection via HTTPS/SSL. The problem I have is how do you maintain session data when switching between HTTPS and HTTP protocols? For example, my login page uses HTTPS. What is the best way to switch back to normal HTTP after authentication?? This must be done whilst maintaining the identity of the logged in user (in the session).
44
9430
by: Viken Karaguesian | last post by:
Hello all, On occasion I want to open hyperlinks (images, etc.) in a new window. In the past, I've used target="_blank" to open the link in a new window. However, using the "target" attribute causes my pages to fail validation (strict doctype). The validator says "There is no attribute 'target'.." So...how do I open a link in a new window, without Javscript, and pass strict validation?
2
3399
by: Greg Collins [Microsoft MVP] | last post by:
In reviewing my web site statistics, I see that I get 404 errors (often enough to make me ask about it) when users try to click on a link to a secure external site (i.e. an https:// link). I've tested these links multiple times, and they always work fine for me. Other links do not seem to have trouble. It seems to be related to "https://" for some reason. I get this for another site too. The statistics page shows the 404 failed link with...
8
5138
by: howa | last post by:
a page currently in HTTPS, I force the client to redirect to another page using HTTP under the same domain (e.g. abc.com), i.e. header("Location: http://www.abc.com/index.php"); IE successfully redirect to HTTP, but FF & Opera stay on the HTTPS any suggestions?
1
1418
by: cbright | last post by:
I have a very weird problem with our site at https://store.canoegame.com. For many users the site is working as it should however for a few it is not. One of the bigger problems is the fact that, while it is fully an HTTPS site, I have tested it on a specific machine and some of the links will stay in HTTPS but others (specifically to the product pages) go to the HTTP protocol. This is not the way it is coded and, in fact, the status bar...
0
8403
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8828
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
8605
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8677
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
7446
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6238
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
4227
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
2819
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
1816
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.