![]() |
|
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
Newbie
Join Date: Jun 2005
Posts: 1
Rep Power: 0
![]() |
Handling new windows not created by JavaScript
Here's an interesting question:
Is there any way I can manage windows by JavaScript that were not created by JavaScript? My company's goal is to create a page on the corporate website that will provide a link to a "Contact Us" page that performs 2 actions: (1) The page will load a "dummy" page that will access a SSL page to perform the handshaking. (2) Once loaded, the parent will redirect this page to the actual page, passing along any variables that are necessary. The reason why we need this "dummy" page is to ensure that the variables are encrypted, as no encryption occurs on the first access to the SSL page. I came up with a solution, using an iFrame and a pop-up generated with window.open(), but this runs the risk of a pop-up blocker preventing the pop-up from loading. The company wishes for me to use a normal href link with target='_blank'. The problem is that I don't know how I could have my script reference this window, as I could with the var newWin = window.open() procedure. Is this even possible? Thank you very much for your time. Nick Ruiz CO-OP Intern, PPL Electric Utilities Webmaster, DealMerchant.net http://www.dealmerchant.net |
|
|
|
|
|
#2 |
|
I eat cake for breakfast.
![]() ![]() ![]() ![]() Join Date: Jul 2004
Location: In my box.
Posts: 4,434
Rep Power: 9
![]() |
Save the info in a session cookie, and use that.
|
|
|
|
|
|
#3 |
|
Hobbyist Programmer
Join Date: Jun 2005
Location: MA, US
Posts: 204
Rep Power: 4
![]() |
this problem would be less tedious if you employed a server side language, like PHP.
__________________
"A stupid man's report of what a clever man says can never be accurate, because he unconciously translates what he hears into something he can understand." - B. Russell http://web.bryant.edu/~srk2 |
|
|
|
|
|
#4 |
|
Resident Grouch
![]() ![]() ![]() ![]() ![]() ![]() Join Date: Jun 2005
Posts: 6,453
Rep Power: 10
![]() |
I agree with skuinders. Even if Javascript and cookies are disabled, you can still deal with it.
__________________
Abstraction doesn't make it impossible to write bad code; it makes it possible to write superior code. Contributor's Corner: Grumpy on C++ Exceptions DaWei on Pointers |
|
|
|
![]() |
| Bookmarks |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|