Programming Forums
User Name Password Register
 

RSS Feed
FORUM INDEX | TODAY'S POSTS | UNANSWERED THREADS | ADVANCED SEARCH

Reply
 
Thread Tools Display Modes
Old Jun 22nd, 2005, 2:36 PM   #1
nwruiz
Newbie
 
Join Date: Jun 2005
Posts: 1
Rep Power: 0 nwruiz is on a distinguished road
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
nwruiz is offline   Reply With Quote
Old Jun 22nd, 2005, 3:29 PM   #2
Ooble
I eat cake for breakfast.
 
Ooble's Avatar
 
Join Date: Jul 2004
Location: In my box.
Posts: 4,434
Rep Power: 9 Ooble is on a distinguished road
Save the info in a session cookie, and use that.
__________________
Me :: You :: Them
Ooble is offline   Reply With Quote
Old Jun 24th, 2005, 9:32 AM   #3
skuinders
Hobbyist Programmer
 
skuinders's Avatar
 
Join Date: Jun 2005
Location: MA, US
Posts: 204
Rep Power: 4 skuinders is on a distinguished road
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
skuinders is offline   Reply With Quote
Old Jun 24th, 2005, 10:03 PM   #4
DaWei
Resident Grouch
 
DaWei's Avatar
 
Join Date: Jun 2005
Posts: 6,453
Rep Power: 10 DaWei is on a distinguished road
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
DaWei is offline   Reply With Quote
Reply

Bookmarks

« Previous Thread in Forum | Next Thread in Forum »

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump




DaniWeb IT Discussion Community
All times are GMT -5. The time now is 2:08 PM.

Powered by vBulletin® Version 3.7.0, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Copyright ©2007 DaniWeb® LLC